Bug#834452: libdc0: please make the build reproducible

2016-10-17 Thread Chris Lamb
Dear Maintainer,

> Source: libdc0
> Version: 0.3.13-1
> Tags: patch

There hasn't seem to be any update on this bug in 62 days, in which
time the Reproducible Builds effort has come on a long way. :)

Would you consider applying this patch and uploading?


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#834452: libdc0: please make the build reproducible

2016-08-15 Thread Chris Lamb
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