[Q][PATCH 1/5] UBUNTU: [Packaging] debian.master/control.stub.in: prepare for cross-compiling
Zixing Liu
zixing.liu at canonical.com
Fri Jun 27 00:43:59 UTC 2025
This patch adds :native suffix to all the Build-Depends packages that should
be native (target architecture version should not be installed) to the build
machine.
libpython3-dev (foreign-architecture variant) is added to support
cross-compiling Python bindings.
Signed-off-by: Zixing Liu <zixing.liu at canonical.com>
---
debian.master/control.stub.in | 57 ++++++++++++++++++-----------------
1 file changed, 29 insertions(+), 28 deletions(-)
diff --git a/debian.master/control.stub.in b/debian.master/control.stub.in
index 9fef35e753e4..05de4a0a2d2f 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 <!stage1>,
- bindgen [amd64 arm64 armhf ppc64el riscv64 s390x],
- bison <!stage1>,
- clang-19 [amd64 arm64 armhf ppc64el riscv64 s390x],
- cpio,
- curl <!stage1>,
+ bc:native <!stage1>,
+ bindgen:native [amd64 arm64 armhf ppc64el riscv64 s390x],
+ bison:native <!stage1>,
+ clang-19:native [amd64 arm64 armhf ppc64el riscv64 s390x],
+ cpio:native,
+ curl:native <!stage1>,
debhelper-compat (= 10),
- default-jdk-headless <!stage1>,
+ default-jdk-headless:native <!stage1>,
dkms <!stage1>,
- dwarfdump <!stage1>,
- flex <!stage1>,
- gawk <!stage1>,
- java-common <!stage1>,
- kmod <!stage1>,
+ dwarfdump:native <!stage1>,
+ flex:native <!stage1>,
+ gawk:native <!stage1>,
+ java-common:native <!stage1>,
+ kmod:native <!stage1>,
libaudit-dev <!stage1>,
libcap-dev <!stage1>,
libdebuginfod-dev [amd64 arm64 armhf ppc64el s390x riscv64] <!stage1>,
@@ -38,25 +38,26 @@ Build-Depends:
libtracefs-dev [amd64 arm64 armhf ppc64el s390x riscv64] <!stage1>,
libudev-dev <!stage1>,
libunwind8-dev [amd64 arm64 armhf ppc64el] <!stage1>,
- makedumpfile [amd64] <!stage1>,
- openssl <!stage1>,
- pahole (>= 1.29-2ubuntu2) [amd64 arm64 armhf ppc64el s390x riscv64] | dwarves (>= 1.21) [amd64 arm64 armhf ppc64el s390x riscv64] <!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>,
pkg-config <!stage1>,
- python3 <!stage1>,
- python3-dev <!stage1>,
- python3-setuptools,
- rsync [!i386] <!stage1>,
- rust-src [amd64 arm64 armhf ppc64el riscv64 s390x],
- rustc (>= 1.82) [amd64 arm64 armhf ppc64el riscv64 s390x],
- rustfmt [amd64 arm64 armhf ppc64el riscv64 s390x],
+ python3:native <!stage1>,
+ python3-dev:native <!stage1>,
+ libpython3-dev <!stage1> <cross>,
+ python3-setuptools:native,
+ rsync:native [!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 <!stage1>,
+ zstd:native <!stage1>,
Build-Depends-Indep:
- asciidoc <!stage1>,
- bzip2 <!stage1>,
- python3-docutils <!stage1>,
- sharutils <!stage1>,
- xmlto <!stage1>,
+ asciidoc:native <!stage1>,
+ bzip2:native <!stage1>,
+ python3-docutils:native <!stage1>,
+ sharutils:native <!stage1>,
+ xmlto:native <!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