Bug#757807: [build-rdeps] does not support arch qualifiers

Stuart Prescott stuart at debian.org
Mon Aug 11 13:44:59 UTC 2014


Package: devscripts
Version: 2.14.5~bpo70+2
Severity: important

Hi!

We now have packages with build-dependencies that are making use of multiarch
package qualifiers such as :any. Dpkg will actually accept any valid archiecture
string as an arch qualifier along with "any" and "native" and it is probably
worth supporting this now even if not all permutations of this are currently
acceptable in the archive.

  https://wiki.ubuntu.com/MultiarchCross

  http://sources.debian.net/src/dpkg/1.17.10/scripts/Dpkg/Deps.pm/#L555

Taking an example from sid where the qemu source package includes python:any
as a build dependency:

$ apt-cache showsrc qemu | grep python
Build-Depends: debhelper (>= 9), device-tree-compiler, texinfo, python:any, …

$ build-rdeps python | grep qemu

$ build-rdeps python:any | grep qemu
qemu


Without having waded my way through the entirety of build-rdeps, I think the fix
here is as simple as changing the regex at line 241 from:

  /^(.*\s)?\Q$package\E([\s,]|$)/

to

  /^(.*\s)?\Q$package\E(:[a-zA-Z0-9][a-zA-Z0-9-]*)?([\s,]|$)/


cheers
Stuart

-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (550, 'stable-updates'), (550, 'stable'), (60, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-0.bpo.2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev  1.16.15
ii  libc6     2.13-38+deb7u3
ii  perl      5.14.2-21+deb7u1
ii  python3   3.2.3-6

Versions of packages devscripts recommends:
ii  at                          3.1.13-2
ii  curl                        7.26.0-1+wheezy9
ii  dctrl-tools                 2.22.2
ii  debian-keyring              2014.04.25
ii  dput-ng [dput]              1.7~bpo70+1
ii  equivs                      2.0.9
ii  fakeroot                    1.18.4-2
ii  file                        1:5.17-1~bpo70+1
ii  gnupg                       1.4.12-7+deb7u4
ii  libdistro-info-perl         0.10
ii  libencode-locale-perl       1.03-1
ii  libjson-perl                2.53-1
ii  liblwp-protocol-https-perl  6.03-1
ii  libparse-debcontrol-perl    2.005-3
ii  libsoap-lite-perl           0.714-1
ii  liburi-perl                 1.60-1
ii  libwww-perl                 6.04-1
ii  lintian                     2.5.25~bpo70+1
ii  man-db                      2.6.2-1
ii  patch                       2.6.1-3
ii  patchutils                  0.3.2-1.1
ii  python3-debian              0.1.21+nmu2~bpo70+1
ii  python3-magic               1:5.17-1~bpo70+1
ii  sensible-utils              0.0.7
ii  strace                      4.5.20-2.3
ii  unzip                       6.0-8
ii  wdiff                       1.1.2-1
ii  wget                        1.13.4-3+deb7u1
ii  xz-utils                    5.1.1alpha+20120614-2

Versions of packages devscripts suggests:
ii  bsd-mailx [mailx]            8.1.2-0.20111106cvs-1
ii  build-essential              11.5
pn  cvs-buildpackage             <none>
pn  devscripts-el                <none>
ii  gnuplot                      4.6.0-8
ii  gpgv                         1.4.12-7+deb7u4
pn  libauthen-sasl-perl          <none>
ii  libfile-desktopentry-perl    0.04-3
pn  libnet-smtp-ssl-perl         <none>
pn  libterm-size-perl            <none>
ii  libtimedate-perl             1.2000-1
ii  libyaml-syck-perl            1.20-1
ii  mutt                         1.5.21-6.2+deb7u2
ii  openssh-client [ssh-client]  1:6.0p1-4+deb7u2
ii  svn-buildpackage             0.8.5
ii  w3m                          0.5.3-8

-- no debconf information



More information about the devscripts-devel mailing list