[buildd-tools-devel] Bug#886257: sbuild: extra-package should use 'dpkg-scanpackages -m' otherwise some packages get ignored

Ximin Luo infinity0 at debian.org
Wed Jan 3 14:25:33 UTC 2018


Package: sbuild
Version: 0.73.0-4
Severity: normal
Tags: patch

Dear Maintainer,

When doing `--extra-package`, sbuild uses dpkg-scanpackages to put stuff into
an APT repo. When multiple architectures of the same deb are present in the
same directory, this results in a warning message like:

  dpkg-scanpackages: warning: package libflint-dev (filename ./libflint-dev_2.5.2-17+b1_i386.deb) is repeat; ignored that one and using data from ./libflint-dev_2.5.2-17+b1_amd64.deb!

then later sbuild (with --bd-uninstallable-explainer=apt) fails with:

  Broken sbuild-build-depends-flint-arb-dummy:i386 Depends on libflint-dev:i386 < none | 2.5.2-17 @un uH > (>= 2.5.2-17)

because it's trying to use the libflint-dev from the archives and not the one I just rebuilt.

This is fixed by patching ResolverBase.pm:

-system_redir_stdout('Packages', 'dpkg-scanpackages', '.', '/dev/null');
+system_redir_stdout('Packages', 'dpkg-scanpackages', '-m', '.', '/dev/null');


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'buildd-unstable'), (500, 'stable'), (300, 'unstable'), (100, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild depends on:
ii  adduser         3.116
ii  libsbuild-perl  0.73.0-4
ii  perl            5.26.1-3

Versions of packages sbuild recommends:
ii  autopkgtest  5.1
ii  debootstrap  1.0.93
ii  schroot      1.6.10-4

Versions of packages sbuild suggests:
pn  deborphan  <none>
ii  kmod       24-1
ii  wget       1.19.2-1

-- no debconf information



More information about the Buildd-tools-devel mailing list