[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cross-building with python3-numpy



On 1/16/23 19:41, Dima Kogan wrote:
Another more complex, but related question. The mrcal needs
python3-numpy in two ways:

- For building the package. python3-numpy:build is needed here
- For the tests. python3-numpy:host is needed there

How does one express that? Simply doing this should be enough, right?

   Build-Depends:
    python3-numpy:native

Here running tests while cross-building will very clearly not work, but
it's not expected to work anyway, right?

indeed.
running cross-built (host-)binaries on the build-machine is expected to not work. you need an emulator to run e.g. s390x binaries on an armel machine, but if you are using an emulator you are not cross-building (in the strict sense).

therefore (as can be seen in [1]), cross-building involves specifying the "nocheck" build-option to skip running the test suite (and packages that do not honour this build-flag will most likely fail to cross-build)

gmadsr
IOhannes


[1] <https://wiki.debian.org/CrossCompiling#Building_with_dpkg-buildpackage>


Reply to: