[libjgroups-java] 37/38: Applied Chris Lamb's patch to make the build reproducible (Closes: #862183)
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Nov 23 12:36:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository libjgroups-java.
commit 3cb9a4abdbcc535f4a67a7dec79b71cb2da54f97
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Nov 23 13:28:29 2017 +0100
Applied Chris Lamb's patch to make the build reproducible (Closes: #862183)
---
debian/changelog | 1 +
debian/patches/02_reproducible_schema_generator.patch | 14 ++++++++++++++
debian/patches/series | 1 +
3 files changed, 16 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d66cfd9..b5512ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
libjgroups-java (2.12.2.Final-5) UNRELEASED; urgency=medium
+ * Applied Chris Lamb's patch to make the build reproducible (Closes: #862183)
* Build with Maven instead of Ant
* Removed the unused build dependency on glassfish-javaee
* Moved the package to Git
diff --git a/debian/patches/02_reproducible_schema_generator.patch b/debian/patches/02_reproducible_schema_generator.patch
new file mode 100644
index 0000000..06cb81a
--- /dev/null
+++ b/debian/patches/02_reproducible_schema_generator.patch
@@ -0,0 +1,14 @@
+Description: Sort the classes to make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Bug-Debian: https://bugs.debian.org/862183
+--- a/src/org/jgroups/util/XMLSchemaGenerator.java
++++ b/src/org/jgroups/util/XMLSchemaGenerator.java
+@@ -102,7 +102,7 @@
+ private static Set<Class<?>> getClasses(String packageName, Class<?> assignableFrom)
+ throws IOException, ClassNotFoundException {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+- Set<Class<?>> classes = new HashSet<Class<?>>();
++ Set<Class<?>> classes = new java.util.TreeSet<Class<?>>();
+ String path = packageName.replace('.', '/');
+ URL resource = loader.getResource(path);
+ if (resource != null) {
diff --git a/debian/patches/series b/debian/patches/series
index 1e2e371..cea4586 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01_disable_diagnostics.patch
+02_reproducible_schema_generator.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libjgroups-java.git
More information about the pkg-java-commits
mailing list