Source: libvterm
Version: 0~bzr684-1
Severity: wishlist
Tags: patch upstream
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 libvterm could not be built reproducibly.
During build the object files are linked in random order.

The attached patch fixes that 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..d1ba0a9
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -25,7 +25,7 @@
+ 
+ CFILES=$(wildcard src/*.c)
+ HFILES=$(wildcard include/*.h)
+-OBJECTS=$(CFILES:.c=.lo)
++OBJECTS=$(sort $(CFILES:.c=.lo))
+ LIBRARY=libvterm.la
+ 
+ BINFILES_SRC=$(wildcard bin/*.c)
diff --git a/debian/patches/series b/debian/patches/series
index ba701cb..7c3bd6e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 # exported from git by git-debcherry
+reproducible-build.patch

Attachment: 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

Reply via email to