Source: pxlib
Version: 0.6.6-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

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

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/configure 2016-07-23 21:45:29.210427491 +0100
--- b/configure 2016-07-23 21:52:11.808017904 +0100
@@ -4568,7 +4568,11 @@
 
 
 
-PXLIB_BUILD_DATE=`date '+%Y-%m-%d'`
+if test -n "$SOURCE_DATE_EPOCH"; then
+       PXLIB_BUILD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d'`
+else
+       PXLIB_BUILD_DATE=`date '+%Y-%m-%d'`
+fi
 
 cat >>confdefs.h <<_ACEOF
 #define PXLIB_BUILD_DATE "$PXLIB_BUILD_DATE"
--- a/configure.ac      2016-07-23 21:45:29.210427491 +0100
--- b/configure.ac      2016-07-23 21:51:49.475706857 +0100
@@ -23,7 +23,12 @@
 
 dnl VERSION=${PXLIB_VERSION}
 
-PXLIB_BUILD_DATE=`date '+%Y-%m-%d'`
+if test -n "$SOURCE_DATE_EPOCH"; then
+       PXLIB_BUILD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" '+%Y-%m-%d'`
+else
+       PXLIB_BUILD_DATE=`date '+%Y-%m-%d'`
+fi
+
 AC_DEFINE_UNQUOTED(PXLIB_BUILD_DATE,"$PXLIB_BUILD_DATE",[pxlib build date])
 AC_SUBST(PXLIB_BUILD_DATE)
 
_______________________________________________
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