Source: aewan
Version: 1.0.01-4
Severity: wishlist
Tags: patch upstream
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 aewan could not be built reproducibly.
It links object files in a non-deterministic order.

The attached patch fixes this by sorting the list of source files.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/Makefile.in b/Makefile.in
index 5aac058..3fd224b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -29,7 +29,7 @@
 # License para obter mais detalhes (uma cópia acompanha este
 # programa, armazenada no arquivo COPYING).
  
-sources=$(wildcard *.c) $(wildcard aewl/*.c) $(wildcard bores/*.c)
+sources=$(sort $(wildcard *.c) $(wildcard aewl/*.c) $(wildcard bores/*.c))
 headers=$(wildcard *.h) $(wildcard bores/*.h) $(wildcard aewl/*.h)
 execs=aewan@EXESUF@ aecat@EXESUF@ aemakeflic@EXESUF@
 mainobjs=$(patsubst %@EXESUF@,%.o,$(execs))

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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