Files
vhaudiquet b34e86dcfe
CI / build (push) Successful in 2m49s
CI / test (push) Skipped
CI / snap (push) Failing after 11s
deb: scope the arch-indep build-dep pass to the host arch in cross builds
Without --host-architecture, the second build-dep pass re-resolves the
whole Build-Depends field for the native architecture: apt swaps
host-arch -dev packages for native ones (e.g. libcurl4-gnutls-dev,
whose arch-differing curl-config makes dpkg refuse the co-install) and
breaks the cross build environment.

Per dpkg-checkbuilddeps, both Build-Depends and Build-Depends-Indep
resolve for the host architecture in cross mode, so pass
--host-architecture to the second pass as well. Skip the pass entirely
when the source declares no Build-Depends-Indep.

Add an end-to-end regression test building a package that declares
libdb-dev in both fields and links a host-arch binary against it: the
test only passes if the arch-indep pass did not swap the arm64 -dev
packages for native ones.
2026-09-15 18:05:57 +02:00
..
fmt
2026-08-24 11:58:19 +02:00
2026-08-25 21:03:35 +02:00
2026-08-23 01:46:04 +02:00
2026-07-24 10:53:27 +02:00
2026-08-23 01:46:04 +02:00
2026-08-22 22:26:20 +02:00
2026-03-19 00:24:48 +01:00