mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
packages: build_package(): improve logging so the user has a chance to know what's going on.
This commit is contained in:
parent
49f452342e
commit
851b4e7477
1 changed files with 9 additions and 7 deletions
|
@ -452,6 +452,7 @@ def build_package(
|
|||
foreign_arch = config.runtime.arch != arch
|
||||
deps = (list(set(package.depends) - set(package.names())))
|
||||
needs_rust = 'rust' in deps
|
||||
logging.info(f"{package.path}: Preparing to build: getting native arch build chroot")
|
||||
build_root: BuildChroot
|
||||
target_chroot = setup_build_chroot(
|
||||
arch=arch,
|
||||
|
@ -459,15 +460,16 @@ def build_package(
|
|||
clean_chroot=clean_chroot,
|
||||
)
|
||||
assert config.runtime.arch
|
||||
native_chroot = target_chroot if not foreign_arch else setup_build_chroot(
|
||||
arch=config.runtime.arch,
|
||||
extra_packages=['base-devel'] + CROSSDIRECT_PKGS,
|
||||
clean_chroot=clean_chroot,
|
||||
)
|
||||
native_chroot = target_chroot
|
||||
if foreign_arch:
|
||||
logging.info(f"{package.path}: Preparing to build: getting {arch} build chroot")
|
||||
native_chroot = setup_build_chroot(
|
||||
arch=config.runtime.arch,
|
||||
extra_packages=['base-devel'] + CROSSDIRECT_PKGS,
|
||||
clean_chroot=clean_chroot,
|
||||
)
|
||||
cross = foreign_arch and package.mode == 'cross' and enable_crosscompile
|
||||
|
||||
target_chroot.initialize()
|
||||
|
||||
if cross:
|
||||
logging.info(f'Cross-compiling {package.path}')
|
||||
build_root = native_chroot
|
||||
|
|
Loading…
Add table
Reference in a new issue