| Summary: | Meson cross detection is broken | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ross Burton <ross.burton> |
| Component: | devtools / tool chain | Assignee: | Ross Burton <ross.burton> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | meta.mr.watcher, meta.watcher |
| Version: | unspecified | ||
| Target Milestone: | 2.8 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Ross Burton
2019-10-04 00:26:16 UTC
How can I reproduce this? Maybe we can simply apply this patch only for native and nativesdk but not for target? Meanwhile hopefully upstream will sort this out. The reproducer is to try a build on target using Meson: it will detect as cross due to the change in 0001-mesonbuild-environment.py-do-not-determine-whether-a.patch.
Removing the patch will break cross builds if the machines match.
I've a patch which does this:
def is_cross_build(self) -> bool:
- return self.need_exe_wrapper()
+ return bool(self.coredata.cross_files)
Appears to work.
Good news is that over the weekend Jussi merged a fix upstream. Fixed in oe-core 9aa543aa9bd78c63343ae28fc85113ca2c9e0094. |