Source: vdr-plugin-sudoku
Version: 0.3.5-20
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 vdr-plugin-sudoku could not be built reproducibly.
During build objects are linked 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..96fd10e
--- /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
+@@ -67,7 +67,7 @@
+ 
+ ### The source and object files
+ 
+-SRCS = $(wildcard *.cpp)
++SRCS = $(sort $(wildcard *.cpp))
+ OBJS = $(SRCS:%.cpp=%.o)
+ 
+ ### The main target:
diff --git a/debian/patches/series b/debian/patches/series
index 2717af8..e5ec55b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 gcc6-fix.patch
+reproducible-build.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to