Bug#914086: /usr/lib/*/wx/config/*: potentially broken if built on a merged-/usr system and run on a non-merged-/usr system

Simon McVittie smcv at debian.org
Mon Nov 19 08:32:28 GMT 2018


Source: wxwidgets3.0
Version: 3.0.4+dfsg-4
Severity: normal
User: md at linux.it
Usertags: usrmerge
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Steps to reproduce:

* Have two chroots, containers or complete systems, one with merged /usr
  and one not
* Build wxwidgets3.0 on the system with merged /usr
* Install and use wxwidgets3.0 on the system without merged /usr

Expected result:

* The package is functionally equivalent to the package you'd get if it
  had been built on a system without merged /usr
* The absolute paths of standard tools in /bin or /sbin do not appear in
  the package's content as paths in /usr/bin or /usr/sbin
* Everything works as intended

Actual result:

* /usr/lib/*/wx/config/* contain EGREP="/usr/bin/grep -E"
* If those scripts invoke ${EGREP} (I assume they do, but I haven't
  actually checked) it will not work on non-merged-/usr systems, where
  /bin/grep exists but /usr/bin/grep does not

A merged-/usr system can be obtained by installing with
debootstrap >= 1.0.102 or debootstrap --merged-usr, or by installing the
usrmerge package. A non-merged-/usr system can be obtained by installing
with debootstrap --no-merged-usr (or upgrading from an older release) and
not installing usrmerge.

Recent tests on tests.reproducible-builds.org use unmerged /usr for the
first build and merged /usr for the second, as a way to detect some
issues in this class.

This bug can probably be fixed by passing EGREP="/bin/grep -E" as an
additional command-line argument when invoking configure.

    smcv



More information about the Reproducible-bugs mailing list