• pbuilder root seems to lack support for usrmerge when doing autopkgtest

    From Andreas Tille@21:1/5 to All on Tue Sep 19 16:40:02 2023
    Hi,

    I configured pbuilder (Uploaders in CC) to run autopkgtest after a
    successful build. This worked nicely until yesterday (at least - may be
    a couple of days before but I did not noticed). Since yesterday I get:

    E: /bin resolved to a different inode than /usr/bin
    E: Unmerged usr is no longer supported, install usrmerge to continue. autopkgtest: WARNING: Test dependencies are unsatisfiable - calling apt install on test deps directly for further data about failing dependencies in test logs

    The test itself runs in Salsa CI - so the package itself is not broken.
    I'm actually using cowbuilder - but I naively assume this is not
    relevant.

    I tried to fix this with

    diff --git a/pbuilderrc b/pbuilderrc
    index d796fd8..9176073 100644
    --- a/pbuilderrc
    +++ b/pbuilderrc
    @@ -11,6 +11,6 @@ OTHERMIRROR="deb [trusted=yes] file:///var/cache/pbuilder/extra/release ./"
    BINDMOUNTS="/dev/shm /var/cache/pbuilder/extra/release"
    HOOKDIR=/var/cache/pbuilder/hooks
    # this is necessary for running ''apt-ftparchive'' in the hook below -EXTRAPACKAGES="apt-utils"
    +EXTRAPACKAGES="apt-utils usrmerge"


    in /etc but with no change. According to the log the package usrmerge
    is really installed in the pbuilder chroot.

    Do you have any hints? If not, what further information should I
    provide? (logs etc?)

    Kind regards
    Andreas.

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gregor herrmann@21:1/5 to Andreas Tille on Tue Sep 19 17:40:01 2023
    On Tue, 19 Sep 2023 16:35:37 +0200, Andreas Tille wrote:

    I configured pbuilder (Uploaders in CC) to run autopkgtest after a
    successful build. This worked nicely until yesterday (at least - may be
    a couple of days before but I did not noticed). Since yesterday I get:

    E: /bin resolved to a different inode than /usr/bin
    E: Unmerged usr is no longer supported, install usrmerge to continue. autopkgtest: WARNING: Test dependencies are unsatisfiable - calling apt install on test deps directly for further data about failing dependencies in test logs

    That's from apt:

    apt (2.7.4) unstable; urgency=medium

    * Only accept installs of usrmerge on unmerged-usr systems.
    As of bookworm, merged-usr is mandatory, and people got caught
    in the crosshairs of the dpkg fsys-unmessusr debacle and inadvertently
    reverted back to an unmerged configuration and continue to remain
    on an unsupported system unknowingly.

    I tried to fix this with

    diff --git a/pbuilderrc b/pbuilderrc
    index d796fd8..9176073 100644
    --- a/pbuilderrc
    +++ b/pbuilderrc
    @@ -11,6 +11,6 @@ OTHERMIRROR="deb [trusted=yes] file:///var/cache/pbuilder/extra/release ./"
    BINDMOUNTS="/dev/shm /var/cache/pbuilder/extra/release"
    HOOKDIR=/var/cache/pbuilder/hooks
    # this is necessary for running ''apt-ftparchive'' in the hook below -EXTRAPACKAGES="apt-utils"
    +EXTRAPACKAGES="apt-utils usrmerge"


    in /etc but with no change. According to the log the package usrmerge
    is really installed in the pbuilder chroot.

    Looks like your chroot is not /usr-merged; no idea why installing the usrmerge package didn't and doesn't change it.

    Do you have any hints? If not, what further information should I
    provide? (logs etc?)

    Just for comparison my (unstable) chroot looks /usr-merged:

    % ll /var/cache/pbuilder/base.cow
    lrwxrwxrwx 2 root root 7 Sep 18 2022 bin -> usr/bin


    (Looking through my other chroots, it looks like only the unstable
    and the experimental ones are merged, in the others, including the
    testing ones, /bin is still a directory. Interesting.)

    Maybe try to login in:
    cowbuilder --login --save-after-login [--basepath /some/where]
    and reconfigure usrmerge, or something?


    Cheers,
    gregor


    --
    .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
    : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
    `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
    `-

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmUJtgVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgbXiw/+KA0umFfAX6orT3bTOoHukByzhSKTX+G6Z6wFYlqjCeFJhpoWWXHsjApD oh3BDrmOf7Bb9pSWAwIY5BzXOD5vQy88XSP+9ZlkDT7CXJXL/DR6oA8vYDZdhFTx KPm1MGAqwTashbtOYFUOZ3uPFP7XtJnFuVxh5bVXCJK/ZYV/inLdnx/nFGLIve5p O+5+pYlo9S1iLriYB6BZaiTmXIS5CM+59sZiZq212IUslt9Xg3NaYEe8+9m//2H3 qIklvDKV9GLmWz77afDWVWX7rYgbEgYGNHE4S2LKY6ex6Cc4ZkxuXJGpT10ZnWg3 FBjJOVzjQMAlb6lI+ZOVaLWYvQx3ZJ/Xp9Dq/RUFoS4ufzvxABsMnS+FCO1hitCz 5HqybJsMlUkEnNmQPaziSedwwGwJg5txRSFbbYKxSBWMzx9LUTBnX5uA0hGmwLCp dVs0mSaoVvvmbCeV5kv6G8f01OWcaJ3EAcNksnz1Ny3r31vA++sQqWZ0ikE+n3M6
    mjYQuCc0
  • From gregor herrmann@21:1/5 to gregor herrmann on Tue Sep 19 18:40:01 2023
    On Tue, 19 Sep 2023 16:53:52 +0200, gregor herrmann wrote:

    (Looking through my other chroots, it looks like only the unstable
    and the experimental ones are merged, in the others, including the
    testing ones, /bin is still a directory. Interesting.)

    Haha, upgrading a trixie chroot shows:

    Preparing to unpack .../usr-is-merged_37_all.deb ...
    W: /etc/unsupported-skip-usrmerge-conversion exists.
    Unpacking usr-is-merged (37) over (35) ...


    Might have been created via debootstrap's "--variant=buildd" option
    in the past …

    Cheers,
    gregor

    --
    .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
    : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
    `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
    `-

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmUJzHBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgZP6RAAgqsMnZ5TTMqQRW3OVbx5Dc4fLABNMcr6jYuonbxjRsO+2TcIYj0fuoak qlvsKmn+hVN23I7eav0tZBsi63vhL6U0WT6uBTLHFyR7ybBM1w+5mh0F+roXGE0S 050RrBs/83AmsGKOcX8EvXU2K9O5qNUopHP5CWEn2le94WaMVnldDmgWI2qLEYPu aLFPn53W3H/m3MghABv6Mp6jSud4QkhyFBw1+yv2DByWGgsS2wN+LRTqH4IwbVZs 6R4WmCtC4CnpUdDFiMd6AL2+CqYnqXXF80KpFNHjDh0/1HJytp3ijrocAKRJ0t6j H+Z+r4Drg+0N8Ws0rdJr+uj90EsNoLwRfhU3EtGfDAFYghYSlkhZ8heqqMpkOWTz YOl58y6e4Zovvfu1CI1UWmzzd0o8tOGr73lGlM/Dbz+4CTnG47LYXPVXIV2Q8yiV mpk10woDdBKzRkCI9F1yZJyaE3fLGmUCIHXuzhIVkUAeVNGksz9lWQswfJj3tCcS
    FhHtrKik
  • From Andreas Tille@21:1/5 to All on Wed Sep 20 09:50:02 2023
    Hi Gregor,

    Am Tue, Sep 19, 2023 at 04:53:52PM +0200 schrieb gregor herrmann:
    That's from apt:

    apt (2.7.4) unstable; urgency=medium

    * Only accept installs of usrmerge on unmerged-usr systems.
    As of bookworm, merged-usr is mandatory, and people got caught
    in the crosshairs of the dpkg fsys-unmessusr debacle and inadvertently
    reverted back to an unmerged configuration and continue to remain
    on an unsupported system unknowingly.

    OK.

    Looks like your chroot is not /usr-merged; no idea why installing the usrmerge
    package didn't and doesn't change it.

    Do you have any hints? If not, what further information should I
    provide? (logs etc?)

    Just for comparison my (unstable) chroot looks /usr-merged:

    % ll /var/cache/pbuilder/base.cow
    lrwxrwxrwx 2 root root 7 Sep 18 2022 bin -> usr/bin


    I confirm that /var/cache/pbuilder/base.cow/bin was no symlink but
    just the old /bin dir.

    Maybe try to login in:
    cowbuilder --login --save-after-login [--basepath /some/where]
    and reconfigure usrmerge, or something?

    I did so and usrmerge was installed but somehow it seems it was not
    doing its job.

    I simply created a new chroot via

    sudo cowbuilder --create

    and it works now. So may be this thread is simply some warning that
    usrmerge might fail.

    Kind regards
    Andreas.

    --
    http://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)