[Reproducible-builds] Bug#831661: vtwm: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 18 09:43:34 UTC 2016


Source: vtwm
Version: 5.4.7-2.2
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], we noticed
that vtwm could not be built reproducibly.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/Imakefile	2016-07-18 11:29:23.904229587 +0200
--- b/Imakefile	2016-07-18 11:34:09.356808636 +0200
@@ -174,8 +174,13 @@
 	echo ' */' >>$@
 	echo '' >>$@
 	echo 'char *lastmake[] = {' >>lastmake.c
+ifdef SOURCE_DATE_EPOCH
+	echo '    "Platform:  -",' >>$@
+	echo '    "Build:  '`LC_ALL=C date --utc --date=@$${SOURCE_DATE_EPOCH}`'",' >>$@
+else
 	echo '    "Platform:  '`uname -r -s`'",' >>$@
 	echo '    "Build:  '`date`'",' >>$@
+endif
 	echo '    "" };' >>$@
 
 system.vtwmrc:


More information about the Reproducible-builds mailing list