[libjgroups-java] 02/05: Apply reproducible build patch (Closes: #862183)
Tony Mancill
tmancill at moszumanska.debian.org
Sun May 14 17:02:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository libjgroups-java.
commit 1a2932b2662037acd2c01677ebfeb86d2cf9c331
Author: tony mancill <tmancill at debian.org>
Date: Sun May 14 09:55:53 2017 -0700
Apply reproducible build patch (Closes: #862183)
Thanks to Chris Lamby.
---
debian/patches/02_reproducible_build.patch | 39 ++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 40 insertions(+)
diff --git a/debian/patches/02_reproducible_build.patch b/debian/patches/02_reproducible_build.patch
new file mode 100644
index 0000000..b203567
--- /dev/null
+++ b/debian/patches/02_reproducible_build.patch
@@ -0,0 +1,39 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-05-09
+
+--- libjgroups-java-2.12.2.Final.orig/src/org/jgroups/util/XMLSchemaGenerator.java
++++ libjgroups-java-2.12.2.Final/src/org/jgroups/util/XMLSchemaGenerator.java
+@@ -7,8 +7,8 @@ import java.lang.reflect.Field;
+ import java.lang.reflect.Method;
+ import java.lang.reflect.Modifier;
+ import java.net.URL;
+-import java.util.HashSet;
+-import java.util.Set;
++import java.util.TreeSet;
++import java.util.SortedSet;
+
+ import javax.xml.parsers.DocumentBuilder;
+ import javax.xml.parsers.DocumentBuilderFactory;
+@@ -74,7 +74,7 @@ public class XMLSchemaGenerator {
+ allType.setAttribute("maxOccurs", "unbounded");
+ complexType.appendChild(allType);
+
+- Set<Class<?>> classes = getClasses("org.jgroups.protocols", Protocol.class);
++ SortedSet<Class<?>> classes = getClasses("org.jgroups.protocols", Protocol.class);
+ for (Class<?> clazz : classes) {
+ classToXML(xmldoc, allType, clazz, "");
+ }
+@@ -99,10 +99,10 @@ public class XMLSchemaGenerator {
+ }
+ }
+
+- private static Set<Class<?>> getClasses(String packageName, Class<?> assignableFrom)
++ private static SortedSet<Class<?>> getClasses(String packageName, Class<?> assignableFrom)
+ throws IOException, ClassNotFoundException {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+- Set<Class<?>> classes = new HashSet<Class<?>>();
++ SortedSet<Class<?>> classes = new 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..f41970d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01_disable_diagnostics.patch
+02_reproducible_build.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