Source: wmweather+
Version: 2.15-1.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 wmweather+ 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/control    2016-08-04 07:29:22.553249971 +0100
--- b/debian/control    2016-08-04 07:46:02.637257232 +0100
@@ -2,7 +2,7 @@
 Section: x11
 Priority: optional
 Maintainer: Martin Stigge <mar...@stigge.org>
-Build-Depends: libpcre3-dev, libcurl4-gnutls-dev, libwraster-dev, debhelper 
(>= 9)
+Build-Depends: libpcre3-dev, libcurl4-gnutls-dev, libwraster-dev, debhelper 
(>= 9), dh-autoreconf
 Standards-Version: 3.9.6
 Vcs-Browser: 
http://anonscm.debian.org/viewvc/collab-maint/deb-maint/wmweather%2B/
 Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/wmweather+/
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2016-08-04 07:36:40.928734507 
+0100
@@ -0,0 +1,20 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-08-04
+
+--- wmweather+-2.15.orig/configure.ac
++++ wmweather+-2.15/configure.ac
+@@ -11,7 +11,12 @@ AH_VERBATIM([_GNU_SOURCE],
+ # define _GNU_SOURCE
+ #endif])
+ 
+-DATE=`date '+%B %e, %Y'`
++if test -n "$SOURCE_DATE_EPOCH"; then
++     DATE=`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH" '+%B %e, %Y'`
++else
++     DATE=`date '+%B %e, %Y'`
++fi
++
+ AC_SUBST(DATE)
+ AC_SUBST(VERSION)
+ 
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2016-08-04 07:36:39.616724016 +0100
@@ -0,0 +1 @@
+reproducible-build.patch
--- a/debian/rules      2016-08-04 07:29:22.553249971 +0100
--- b/debian/rules      2016-08-04 07:45:52.461174764 +0100
@@ -15,7 +15,7 @@
 
 
 %:
-       dh $@
+       dh $@ --with=autoreconf
 
 override_dh_auto_install:
        cp -f wmweather+ debian/wmweather+/usr/bin/wmweather+
_______________________________________________
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