Skip to content

native cross: Check if build is necessary on target arch

977323cf was broken.

Target arch is the system the package will run on. Host arch is the system the package is compiled on. It is correct to check if the package needs to be built for target arch.

For example kernel packages can be compiled on host arch x86_64 and intended to run on target arch armhf. A build is necessary check against host arch would always return True.

There two contexts to view building dependencies.

  • Build dependencies for host system
    Ensure the system compiling the package has the necessary dependencies in order to compile.
  • Build dependencies for target system
    Ensure the system running the package has the necessary dependencies in order to run.

For init_buildenv I was thinking in terms of building all host system dependencies for the compiling environment. I guess right now pmbootstrap doesn't really handle the context for native cross compiling and ensuring the target run time dependencies are built.

Merge request reports