Source: libdc0
Version: 0.3.24~svn3121-2.1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@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
`. `'` la...@debian.org / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.0
+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
+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.0 +0100
--- b/debian/patches/series 2016-08-15 21:28:06.100710463 +0100
@@ -0,0 +1 @@
+reproducible-build.patch