Source: mpb
Version: 1.5-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: usrmerge

Dear Maintainer,

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

The problem is caused by looking up the full path of bash at buildtime
and embedding than in shipped files.
On merged-usr systems /bin is as symlink to /usr/bin and normally
PATH contains /usr/bin before /bin, thus /usr/bin/bash is found on
merged-usr while on a non-merged system it's /bin/bash .

This is easily fixed by passing the AC_PATH_PROG variable explicitly
to configure, ie. SH_JOB=/bin/bash.
Please see attached  debdiff.

Regards,
Andreas Henriksson
diff -Nru mpb-1.5/debian/changelog mpb-1.5/debian/changelog
--- mpb-1.5/debian/changelog    2017-12-13 19:00:00.000000000 +0100
+++ mpb-1.5/debian/changelog    2018-12-02 16:49:06.000000000 +0100
@@ -1,3 +1,11 @@
+mpb (1.5-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Pass SH_JOB=/bin/bash to configure
+    - fixes reproducible build on merged-usr vs non-merged
+
+ -- Andreas Henriksson <[email protected]>  Sun, 02 Dec 2018 16:49:06 +0100
+
 mpb (1.5-3) unstable; urgency=low
 
   * don't build package on mipsel (Closes: #846923)
diff -Nru mpb-1.5/debian/rules mpb-1.5/debian/rules
--- mpb-1.5/debian/rules        2017-11-06 16:01:22.000000000 +0100
+++ mpb-1.5/debian/rules        2018-12-02 16:48:45.000000000 +0100
@@ -51,7 +51,7 @@
        # normal version
        echo "Step1: normal version start"
        #XXX dh_auto_configure -- $(CONFIG_OPTS)
-       F77=gfortran CC=mpicc ./configure $(CONFIG_OPTS)
+       F77=gfortran CC=mpicc SH_JOB=/bin/bash ./configure $(CONFIG_OPTS)
        dh_auto_build
        make install prefix=$(DEST_DIR)
        make clean
@@ -59,7 +59,7 @@
 
        # version with inverse symmetry
        #XXX dh_auto_configure -- --with-inv-symmetry $(CONFIG_OPTS)
-       F77=gfortran CC=mpicc ./configure --with-inv-symmetry $(CONFIG_OPTS)
+       F77=gfortran CC=mpicc SH_JOB=/bin/bash ./configure --with-inv-symmetry 
$(CONFIG_OPTS)
        echo "Step2: inverse version start"
        dh_auto_build
        make install prefix=$(DEST_DIR)
@@ -69,7 +69,7 @@
        # normal version with mpi
        echo "Step3: mpi version start"
        #XXX dh_auto_configure -- --with-mpi $(CONFIG_OPTS)
-       F77=gfortran CC=mpicc ./configure --with-mpi $(CONFIG_OPTS)
+       F77=gfortran CC=mpicc SH_JOB=/bin/bash ./configure --with-mpi 
$(CONFIG_OPTS)
        dh_auto_build
        make install prefix=$(DEST_DIR_MPI)
        make clean
@@ -78,7 +78,7 @@
        # version with inverse symmetry with mpi
        echo "Step4: mpi inv version start"
        #XXX dh_auto_configure -- --with-mpi --with-inv-symmetry $(CONFIG_OPTS)
-       F77=gfortran CC=mpicc ./configure --with-mpi --with-inv-symmetry 
$(CONFIG_OPTS)
+       F77=gfortran CC=mpicc SH_JOB=/bin/bash ./configure --with-mpi 
--with-inv-symmetry $(CONFIG_OPTS)
        dh_auto_build
        echo "Step4: mpi inv version end"
        make install prefix=$(DEST_DIR_MPI)

Reply via email to