Source: zathura-pdf-poppler Version: 0.2.6-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 zathura-pdf-poppler could not be built reproducibly. It links objects 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..35f2f85 --- /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 +@@ -5,7 +5,7 @@ + + PROJECT = zathura-pdf-poppler + PLUGIN = pdf +-SOURCE = $(wildcard *.c) ++SOURCE = $(sort $(wildcard *.c)) + HEADER = $(wildcard *.h) + OBJECTS = ${SOURCE:.c=.o} + DOBJECTS = ${SOURCE:.c=.do} 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

