[Reproducible-builds] Bug#833611: fntsample: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Aug 6 22:40:23 UTC 2016
Source: fntsample
Version: 4.0-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], we noticed
that fntsample could not be built reproducibly.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/control 2016-08-06 23:30:43.895098667 +0100
--- b/debian/control 2016-08-06 23:38:37.890994350 +0100
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: ÐвгенÑй ÐеÑеÑÑков <eugen at debian.org>
Build-Depends: debhelper (>= 9~), gawk, libcairo2-dev, unicode-data, libglib2.0-dev,
- pkg-config, libfreetype6-dev, libpango1.0-dev (>= 1.16), gettext, autotools-dev
+ pkg-config, libfreetype6-dev, libpango1.0-dev (>= 1.16), gettext, autotools-dev, dh-autoreconf
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/collab-maint/fntsample.git
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/fntsample.git
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch 2016-08-06 23:34:48.621109953 +0100
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-06
+
+--- fntsample-4.0.orig/configure.ac
++++ fntsample-4.0/configure.ac
+@@ -35,7 +35,11 @@ Use --with-unicode-blocks option to spec
+ Blocks.txt file is available at Unicode site: http://unicode.org/Public/UNIDATA/Blocks.txt])
+ fi
+
+-DATE=`date +%F`
++if test -n "$SOURCE_DATE_EPOCH"; then
++ DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +%F`
++else
++ DATE=`date +%F`
++fi
+ AC_SUBST([DATE])
+
+ AC_CONFIG_FILES([Makefile fntsample.1 pdfoutline.1 po/Makefile.in])
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2016-08-06 23:34:46.333091146 +0100
@@ -0,0 +1 @@
+reproducible-build.patch
--- a/debian/rules 2016-08-06 23:30:43.895098667 +0100
--- b/debian/rules 2016-08-06 23:38:32.950953747 +0100
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
%:
- dh $@ --with autotools_dev
+ dh $@ --with autotools_dev,autoreconf
override_dh_gencontrol:
dh_gencontrol -- -VBuilt-Using="`dpkg-query -f'$${source:Package} (= $${source:Version})' -W unicode-data`"
More information about the Reproducible-builds
mailing list