Source: singularity-container Version: 2.3-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps fileordering X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that singularity-container could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb, Debian Project Leader `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/reproducible_build 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible_build 2017-06-27 21:01:44.205044625 +0100 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2017-06-27 + +--- singularity-container-2.3.orig/libexec/bootstrap-scripts/environment/Makefile.am ++++ singularity-container-2.3/libexec/bootstrap-scripts/environment/Makefile.am +@@ -39,7 +39,7 @@ environment.tar: + ln -sf .singularity.d/actions/run newroot/.run + ln -sf .singularity.d/actions/shell newroot/.shell + ln -sf .singularity.d/actions/test newroot/.shell +- cd newroot; tar czf ../environment.tar . --owner=0 --group=0 ++ cd newroot; GZIP=-n tar czf ../environment.tar . --owner=0 --group=0 --sort=name --mtime="@${SOURCE_DATE_EPOCH:-$(date +%s)}" + rm -rf newroot + + MAINTAINERCLEANFILES = Makefile.in --- a/debian/patches/series 2017-06-27 20:49:50.098302255 +0100 --- b/debian/patches/series 2017-06-27 20:54:33.455136541 +0100 @@ -1 +1,2 @@ up_makedirs_cache +reproducible_build

