[Debian-ha-maintainers] Bug#915848: resource-agents: reproducible build (usrmerge): embeds path of tool found via PATH

Andreas Henriksson andreas at fatal.se
Fri Dec 7 10:48:42 GMT 2018


Package: resource-agents
Version: 1:4.2.0-1
Severity: normal
Tags: unreproducible patch
User: md at linux.it
Usertags: usrmerge

Dear maintainer.

The package resource-agents currently fails to build reproducibly on
merged-usr vs non-merged systems.

Please see attached patch fixing this issue.

Regards, Andreas Henriksson 
-------------- next part --------------
diff -Nru resource-agents-4.2.0/debian/changelog resource-agents-4.2.0/debian/changelog
--- resource-agents-4.2.0/debian/changelog	2018-10-24 11:43:37.000000000 +0200
+++ resource-agents-4.2.0/debian/changelog	2018-12-06 20:25:11.000000000 +0100
@@ -1,3 +1,11 @@
+resource-agents (1:4.2.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Pass paths explicitly to configure instead of looking up tools
+    - fixes reproducible build on merged-usr vs non-merged systems
+
+ -- Andreas Henriksson <andreas at fatal.se>  Thu, 06 Dec 2018 20:25:11 +0100
+
 resource-agents (1:4.2.0-1) unstable; urgency=medium
 
   * New upstream version 4.2.0
diff -Nru resource-agents-4.2.0/debian/rules resource-agents-4.2.0/debian/rules
--- resource-agents-4.2.0/debian/rules	2018-10-24 11:40:00.000000000 +0200
+++ resource-agents-4.2.0/debian/rules	2018-12-06 20:25:11.000000000 +0100
@@ -14,7 +14,12 @@
 	echo $(DEB_VERSION_UPSTREAM_REVISION) > .tarball-version
 	[ -f configure ] || sh autogen.sh
 	if [ -e configure -a ! -x configure ]; then chmod u+x configure; fi
-	./configure --sbindir=/usr/sbin --libexecdir=/usr/lib			\
+	./configure \
+		    BASH_SHELL=/bin/bash RM=/bin/rm \
+		    ROUTE=/sbin/route GREP=/bin/grep \
+		    TAR=/bin/tar PING=/bin/ping IFCONFIG=/sbin/ifconfig \
+		    REBOOT=/sbin/reboot POWEROFF_CMD=/sbin/poweroff \
+		    --sbindir=/usr/sbin --libexecdir=/usr/lib			\
 		    --with-ocf-root=/usr/lib/ocf --with-initdir=/etc/init.d	\
 		    --with-rsctmpdir=/run/resource-agents			\
 		    --prefix=/usr --sysconfdir=/etc --localstatedir=/var	\


More information about the Debian-ha-maintainers mailing list