Bug#787093: autopkgtest: dpkg-deb chokes with build profiles in Build-Depends:

Antonio Terceiro terceiro at debian.org
Thu May 28 13:36:43 UTC 2015

Package: autopkgtest
Version: 3.14.2
Severity: normal
Tags: patch

gem2deb seems to the first package to use build profiles in the official
Debian  archive, and it started to cause fallout in several places.
autopkgtest is also affected.

The fake package created to encode the test dependencies gets the
Build-Dependencies of the source package, and when it contains build
profiles, dpkg-deb chokes on it. Arguably dpkg-deb could ignore build
profiles, but since build profiles were proposed explicitly as an
extension for the Build-Depends: field, I'd say it makes sense to fix
this in autopkgtest.

The attached patch fixes this by filtering out build profile
specifications from dependencies.

-- System Information:
Debian Release: stretch/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autopkgtest depends on:
ii  apt-utils
ii  libdpkg-perl    1.18.0
ii  procps          2:3.3.9-9
ii  python3         3.4.2-2
ii  python3-debian  0.1.27

Versions of packages autopkgtest recommends:
ii  autodep8  0.1

Versions of packages autopkgtest suggests:
ii  lxc          1:1.0.7-3terceiro1
ii  qemu-system  1:2.3+dfsg-3
ii  qemu-utils   1:2.3+dfsg-3
ii  schroot      1.6.10-1.1

-- no debconf information

Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-builddeps-filter-out-build-profiles-syntax.patch
Type: text/x-diff
Size: 2218 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20150528/eeb53eff/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20150528/eeb53eff/attachment.sig>

More information about the autopkgtest-devel mailing list