| Summary: | xmlcatalog: not found from build_native_sysroot | ||
|---|---|---|---|
| Product: | [QA/Testing] Functional (self) Testing | Reporter: | Richard Purdie <richard.purdie> |
| Component: | oe-selftest | Assignee: | Jeremy A. Puhlman <jpuhlman> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | jaewon, randy.macleod |
| Version: | unspecified | ||
| Target Milestone: | 3.2 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Richard Purdie
2020-03-29 11:27:41 UTC
seems to be related to this bug here: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13732 posting my quick analysis in case it helps, Im seeing this error too, specifically when im extracting an esdk only. I worked around it by using full path by sticking a $bindir before the xmlcatalog call, from doing this i realized during the build its not failing because recipe-sysroot-native/usr/bin (of whoever inheriting xmlcatalog) is in the PATH during SYSROOT_PREPROCESS_FUNCS. But during extraction of esdk xmlcatalog not found anywhere in PATH. Id guess what bindir expands to at that step(tmp/sysroots/x86_64/usr/bin) should be in the PATH? xmlcatalog is present there is why the workaround works The specific reason why this fails is that the build-sysroot sysroot is not built-in dependency order, because it doesn't take dependencies into consideration at all so xmlcatalog gets installed near the end due to the English alphabet. Oddly I sent a patch on Friday that didn't land on the list that added an exit 0 to the end of the generated script, but there was also a patch last year to resolve the same issue by just bailing if it doesn't exist: https://lists.openembedded.org/g/openembedded-core/message/126570?p=,,,20,0,0,0::Created,,xmlcatalog%3A+add+exit+0,20,2,0,72380410 This is already resolved in master and dunfell. http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&id=5d53b2117ba860b33fef6aad1000e9c5efb4f2a7 |