From 0ab75cfe2bafc6a3b6ed450cb82b736b66238e09 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 16 Mar 2025 21:41:43 +0100 Subject: [PATCH] build.package: makedeps warning only for c-n2 Splitting makedepends in _host and _build only makes a difference when building with cross-native2, as these packages end up in different chroots. For QEMU only and crossdirect we install all makedepends into the foreign chroot. For cross-native (v1) we install everything into the native chroot. Show the warning only for cross-native2 so people don't think they have to adjust their APKBUILDs here. Most of Alpine's APKBUILDs currently don't have this split either. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2571 --- pmb/build/_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/build/_package.py b/pmb/build/_package.py index 401a815f..f9e98c79 100644 --- a/pmb/build/_package.py +++ b/pmb/build/_package.py @@ -681,7 +681,7 @@ def packages( depends_build = apkbuild["makedepends_build"] else: depends_build = apkbuild["makedepends"] - if depends_build and depends_host: + if depends_build and depends_host and cross == CrossCompile.CROSS_NATIVE2: logging.warning( "WARNING: makedepends not split into _host and _build variants." " Trying to install all makedepends in both environments, please"