Source: miceamaze Version: 4.2.1-2 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 miceamaze could not be built reproducibly. While linking the list of object files is ordered randomly. The attached patch fixes this by sorting the list. 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..9dad891 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Sort object files for deterministic linking order + +--- a/Makefile ++++ b/Makefile +@@ -17,7 +17,7 @@ + SVGCOMMAND=rsvg-convert + SVGOPTIONS=-w 500 + +-OBJS := $(patsubst src/%.cpp,src/%.o,$(wildcard src/*.cpp)) ++OBJS := $(sort $(patsubst src/%.cpp,src/%.o,$(wildcard src/*.cpp))) + BUILTDATA := data/images/eagle.png data/images/eagle2.png + + all: miceamaze miceamaze.xpm miceamaze.png miceamaze.6.gz $(BUILTDATA) 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
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds