Bug#866169: singularity-container: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Jun 27 20:45:14 UTC 2017


Source: singularity-container
Version: 2.3-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps fileordering
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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 <lamby at debian.org>
+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


More information about the Reproducible-bugs mailing list