test-appliance: use --auto-deconfigure when installing extra packages
PATCH 1/1 test-appliance: use --auto-deconfigure when installing extra packages
From: Eric Biggers <[email protected]>
Trying to build the KVM or GCE test appliances with Debian packages built from the latest e2fsprogs git tree placed into the test-appliance/debs/ directory fails because of the recent renamings from libcomerr2 to libcom-err2 and e2fslibs to libext2fs2, e.g.:
dpkg: regarding .../libcom-err2_1.44.0~rc2-1_amd64.deb containing libcom-err2:amd64:
libcom-err2 breaks libcomerr2 (<< 1.43.9-1~)
libcomerr2:amd64 (version 1.43.4-2) is present and installed.
dpkg: error processing archive /run/libcom-err2_1.44.0~rc2-1_amd64.deb (--install):
installing libcom-err2:amd64 would break libcomerr2:amd64, and deconfiguration is not permitted (--auto-deconfigure might help)
Add the --auto-deconfigure argument to make it work. I'm not sure it's the best solution, but it works.
--- kvm-xfstests/test-appliance/gce-xfstests-bld.sh | 2 +- kvm-xfstests/test-appliance/gen-image | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
kvm-xfstests/test-appliance/gce-xfstests-bld.sh +1 -1
@@ -145,7 +145,7 @@ systemctl enable [email protected] if gsutil -m cp gs://$BUCKET/debs/*.deb /run then - dpkg -i --ignore-depends=e2fsprogs /run/*.deb + dpkg -i --ignore-depends=e2fsprogs --auto-deconfigure /run/*.deb rm -f /run/*.deb fi chmod +rx /usr/local/lib/gce-ltm/gce-xfs-ltm.fcgi
kvm-xfstests/test-appliance/gen-image +2 -2
@@ -273,14 +273,14 @@ if test -f "backport-packages-$SUITE" ; then ./get-backports-pkgs "$SUITE" "$ROOTDIR" if test -f "$ROOTDIR/debootstrap/debpaths" ; then DEBS=$(while read pkg path; do echo $path ; done <"$ROOTDIR/debootstrap/debpaths") - run_in_chroot "dpkg --ignore-depends=e2fsprogs -i $DEBS" + run_in_chroot "dpkg --ignore-depends=e2fsprogs --auto-deconfigure -i $DEBS" fi rm -rf "$ROOTDIR/debootstrap" fi DEBS=$(find debs -name \*.deb) if test -n "$DEBS" then - run_in_chroot "dpkg --ignore-depends=e2fsprogs -i $(echo $DEBS)" + run_in_chroot "dpkg --ignore-depends=e2fsprogs --auto-deconfigure -i $(echo $DEBS)" fi update_xfstests for i in vda vdb vdc vdd vde vdf results
Signature · 1 line
2.16.2.395.g2e18187dfd-goog
Theodore Y. Ts'o
AppliedQuoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
Trying to build the KVM or GCE test appliances with Debian packages built from the latest e2fsprogs git tree placed into the test-appliance/debs/ directory fails because of the recent renamings from libcomerr2 to libcom-err2 and e2fslibs to libext2fs2, e.g.:
dpkg: regarding .../libcom-err2_1.44.0~rc2-1_amd64.deb containing libcom-err2:amd64:
libcom-err2 breaks libcomerr2 (<< 1.43.9-1~)
libcomerr2:amd64 (version 1.43.4-2) is present and installed.
Quoted 8 lines
dpkg: error processing archive
/run/libcom-err2_1.44.0~rc2-1_amd64.deb(--install):
installing libcom-err2:amd64 would break libcomerr2:amd64, and deconfiguration is not permitted (--auto-deconfigure might help)Add the --auto-deconfigure argument to make it work. I'm not sure it's the best solution, but it works.
Signed-off-by Eric Biggers <[email protected]>
Applied, thanks.
- Ted