[Q][PATCH 1/1] UBUNTU: [Packaging] debian.master/control.stub.in: fix dpkg-checkbuilddeps

Zixing Liu zixing.liu at canonical.com
Wed Jul 9 10:41:02 UTC 2025


complaining that :native packages with Multi-Arch: foreign are not found.
There is a behavior difference between "apt-get build-dep" and
"dpkg-checkbuilddeps" where apt will regard the "Arch: all" and
"Multi-Arch: foreign" as native packages while "dpkg-checkbuilddeps"
using a simpler dpkg status parser can not understand this.

Signed-off-by: Zixing Liu <zixing.liu at canonical.com>
---
 debian.master/control.stub.in | 36 +++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in
index 05de4a0a2d2f..5559498f50e5 100644
--- a/debian.master/control.stub.in
+++ b/debian.master/control.stub.in
@@ -7,20 +7,20 @@ Standards-Version: 3.9.4.0
 Build-Depends:
  autoconf <!stage1>,
  automake <!stage1>,
- bc:native <!stage1>,
+ bc <!stage1>,
  bindgen:native [amd64 arm64 armhf ppc64el riscv64 s390x],
- bison:native <!stage1>,
+ bison <!stage1>,
  clang-19:native [amd64 arm64 armhf ppc64el riscv64 s390x],
- cpio:native,
- curl:native <!stage1>,
+ cpio,
+ curl <!stage1>,
  debhelper-compat (= 10),
  default-jdk-headless:native <!stage1>,
  dkms <!stage1>,
  dwarfdump:native <!stage1>,
- flex:native <!stage1>,
- gawk:native <!stage1>,
- java-common:native <!stage1>,
- kmod:native <!stage1>,
+ flex <!stage1>,
+ gawk <!stage1>,
+ java-common <!stage1>,
+ kmod <!stage1>,
  libaudit-dev <!stage1>,
  libcap-dev <!stage1>,
  libdebuginfod-dev [amd64 arm64 armhf ppc64el s390x riscv64] <!stage1>,
@@ -39,25 +39,25 @@ Build-Depends:
  libudev-dev <!stage1>,
  libunwind8-dev [amd64 arm64 armhf ppc64el] <!stage1>,
  makedumpfile:native [amd64] <!stage1>,
- openssl:native <!stage1>,
- pahole:native (>= 1.29-2ubuntu2) [amd64 arm64 armhf ppc64el s390x riscv64] | dwarves:native (>= 1.21) [amd64 arm64 armhf ppc64el s390x riscv64] <!stage1>,
+ openssl <!stage1>,
+ pahole (>= 1.29-2ubuntu2) [amd64 arm64 armhf ppc64el s390x riscv64] | dwarves (>= 1.21) [amd64 arm64 armhf ppc64el s390x riscv64] <!stage1>,
  pkg-config <!stage1>,
  python3:native <!stage1>,
  python3-dev:native <!stage1>,
  libpython3-dev <!stage1> <cross>,
- python3-setuptools:native,
- rsync:native [!i386] <!stage1>,
+ python3-setuptools,
+ rsync [!i386] <!stage1>,
  rust-src:native [amd64 arm64 armhf ppc64el riscv64 s390x],
  rustc:native (>= 1.82) [amd64 arm64 armhf ppc64el riscv64 s390x],
  rustfmt:native [amd64 arm64 armhf ppc64el riscv64 s390x],
  uuid-dev <!stage1>,
- zstd:native <!stage1>,
+ zstd <!stage1>,
 Build-Depends-Indep:
- asciidoc:native <!stage1>,
- bzip2:native <!stage1>,
- python3-docutils:native <!stage1>,
- sharutils:native <!stage1>,
- xmlto:native <!stage1>,
+ asciidoc <!stage1>,
+ bzip2 <!stage1>,
+ python3-docutils <!stage1>,
+ sharutils <!stage1>,
+ xmlto <!stage1>,
 Vcs-Git: git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/=SERIES=
 XS-Testsuite: autopkgtest
 #XS-Testsuite-Depends: gcc-4.7 binutils
-- 
2.48.1




More information about the kernel-team mailing list