From e440fb944764fc6340acce492450dd139ab2022b Mon Sep 17 00:00:00 2001 From: Sergio Cazzolato Date: Sat, 12 Oct 2024 06:17:28 -0300 Subject: [PATCH] tests: install missing dependency to fix oracular building (#14613) * tests: install missing dependency to fix oracular building In oracular the packages: systemd-cryptsetup and systemd-dev are not included anymore in the base image which is used in google and openstack. This change adds this package as a tests dependency to avoid the following error when building snapd deb package. To reproduce the error, run: SPREAD_SNAPD_DEB_FROM_REPO=false spread -debug -no-debug-output google:ubuntu-24.10-64:tests/main/abort Error: configure: error: Package requirements (udev) were not met: Package 'udev', required by 'virtual:world', not found * install systemd-dev just in oracular --- tests/lib/pkgdb.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/lib/pkgdb.sh b/tests/lib/pkgdb.sh index 69e16c36467..9bad51a6723 100755 --- a/tests/lib/pkgdb.sh +++ b/tests/lib/pkgdb.sh @@ -623,6 +623,11 @@ pkg_dependencies_ubuntu_classic(){ qemu-kvm qemu-utils " + if os.query is-ubuntu 24.10; then + echo " + systemd-dev + " + fi ;; ubuntu-*) echo "