Source: bsdowl
Version: 2.2.2-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: usrmerge

Dear Maintainer,

According to reproducible build tests bsdowl gets built differently
on a merged-usr system vs a non-merged system.

The package embeds the full path of mkdir, grep and sed. Since PATH
defaults to /usr/bin before /bin, the first will be used on a usrmerged
system where they're both essentially the same thing, but
/usr/bin/mkdir does not exist on non-merged systems.

The attached patch passes `MKDIR="/bin/mkdir -p" GREP="/bin/grep"
SED="/bin/sed"` to explicitly set the path.

Regards,
Ansgar

diff -Nru bsdowl-2.2.2/debian/changelog bsdowl-2.2.2/debian/changelog
--- bsdowl-2.2.2/debian/changelog	2014-11-29 13:08:32.000000000 +0100
+++ bsdowl-2.2.2/debian/changelog	2018-12-01 15:00:28.000000000 +0100
@@ -1,3 +1,10 @@
+bsdowl (2.2.2-1.1) UNRELEASED; urgency=medium
+
+  * Explicit pass MKDIR_P, GREP and SED to configure to make build
+    reproducible between merged-usr and non-merged-usr systems.
+
+ -- Ansgar Burchardt <[email protected]>  Sat, 01 Dec 2018 15:00:28 +0100
+
 bsdowl (2.2.2-1) unstable; urgency=medium
 
   * Initial release. (Closes: #760592)
diff -Nru bsdowl-2.2.2/debian/rules bsdowl-2.2.2/debian/rules
--- bsdowl-2.2.2/debian/rules	2014-11-29 13:00:29.000000000 +0100
+++ bsdowl-2.2.2/debian/rules	2018-12-01 14:59:32.000000000 +0100
@@ -4,6 +4,9 @@
 %:
 	dh $@
 
+override_dh_auto_configure:
+	dh_auto_configure -- MKDIR_P="/bin/mkdir -p" GREP=/bin/grep SED=/bin/sed
+
 override_dh_auto_build:
 	${MAKETOOL} build
 

Reply via email to