[Piuparts-devel] Bug#860433: piuparts: reports many errors if the base tarball was created with merged /usr

Simon McVittie smcv at debian.org
Sun Apr 16 20:03:31 UTC 2017


Package: piuparts
Version: 0.76
Severity: normal
User: md at linux.it
Usertags: usrmerge

Steps to reproduce:

* Make a base tarball by archiving a chroot created with debootstrap from
  jessie-backports (which defaults to merged /usr) or with --merged-usr
* Run a basic piuparts install-upgrade-remove-purge test against that base
  tarball (in my case it boils down to
  piuparts -b minbase.tar.gz -d sid dbus_*.changes)

Expected result:

* Only errors relevant to the package are reported (no errors for a package
  that is piuparts-clean, such as dbus)

Actual result:

* Immediately after installing the packages under test, I get:

    0m28.8s DEBUG: Command ok: ['chroot', '/tmp/tmp3magVd', 'dpkg-query', '-W', '-f', '${Status}\\t${binary:Package}\\t${Package}\\t${Version}\\n']
    0m29.7s ERROR: FAIL: silently overwrites files via directory symlinks:
      /bin/bash (bash) != /usr/bin/bash (?)
        /bin -> usr/bin
      /bin/cat (coreutils) != /usr/bin/cat (?)
        /bin -> usr/bin

  (etc.)

I'm filing this as normal rather than wishlist because, although stretch's
debootstrap defaults to unmerged /usr (separate /lib, /sbin etc.), I suspect
that merged /usr might become the default again in the buster release cycle.

In this case I was testing amd64 and i386 builds of the same source code
(dbus from experimental), having rebuilt my amd64 sid base tarball with
debootstrap --no-merged-usr but not yet rebuilt my i386 sid base tarball
with that option. The amd64 test reported no errors, but the i386 test
reported errors as above.

Regards,
    S

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages piuparts depends on:
ii  debootstrap      1.0.89
ii  debsums          2.2
ii  dpkg             1.18.23
ii  lsb-release      9.20161125
ii  lsof             4.89+dfsg-0.1
ii  piuparts-common  0.76
ii  python-debian    0.1.30
pn  python:any       <none>

Versions of packages piuparts recommends:
ii  adequate  0.15.1

Versions of packages piuparts suggests:
ii  schroot  1.6.10-3+b1

-- no debconf information



More information about the Piuparts-devel mailing list