Source: nostalgy
Version: 0.2.34-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@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
`. `'` la...@debian.org / chris-lamb.co.uk
`-
--- a/debian/patches/0003-Reproducible-build.patch 1970-01-01
01:00:00.0 +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
+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
___
Pkg-mozext-maintainers mailing list
Pkg-mozext-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mozext-maintainers