d/patches: Update patches with gbp pq
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Sunil Mohan Adapa
2 years ago
0 | From: Sunil Mohan Adapa <sunil@medhas.org> | |
1 | Date: Sat, 1 May 2021 12:31:16 -0700 | |
0 | 2 | Subject: Alter gradle build file to suite Debian |
1 | The following build system functionality is disabled becase it is not needed | |
2 | in Debian and simplifies packaging effort by not needed dependencies. | |
3 | . | |
4 | Error Prone and Animal Sniffer tools help upstream in avoiding errors and | |
5 | ensuring compatibility with multple version of Java. | |
6 | . | |
7 | JMH is used for benchmarking. | |
8 | . | |
9 | Coveralls and Jacoco are needed for code coverage analysis and reporting that | |
10 | upstream developers can use to increase number of tests. | |
11 | . | |
12 | Eclipse and Idea plugins are needed for generating project files that can be | |
13 | opened in respective IDEs. | |
14 | . | |
15 | Disable tests until all the dependencies are packaged and they can be run | |
16 | reliably. | |
17 | . | |
18 | libidn-java package does not provide metadata suitable for Debian's Maven | |
19 | repository. Alter the build file to use the provided .jar instead. | |
20 | . | |
21 | Disable subprojects that have additional dependencies and focus on parts that | |
22 | are needed for Smack and Jitsi. | |
23 | Author: Sunil Mohan Adapa <sunil@medhas.org> | |
3 | ||
4 | The following build system functionality is disabled because it is not needed in | |
5 | Debian and simplifies packaging effort by not needed dependencies. | |
6 | ||
7 | Error Prone and Animal Sniffer tools help upstream in avoiding errors and | |
8 | ensuring compatibility with multiple version of Java. | |
9 | ||
10 | JMH is used for benchmarking. | |
11 | ||
12 | Coveralls and Jacoco are needed for code coverage analysis and reporting that | |
13 | upstream developers can use to increase number of tests. | |
14 | ||
15 | Eclipse and Idea plugins are needed for generating project files that can be | |
16 | opened in respective IDEs. | |
17 | ||
18 | Disable tests until all the dependencies are packaged and they can be run | |
19 | reliably. | |
20 | ||
21 | libidn-java package does not provide metadata suitable for Debian's Maven | |
22 | repository. | |
23 | ||
24 | Alter the build file to use the provided .jar instead. | |
25 | ||
26 | Disable sub-projects that have additional dependencies and focus on parts that | |
27 | are needed for Smack and Jitsi. | |
28 | ||
24 | 29 | Forwarded: not-needed |
30 | --- | |
31 | build.gradle | 54 ++++++++++++++++++------------------ | |
32 | jxmpp-stringprep-libidn/build.gradle | 2 +- | |
33 | settings.gradle | 8 +++--- | |
34 | 3 files changed, 32 insertions(+), 32 deletions(-) | |
35 | ||
36 | diff --git a/build.gradle b/build.gradle | |
37 | index 194c9df..a3dadf3 100644 | |
25 | 38 | --- a/build.gradle |
26 | 39 | +++ b/build.gradle |
27 | @@ -6,22 +6,22 @@ | |
40 | @@ -6,22 +6,22 @@ buildscript { | |
28 | 41 | mavenCentral() |
29 | 42 | } |
30 | 43 | |
56 | 69 | |
57 | 70 | repositories { |
58 | 71 | mavenLocal() |
59 | @@ -50,7 +50,7 @@ | |
72 | @@ -50,7 +50,7 @@ allprojects { | |
60 | 73 | junit4Projects = [ |
61 | 74 | ':jxmpp-core', |
62 | 75 | ':jxmpp-jid', |
65 | 78 | ':jxmpp-stringprep-icu4j', |
66 | 79 | ':jxmpp-stringprep-libidn', |
67 | 80 | ':jxmpp-util-cache', |
68 | @@ -79,11 +79,11 @@ | |
81 | @@ -79,11 +79,11 @@ allprojects { | |
69 | 82 | ) |
70 | 83 | } |
71 | 84 | |
79 | 92 | |
80 | 93 | // Make all project's 'test' target depend on javadoc, so that |
81 | 94 | // javadoc is also linted. |
82 | @@ -132,7 +132,7 @@ | |
95 | @@ -132,7 +132,7 @@ allprojects { | |
83 | 96 | options.charSet = "UTF-8" |
84 | 97 | } |
85 | 98 | |
88 | 101 | toolVersion = "0.8.3" |
89 | 102 | } |
90 | 103 | |
91 | @@ -158,7 +158,7 @@ | |
104 | @@ -158,7 +158,7 @@ allprojects { | |
92 | 105 | events "failed" |
93 | 106 | exceptionFormat "full" |
94 | 107 | } |
97 | 110 | } |
98 | 111 | |
99 | 112 | task javadocAll(type: Javadoc) { |
100 | @@ -195,12 +195,12 @@ | |
113 | @@ -195,12 +195,12 @@ uploadArchives.enabled = false | |
101 | 114 | evaluationDependsOnChildren() |
102 | 115 | subprojects { |
103 | 116 | apply plugin: 'maven-publish' |
115 | 128 | task sourcesJar(type: Jar, dependsOn: classes) { |
116 | 129 | classifier = 'sources' |
117 | 130 | from sourceSets.main.allSource |
118 | @@ -218,7 +218,7 @@ | |
131 | @@ -218,7 +218,7 @@ subprojects { | |
119 | 132 | testRuntime testsJar |
120 | 133 | } |
121 | 134 | |
124 | 137 | publications { |
125 | 138 | mavenJava(MavenPublication) { |
126 | 139 | from components.java |
127 | @@ -272,7 +272,7 @@ | |
140 | @@ -272,7 +272,7 @@ subprojects { | |
128 | 141 | } |
129 | 142 | } |
130 | 143 | } |
133 | 146 | rootProject.distributionZip { |
134 | 147 | dependsOn build |
135 | 148 | from(buildDir) { |
136 | @@ -283,7 +283,7 @@ | |
149 | @@ -283,7 +283,7 @@ subprojects { | |
137 | 150 | // Workaround for gpg signatory not supporting the 'required' option |
138 | 151 | // See https://github.com/gradle/gradle/issues/5064#issuecomment-381924984 |
139 | 152 | // Note what we use 'signing.gnupg.keyName' instead of 'signing.keyId'. |
142 | 155 | onlyIf { |
143 | 156 | project.hasProperty('signing.gnupg.keyName') |
144 | 157 | } |
145 | @@ -292,10 +292,10 @@ | |
158 | @@ -292,10 +292,10 @@ subprojects { | |
146 | 159 | required { signingRequired } |
147 | 160 | useGpgCmd() |
148 | 161 | sign publishing.publications.mavenJava |
155 | 168 | apply plugin: 'net.ltgt.errorprone' |
156 | 169 | |
157 | 170 | tasks.withType(JavaCompile) { |
158 | @@ -319,7 +319,7 @@ | |
171 | @@ -319,7 +319,7 @@ configure (errorProneProjects) { | |
159 | 172 | errorprone 'com.google.errorprone:error_prone_core:2.3.3' |
160 | 173 | errorproneJavac('com.google.errorprone:javac:9+181-r4173-1') |
161 | 174 | } |
164 | 177 | |
165 | 178 | dependencies { |
166 | 179 | androidProjects.each { project -> |
167 | @@ -327,7 +327,7 @@ | |
180 | @@ -327,7 +327,7 @@ dependencies { | |
168 | 181 | } |
169 | 182 | } |
170 | 183 | |
173 | 186 | dependencies { |
174 | 187 | testImplementation "junit:junit:4.12" |
175 | 188 | testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junitVersion" |
176 | @@ -381,7 +381,7 @@ | |
189 | @@ -381,7 +381,7 @@ task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) { | |
177 | 190 | // the subprojects is wrong (e.g. a project is missing |
178 | 191 | // in there). |
179 | 192 | setOnlyIf { true } |
182 | 195 | |
183 | 196 | def getGitCommit() { |
184 | 197 | def projectDirFile = new File("$projectDir") |
198 | diff --git a/jxmpp-stringprep-libidn/build.gradle b/jxmpp-stringprep-libidn/build.gradle | |
199 | index c507adb..d5ffa81 100644 | |
185 | 200 | --- a/jxmpp-stringprep-libidn/build.gradle |
186 | 201 | +++ b/jxmpp-stringprep-libidn/build.gradle |
187 | @@ -3,5 +3,5 @@ | |
202 | @@ -3,5 +3,5 @@ JXMPP Stringprep with libidn.""" | |
188 | 203 | |
189 | 204 | dependencies { |
190 | 205 | compile project(':jxmpp-core') |
191 | 206 | - compile 'org.gnu.inet:libidn:1.15' |
192 | 207 | + compile files('/usr/share/java/libidn.jar') |
193 | 208 | } |
209 | diff --git a/settings.gradle b/settings.gradle | |
210 | index ff18801..c408e49 100644 | |
194 | 211 | --- a/settings.gradle |
195 | 212 | +++ b/settings.gradle |
196 | 213 | @@ -1,8 +1,8 @@ |