Source: wavemon Version: 0.8.0-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that wavemon could not be built reproducibly. The order of object files varies during linking. The attached patch fixes this by sorting the list. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/02-reproducible-build.patch b/debian/patches/02-reproducible-build.patch new file mode 100644 index 0000000..f583e36 --- /dev/null +++ b/debian/patches/02-reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <[email protected]> +Description: Sort object files for deterministic linking order + +--- a/Makefile.in ++++ b/Makefile.in +@@ -21,7 +21,7 @@ + MAIN = @[email protected] + HEADERS = $(wildcard *.h) + PURESRC = $(filter-out $(MAIN),$(wildcard *.c)) +-OBJS = $(PURESRC:.c=.o) ++OBJS = $(sort $(PURESRC:.c=.o)) + + %.o: %.c $(HEADERS) + @echo ' CC ' $< diff --git a/debian/patches/series b/debian/patches/series index 18ef635..d9aa474 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01-patch-makefile.in-to-not-install-docs.patch +02-reproducible-build.patch
signature.asc
Description: PGP signature

