Package: mailagent
Version: 3.1-81-4
Severity: normal
Tags: patch
User: m...@linux.it
Usertags: usrmerge

Dear Maintainer,

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

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/mailagent.html

The problem is that the full path of cat and zcat is lookup up via PATH
at build-time and embedded into shipped files.
On merged-usr systems /bin is a symlink to /usr/bin and PATH normally
contains /usr/bin before /bin, thus finding /usr/bin/cat (instead
of /bin/cat like on a non-merged system).

The problem is easily fixed by explicitly passing the paths to use
to configure via debian/rules. Please see attached debdiff.

Regards,
Andreas Henriksson
diff -u mailagent-3.1-81/debian/changelog mailagent-3.1-81/debian/changelog
--- mailagent-3.1-81/debian/changelog
+++ mailagent-3.1-81/debian/changelog
@@ -1,3 +1,11 @@
+mailagent (1:3.1-81-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Pass configure flags -D cat=/bin/cat -D zcat=/bin/zcat
+    - fixes reproducible build on merged-usr vs non-merged
+
+ -- Andreas Henriksson <andr...@fatal.se>  Sun, 02 Dec 2018 17:44:18 +0100
+
 mailagent (1:3.1-81-4) unstable; urgency=low
 
   * Commented out a $USER in the man page shell sources that was capturing
diff -u mailagent-3.1-81/debian/rules mailagent-3.1-81/debian/rules
--- mailagent-3.1-81/debian/rules
+++ mailagent-3.1-81/debian/rules
@@ -33,6 +33,7 @@
               eval "$(dpkg-buildflags --export=sh)"     && \
                 sh ./Configure                             \
                   -de                                      \
+                  -D cat=/bin/cat -D zcat=/bin/zcat        \
                   -D prefix=$(PREFIX)                      \
                   -D orgname=/etc/news/organization        \
                   -D myhostname=localhost                  \

Reply via email to