From: Eric Biggers <ebiggers3@gmail.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: fstests@vger.kernel.org, Eric Biggers <ebiggers@google.com>
Subject: [xfstests-bld PATCH] test-appliance: use --auto-deconfigure when installing extra packages
Date: Mon, 5 Mar 2018 17:32:09 -0800 [thread overview]
Message-ID: <20180306013209.30082-1-ebiggers3@gmail.com> (raw)
From: Eric Biggers <ebiggers@google.com>
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.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
kvm-xfstests/test-appliance/gce-xfstests-bld.sh | 2 +-
kvm-xfstests/test-appliance/gen-image | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/kvm-xfstests/test-appliance/gce-xfstests-bld.sh b/kvm-xfstests/test-appliance/gce-xfstests-bld.sh
index a7ad6e9..ed5eb75 100644
--- a/kvm-xfstests/test-appliance/gce-xfstests-bld.sh
+++ b/kvm-xfstests/test-appliance/gce-xfstests-bld.sh
@@ -145,7 +145,7 @@ systemctl enable telnet-getty@ttyS3.service
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
diff --git a/kvm-xfstests/test-appliance/gen-image b/kvm-xfstests/test-appliance/gen-image
index 6ba1320..bba7e88 100755
--- a/kvm-xfstests/test-appliance/gen-image
+++ b/kvm-xfstests/test-appliance/gen-image
@@ -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
--
2.16.2.395.g2e18187dfd-goog
next reply other threads:[~2018-03-06 1:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-06 1:32 Eric Biggers [this message]
2018-03-24 2:33 ` [xfstests-bld PATCH] test-appliance: use --auto-deconfigure when installing extra packages Theodore Y. Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180306013209.30082-1-ebiggers3@gmail.com \
--to=ebiggers3@gmail.com \
--cc=ebiggers@google.com \
--cc=fstests@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox