Source: pathogen Version: 1.1.1-4 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 pathogen could not be built reproducibly. During build objects are linked in non-deterministic order. The attached patch fixes that 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..80cd98e --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <[email protected]> +Description: Sort source files to link objects in deterministic order + +--- a/Makefile ++++ b/Makefile +@@ -6,7 +6,7 @@ + # $Id: Makefile,v 1.2 2004/07/12 16:05:50 tonic Exp $ + # $Revision: 1.2 $ + +-sources := $(wildcard src/*.cpp) ++sources := $(sort $(wildcard src/*.cpp)) + objects := $(sources:%.cpp=%.o) + + all: pathogen diff --git a/debian/patches/series b/debian/patches/series index 6e1d957..7f18390 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ 03_errormsg_cpp.diff 04-ftbfs-as-needed.patch hardening.patch +reproducible-build.patch
signature.asc
Description: PGP signature

