Source: atanks Version: 6.4~dfsg-1 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 atanks could not be built reproducibly. It links object files 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..347aa42 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <[email protected]> +Description: Sort source files for deterministic linking order + +--- a/Makefile ++++ b/Makefile +@@ -45,7 +45,7 @@ + # ------------------------------------ + # Source files and objects + # ------------------------------------ +-SOURCES := $(wildcard src/*.cpp) ++SOURCES := $(sort $(wildcard src/*.cpp)) + MODULES := $(addprefix obj/,$(notdir $(SOURCES:.cpp=.o))) + DEPENDS := $(addprefix dep/,$(notdir $(SOURCES:.cpp=.d))) + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..55077d0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +reproducible-build.patch
signature.asc
Description: PGP signature

