[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#964475: dpkg breaks apt autopkgtest: dpkg: error: unknown option --foreign-architecture



Control: tags -1 + pending

Hi,

On Tue, Jul 07, 2020 at 08:47:21PM +0200, Paul Gevers wrote:
> Currently this regression is blocking the migration of dpkg to testing
> [1]. Due to the nature of this issue, I filed this bug report against
> both packages. Can you please investigate the situation and reassign the
> bug to the right package?

We (apt & dpkg maintainers) talked about this on IRC already and
I pushed a workaround (of sorts) to apt.git [0] for this.


The underlying problem is that the hookscript pkg-config installs does
not support DPKG_ROOT while the newer version of dpkg does support it
(more) now reporting architectures from the DPKG_ROOT rather than the
host system it previously did (arguably incorrectly). Based on that
pkg-config-dpkghook attempts to create (or remove) symlinks in /usr/bin
for architectures added/removed in dpkgroot which it isn't allowed to
(as it isn't run as root) and fails.

APTs testcases detect these failures in "dpkg --add-architecture" and
assumes it is working with a previous version of a dpkg Multi-Arch
implementation used e.g. in older Ubuntus resulting in the tests
eventually using commandline options unknown to the dpkg version
it is really using here.

The workaround detects these failures and ignores them now – as the
hookscript is post-invoke the architecture is added, so we got what
we were asking for – but ideally #824774 in pkg-config would be resolved.

(Ignoring that dpkg should also probably not read /etc/dpkg.cfg.d files
 from the root system, but that might be an even longer endeavour)


Best regards

David Kalnischkies

[0] https://salsa.debian.org/apt-team/apt/-/commit/3fe1419433f195d57b948b100b218cf14a2841d0

Attachment: signature.asc
Description: PGP signature


Reply to: