All of lore.kernel.org
 help / color / mirror / Atom feed
* [xfstests-bld PATCH] test-appliance: use --auto-deconfigure when installing extra packages
@ 2018-03-06  1:32 Eric Biggers
  2018-03-24  2:33 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2018-03-06  1:32 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: fstests, Eric Biggers

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [xfstests-bld PATCH] test-appliance: use --auto-deconfigure when installing extra packages
  2018-03-06  1:32 [xfstests-bld PATCH] test-appliance: use --auto-deconfigure when installing extra packages Eric Biggers
@ 2018-03-24  2:33 ` Theodore Y. Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Y. Ts'o @ 2018-03-24  2:33 UTC (permalink / raw)
  To: Eric Biggers; +Cc: fstests, Eric Biggers

On Mon, Mar 05, 2018 at 05:32:09PM -0800, Eric Biggers wrote:
> 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>

Applied, thanks.

					- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-24  2:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-06  1:32 [xfstests-bld PATCH] test-appliance: use --auto-deconfigure when installing extra packages Eric Biggers
2018-03-24  2:33 ` Theodore Y. Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.