Source: nullmailer
Version: 1.13-1
Severity: wishlist
Tags: patch upstream
User: [email protected]
Usertags: fileordering
X-Debbugs-Cc: [email protected]

Dear Maintainer,

While working on the “reproducible builds” effort [1], we have noticed
that 'nullmailer' could not be built reproducibly.

The attached patch fixes the order in which files are included in the
libnullmailer.a archive. Once applied, nullmailer can be built
reproducibly in our current experimental framework.

Regards,
Alexis Bienvenüe.

 [1]: https://wiki.debian.org/ReproducibleBuilds



diff -Nru nullmailer-1.13/debian/changelog nullmailer-1.13/debian/changelog
--- nullmailer-1.13/debian/changelog	2014-08-08 02:19:32.000000000 +0200
+++ nullmailer-1.13/debian/changelog	2016-04-11 09:26:05.000000000 +0200
@@ -1,3 +1,9 @@
+nullmailer (1:1.13-1.0~reproducible1) unstable; urgency=medium
+
+  * Deterministic file order in archives.
+
+ -- Alexis Bienvenüe <[email protected]>  Mon, 11 Apr 2016 09:26:05 +0200
+
 nullmailer (1:1.13-1) unstable; urgency=low
 
   * Ack NMU, thankyou for your help with this package.
diff -Nru nullmailer-1.13/debian/patches/15_sort_files_in_archive.diff nullmailer-1.13/debian/patches/15_sort_files_in_archive.diff
--- nullmailer-1.13/debian/patches/15_sort_files_in_archive.diff	1970-01-01 01:00:00.000000000 +0100
+++ nullmailer-1.13/debian/patches/15_sort_files_in_archive.diff	2016-04-11 09:35:26.000000000 +0200
@@ -0,0 +1,16 @@
+Description: Sort files in archive
+ Sort files when using mergelib to create libnullmailer.a, to get
+ reproducible build
+Author: Alexis Bienvenüe <[email protected]>
+
+Index: nullmailer-1.13/lib/mergelib.sh
+===================================================================
+--- nullmailer-1.13.orig/lib/mergelib.sh
++++ nullmailer-1.13/lib/mergelib.sh
+@@ -12,5 +12,5 @@ for input in "$@"; do
+ 	ar x ../../"$input"
+ 	cd ..
+ done
+-ar rc ../"$archive" */*
++ar rc ../"$archive" `LC_ALL=C ls */*`
+ ranlib ../"$archive"
diff -Nru nullmailer-1.13/debian/patches/series nullmailer-1.13/debian/patches/series
--- nullmailer-1.13/debian/patches/series	2014-08-07 10:01:55.000000000 +0200
+++ nullmailer-1.13/debian/patches/series	2016-04-11 09:24:19.000000000 +0200
@@ -8,3 +8,4 @@
 12_allow_no_dots.diff
 13_fix_automake.diff
 14_more_manpages.diff
+15_sort_files_in_archive.diff

Reply via email to