Source: asciijump
Version: 1.0.2~beta-7
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that asciijump could not be built reproducibly.
Some source files are not sorted, which causes a non-deterministic
linking order.

The attached patch fixes this.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..bd1d6c8
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,23 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Sort source files for deterministic linking order
+
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -63,7 +63,7 @@
+ 
+ # asciijump client
+ ac_name		= "asciijump"
+-ac_src		= $(wildcard scr*.c) \
++ac_src		= $(sort $(wildcard scr*.c)) \
+ 		   cmdline.c\
+ 		   wsys.c\
+ 		   frame.c\
+@@ -80,7 +80,7 @@
+ 
+ # asciijump eerver
+ as_name		= "aj-server"
+-as_src		= $(wildcard as*.c)
++as_src		= $(sort $(wildcard as*.c))
+ as_obj		= $(addprefix bin/,${as_src:.c=.o})
+ 
+ # object used in ac and as to
diff --git a/debian/patches/series b/debian/patches/series
index a211c81..6bed588 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ format_security_patch
 02_Makefile_in.patch
 03_slang2.patch
 ld-as-needed.diff
+reproducible_build.patch
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to