[Reproducible-builds] Bug#834452: libdc0: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Aug 15 20:46:17 UTC 2016


Source: libdc0
Version: 0.3.24~svn3121-2.1
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], I noticed
that libdc0 could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2016-08-15 21:39:37.342116536 +0100
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-15
+
+--- libdc0-0.3.24~svn3121.orig/configure.in
++++ libdc0-0.3.24~svn3121/configure.in
+@@ -212,7 +212,11 @@ AC_SUBST(HIDESYMS)
+ 
+ dnl build date and svn revision information, no longer put into PACKAGE_VERSION
+ AC_MSG_CHECKING([for build date and svn revision])
+-DCLIB_BUILD_INFO="Build date: `date +%Y%m%d`"
++if test "x$SOURCE_DATE_EPOCH" = "x"; then
++  DCLIB_BUILD_INFO="Build date: `date +%Y%m%d`"
++else
++  DCLIB_BUILD_INFO="Build date: `date --utc --date="@$SOURCE_DATE_EPOCH" +%Y%m%d`"
++fi
+ if echo "$PACKAGE_VERSION" | grep svn >/dev/null 2>&1
+ then
+   DCLIB_BUILD_INFO="$DCLIB_BUILD_INFO svn: `svnversion ${srcdir}`"
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2016-08-15 21:28:06.100710463 +0100
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the Reproducible-builds mailing list