From 0625ece550eaa5c9b17d7572cda8fd80d5435600 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 14 Mar 2025 18:35:11 +0100 Subject: [PATCH] pmb.build.backend.run_abuild: remove cross default This function doesn't handle the case of being called without a value set for cross (it does not autodetect it) and callers don't expect that. So unset the default value. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2568 --- pmb/build/_package.py | 2 +- pmb/build/backend.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pmb/build/_package.py b/pmb/build/_package.py index 6750ba05..ccc24ff4 100644 --- a/pmb/build/_package.py +++ b/pmb/build/_package.py @@ -714,9 +714,9 @@ def packages( pkg["pkgver"], channel, pkg_arch, + cross, strict, force, - cross, hostchroot, src, bootstrap_stage, diff --git a/pmb/build/backend.py b/pmb/build/backend.py index 716d1fb1..bf8c6402 100644 --- a/pmb/build/backend.py +++ b/pmb/build/backend.py @@ -190,9 +190,9 @@ def run_abuild( pkgver: str, channel: str, arch: Arch, + cross: CrossCompileType, strict: bool = False, force: bool = False, - cross: CrossCompileType = None, hostchroot: Chroot = Chroot.native(), src: str | None = None, bootstrap_stage: int = BootstrapStage.NONE,