Bug#860266: miniupnpd: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Apr 13 19:06:51 UTC 2017
Source: miniupnpd
Version: 1.8.20140523-4.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that miniupnpd could not be built reproducibly.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/0070_reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0070_reproducible_build.patch 2017-04-13 20:05:14.339922693 +0100
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-04-13
+
+--- miniupnpd-1.8.20140523.orig/genconfig.sh
++++ miniupnpd-1.8.20140523/genconfig.sh
+@@ -43,6 +43,9 @@ CONFIGMACRO="CONFIG_H_INCLUDED"
+ # version reported in XML descriptions
+ #UPNP_VERSION=20070827
+ UPNP_VERSION=`date +"%Y%m%d"`
++if [ -n "$SOURCE_DATE_EPOCH" ]; then
++ UPNP_VERSION=`date --utc --date="@$SOURCE_DATE_EPOCH" +"%Y%m%d"`
++fi
+ # Facility to syslog
+ LOG_MINIUPNPD="LOG_DAEMON"
+
--- a/debian/patches/series 2017-04-13 20:02:21.971315467 +0100
--- b/debian/patches/series 2017-04-13 20:05:12.627916678 +0100
@@ -4,3 +4,4 @@
0040_fix_buffer_overrun_in_ParseHttpHeaders.patch
0050_check_if_BuildHeader_upnphttp_failed_to_allocate_memory.patch
0060_iptables_check.patch
+0070_reproducible_build.patch
More information about the Reproducible-bugs
mailing list