Bug#836609: nostalgy: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Sep 4 12:57:32 UTC 2016


Source: nostalgy
Version: 0.2.34-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that nostalgy could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/0003-Reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0003-Reproducible-build.patch	2016-09-04 13:56:42.262802348 +0100
@@ -0,0 +1,18 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-09-04
+
+--- nostalgy-0.2.34.orig/build.sh
++++ nostalgy-0.2.34/build.sh
+@@ -72,7 +72,10 @@ find content -path '*.svn*' -prune -o -t
+ find locale -path '*.svn*' -prune -o -type f -print | grep -v \~ >> files
+ 
+ 
+-cat files | zip -0 $JAR_FILE -@
++if [ -n "$SOURCE_DATE_EPOCH" ]; then
++  cat files | xargs -r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}"
++fi
++LC_ALL=C sort files | zip -0 $JAR_FILE -@
+ # The following statement should be used instead if you don't wish to use the JAR file
+ #cp --verbose --parents `cat files` $TMP_DIR/chrome
+ 
--- a/debian/patches/series	2016-09-04 13:52:14.384034333 +0100
--- b/debian/patches/series	2016-09-04 13:56:41.182791060 +0100
@@ -1,2 +1,3 @@
 0001-Remove-cleanup-from-the-build.patch
 0002-Fix-RDF-syntax.patch
+0003-Reproducible-build.patch


More information about the Reproducible-builds mailing list