Skip to content

Commit

Permalink
tests: install missing dependency to fix oracular building (canonical…
Browse files Browse the repository at this point in the history
…#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
  • Loading branch information
sergiocazzolato authored Oct 12, 2024
1 parent 7ba761e commit e440fb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/lib/pkgdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit e440fb9

Please sign in to comment.