build: print !tracedeps warning for cross-native 1

Building without !tracedeps is a problem with cross-native version 1 but
not version 2. Fix the warning.

Fixes: 2ee916f5 ("build: add pmb:cross-native2 (MR 2474)")

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2568
This commit is contained in:
Oliver Smith 2025-03-09 16:52:11 +01:00
parent 58119697fd
commit 53d705194f
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -211,11 +211,10 @@ def run_abuild(
the environment variables dict generated in this function.
"""
# Sanity check
if cross == "native" and "!tracedeps" not in apkbuild["options"]:
logging.info(
"WARNING: Option !tracedeps is not set, but we're"
" cross-compiling in the native chroot. This will"
" probably fail!"
if cross == "kernel" and "!tracedeps" not in apkbuild["options"]:
logging.warning(
"WARNING: Option !tracedeps is not set, but cross compiling with"
" cross-native (version 1). This will probably fail!"
)
# For cross-native2 compilation, bindmount the "host" rootfs to /mnt/sysroot