Source: hannah Version: 1.0-3 Severity: wishlist Tags: patch upstream User: [email protected] Usertags: fileordering X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that hannah could not be built reproducibly. During build objects are linked in 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/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..6a6c6a1 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <[email protected]> +Description: Sort source files so that objects are linked in deterministic order + +--- a/Makefile ++++ b/Makefile +@@ -24,7 +24,7 @@ + # target binary and directory name + OUT = hhh + # source and object files +-SRCS = $(wildcard *.cc) ++SRCS = $(sort $(wildcard *.cc)) + OBJS = $(patsubst %.cc, %.o, $(SRCS)) + + # what to build diff --git a/debian/patches/series b/debian/patches/series index 9e33b88..1ea72d0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ fix_score_dir.diff fix-compiler-errors +reproducible-build.patch
signature.asc
Description: PGP signature

