Bug#860972: cyclades-serial-client: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Apr 22 21:33:24 UTC 2017
Source: cyclades-serial-client
Version: 0.93
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 cyclades-serial-client could not be built reproducibly.
Patch attached. Note the extra hunks to regenerate ./configure.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/configure.in 2017-04-22 22:25:55.958431233 +0100
--- b/configure.in 2017-04-22 22:28:07.037989972 +0100
@@ -5,6 +5,9 @@
version="0.92"
AC_SUBST(date)
date=`date`
+if [[ -n "$SOURCE_DATE_EPOCH" ]]; then
+ date=`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH"`
+fi
AC_SUBST(stripping)
AC_ARG_ENABLE(stripping,
--- a/debian/control 2017-04-22 22:25:55.962431220 +0100
--- b/debian/control 2017-04-22 22:31:00.213420202 +0100
@@ -2,7 +2,7 @@
Section: comm
Priority: optional
Maintainer: Russell Coker <russell at coker.com.au>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), dh-autoreconf
Standards-Version: 3.5.2
Package: cyclades-serial-client
--- a/debian/rules 2017-04-22 22:25:55.962431220 +0100
--- b/debian/rules 2017-04-22 22:30:48.081459640 +0100
@@ -21,6 +21,7 @@
config.status: configure
dh_testdir
# Add here commands to configure the package.
+ dh_autoreconf
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/ --mandir=\$${prefix}/usr/share/man
@@ -46,7 +47,7 @@
-test -r /usr/share/misc/config.guess && \
cp -f /usr/share/misc/config.guess config.guess
-
+ dh_autoreconf_clean
dh_clean
install: build
More information about the Reproducible-bugs
mailing list