Source: airstrike Version: 0.99+1.0pre6a-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 airstrike could not be built reproducibly. The list of source file is not sorted, which leads to 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..e0b466c --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Sort source files for deterministic linking order + +--- a/src/Makefile ++++ b/src/Makefile +@@ -2,7 +2,7 @@ + # + CFLAGS += $(shell sdl-config --cflags) -Isprite -I. -Isupport -DINLINE=inline + CFLAGS += `dpkg-buildflags --get CFLAGS` +-CFILES:= $(shell find . -name '*.c') ++CFILES:= $(sort $(shell find . -name '*.c')) + OBJECTS:= $(CFILES:.c=.o) + + airstrike: $(OBJECTS) diff --git a/debian/patches/series b/debian/patches/series index 940d3b2..b038b3b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,3 +9,4 @@ fix-spawn-level.patch Add-lm-to-fix-FTBFS-with-binutils-gold.patch hardening.patch spelling.patch +reproducible-build.patch
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