cross-compile native: Properly install native depends (#1102)

This commit is contained in:
Oliver Smith 2018-01-09 22:18:07 +00:00 committed by GitHub
parent 80107912df
commit fca465dd4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -168,7 +168,7 @@ def init_buildenv(args, apkbuild, arch, strict=False, force=False, cross=None,
environment (e.g. qemu aarch64 bug workaround)
:returns: True when the build is necessary (otherwise False)
"""
# Build dependencies
# Build dependencies (package arch)
depends, built = build_depends(args, apkbuild, arch, strict)
# Check if build is necessary
@ -192,6 +192,12 @@ def init_buildenv(args, apkbuild, arch, strict=False, force=False, cross=None,
suffix=suffix)
pmb.chroot.distccd.start(args, arch)
# "native" cross-compile: build and install dependencies (#1061)
if cross == "native":
depends, built = build_depends(args, apkbuild, args.arch_native, strict)
if not strict and len(depends):
pmb.chroot.apk.install(args, depends)
return True