[Reproducible-builds] Bug#831743: xloadimage: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 18 20:56:35 UTC 2016


Source: xloadimage
Version: 4.1-23
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 xloadimage 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/debian/patches/31_reproducible-build.patch	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/31_reproducible-build.patch	2016-07-18 22:53:34.703625496 +0200
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-07-18
+
+--- xloadimage-4.1.orig/build-info
++++ xloadimage-4.1/build-info
+@@ -30,6 +30,12 @@ else
+   uname='char *BuildSystem= "<unknown system>";'
+ fi
+ 
++if [ -n "$SOURCE_DATE_EPOCH" ]; then
++  date='char *BuildDate= "'$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH}")'";'
++  user='char *BuildUser= (char *)0;'
++  uname='char *BuildSystem= (char *)0;'
++fi
++
+ echo '/* THIS FILE IS AUTOMATICALLY GENERATED */' > build.c
+ echo $uname >> build.c
+ echo $date >> build.c
--- a/debian/patches/series	2016-07-18 22:47:08.426122487 +0200
--- b/debian/patches/series	2016-07-18 22:53:31.959612147 +0200
@@ -27,3 +27,4 @@
 28_correct-scaling-fullscreen.patch
 29_fix-manpage-hyphens.patch
 30_libtiff5.patch
+31_reproducible-build.patch


More information about the Reproducible-builds mailing list