Source: xbae
Version: 4.60.4-6
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [0], we have noticed
that xbae could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, xbae can be built reproducibly in our reproducible
toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.diff    1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.diff    2015-09-03 09:25:51.904144447 
+0100
@@ -0,0 +1,11 @@
+--- xbae-4.60.4.orig/configure.in
++++ xbae-4.60.4/configure.in
+@@ -246,7 +246,7 @@ AC_SUBST(OBJDUMP)
+ dnl
+ dnl Date
+ dnl
+-THE_DATE=`date +%F`
++THE_DATE=`echo @${SOURCE_DATE_EPOCH:-$(date +%s)} | date --utc -f- +%F`
+ AC_SUBST(THE_DATE)
+ 
+ AC_OUTPUT(Makefile \
--- a/debian/patches/series     2015-09-03 09:09:30.170928046 +0100
--- b/debian/patches/series     2015-09-03 09:23:22.362950825 +0100
@@ -3,3 +3,4 @@
 pointer-from-integer.diff
 build-failures.diff
 fix-row-label-buttons.diff
+reproducible-build.diff
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to