Source: gip Version: 1.7.0-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 gip could not be built reproducibly. It links objects in a 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/80-reproducible-build.diff b/debian/patches/80-reproducible-build.diff new file mode 100644 index 0000000..b8e89f2 --- /dev/null +++ b/debian/patches/80-reproducible-build.diff @@ -0,0 +1,14 @@ +Author: Reiner Herrmann <[email protected]> +Description: Sort source files for deterministic linking order + +--- a/build.sh ++++ b/build.sh +@@ -12,7 +12,7 @@ + REQUIRED_LIBS='gtkmm-2.4 sigc++-2.0' + + # Program files. +-PROGFILES=`find src/ -name "*.cc" -o -name "*.c"` ++PROGFILES=`find src/ -name "*.cc" -o -name "*.c" | LC_ALL=C sort` + + # Installation paths. (Plugins will be installed in the LIBDIR) + INST_IN_LIBDIR=`find . -name "*.glade"` diff --git a/debian/patches/series b/debian/patches/series index e8b6966..69009c4 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -7,3 +7,4 @@ 70-remove-header.diff 71-debian-hardening.diff 72-desktop-file.diff +80-reproducible-build.diff
signature.asc
Description: PGP signature
_______________________________________________ Reproducible-builds mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds
