Package: autopkgtest
Version: 5.44
Severity: normal

Hi,

as discussed yesterday in #debian-devel, autopkgtest installs dpkg-dev
into the first testbed but not afterwards, resulting in a different set
of installed packages and thus different test results. Note that this is
easily visible with the autopkgtest-virt-unshare backend that uses a
minimal chroot and does not use setup-testbed which installs dpkg-dev by
default.
An example to reproduce is ros-image-pipeline which is missing a make
dependency in the bookworm version. Running a single test works fine:

$ autopkgtest --test-name libimage-rotate-dev ros-image-pipeline -- unshare -r 
bookworm
[..]
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu bzip2 dpkg-dev libbinutils 
libctf-nobfd0 libctf0 libdpkg-perl libgprofng0 libjansson4 make patch xz-utils
[..]
libimage-rotate-dev  PASS

But when running the same test as the second one it fails because make
is no longer installed:

$ autopkgtest --test-name libimage-publisher-dev --test-name 
libimage-rotate-dev ros-image-pipeline -- unshare -r bookworm
[..]
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu bzip2 dpkg-dev libbinutils 
libctf-nobfd0 libctf0 libdpkg-perl libgprofng0 libjansson4 make patch xz-utils
[..]
libimage-publisher-dev PASS
autopkgtest [07:47:25]: test libimage-rotate-dev: preparing testbed
[..]
CMake Error: CMake was unable to find a build program corresponding to "Unix 
Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a 
different build tool.
libimage-rotate-dev  FAIL non-zero exit status 1

I think autopkgtest should clean up dpkg-dev before running the first
test.

Cheers Jochen

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.15-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autopkgtest depends on:
ii  apt-utils            2.9.30
ii  libdpkg-perl         1.22.15
ii  mawk                 1.3.4.20250131-1
ii  procps               2:4.0.4-7
ii  python3              3.13.1-2
ii  python3-debian       0.1.49
ii  python3-distro-info  1.13
ii  retry                1.0.5-3

Versions of packages autopkgtest recommends:
ii  autodep8  0.28+nmu1
pn  fakeroot  <none>

Versions of packages autopkgtest suggests:
pn  docker-cli | docker.io  <none>
pn  docker.io               <none>
pn  fakemachine             <none>
pn  genisoimage             <none>
pn  incus                   <none>
pn  lxc                     <none>
pn  lxd                     <none>
ii  ovmf                    2024.11-5
pn  ovmf-ia32               <none>
pn  podman                  <none>
pn  qemu-efi-aarch64        <none>
pn  qemu-efi-arm            <none>
pn  qemu-efi-riscv64        <none>
pn  qemu-system             <none>
ii  qemu-utils              1:9.2.1+ds-1
pn  schroot                 <none>
ii  util-linux              2.40.4-4
pn  vmdb2                   <none>
pn  zerofree                <none>

-- no debconf information

Reply via email to