Source: idjc
Version: 0.8.16-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 idjc could not be built reproducibly.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 02:00:00.000000000 
+0200
--- b/debian/patches/reproducible-build.patch   2016-07-17 23:34:10.504082438 
+0200
@@ -0,0 +1,18 @@
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-07-17
+
+--- idjc-0.8.16.orig/Makefile.am
++++ idjc-0.8.16/Makefile.am
+@@ -43,7 +43,11 @@ if GIT_VERSION_CONTROL
+ else
+       rm buildinfo
+ endif
+-      echo Build date: $$(date -R) >> buildinfo
++      if test -n "$$SOURCE_DATE_EPOCH"; then \
++              echo Build date: $$(date --utc --date="@$${SOURCE_DATE_EPOCH}" 
-R) >> buildinfo; \
++      else \
++              echo Build date: $$(date -R) >> buildinfo; \
++      fi
+ 
+ clean-local:
+       rm -f buildinfo ChangeLog.gz README.gz NEWS.gz AUTHORS.gz 
${PACKAGE_NAME}.desktop ${PACKAGE_NAME}.appdata.xml ${PACKAGE_NAME}
--- a/debian/patches/series     2016-07-17 23:17:28.222233879 +0200
--- b/debian/patches/series     2016-07-17 23:31:29.038910996 +0200
@@ -1,2 +1,3 @@
 desktop.patch
 man.patch
+reproducible-build.patch
_______________________________________________
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