| Summary: | PKG_CONFIG_PATH not read correctly from SDK environment | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Eclipse Plugin | Reporter: | Dennis Menschel <menschel-d> |
| Component: | eclipse-plugin | Assignee: | Chin Huat Ang <chin.huat.ang> |
| Status: | CLOSED OBSOLETE | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | ioanax.grigoropol, jose.perez.carranza, ross.burton, yp.ep.watcher, yp.watcher |
| Version: | 2.4 | ||
| Target Milestone: | 4.99 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Dennis Menschel
2017-11-12 10:29:30 UTC
meta/classes/toolchain-scripts.bbclass: echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig:$SDKTARGETSYSROOT'"$prefix"'/share/pkgconfig' >> $script This was fixed in oe-core 1bea760f3f462fdcc3eefc0d8597688d61447ddd which is in morty/pyro/rocko. So maybe this is an Eclipse thing after all. Examining the current master of eclipse-poky (126e707a6de212feeaaf093edc170aaa74192ce7) reveals the following:
$ git grep -n PKG_CONFIG_PATH
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java:164: } else if (sKey.matches("PKG_CONFIG_PATH")) {
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java:174: else if (sKey.matches("PKG_CONFIG_PATH"))
$ head -n 171 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java | tail -n 8 ~/projects/foreign/eclipse-poky
} else if (sKey.matches("PKG_CONFIG_PATH")) {
sValue = elem.getStrSysrootLoc();
targetFilePath = elem.getStrSysrootLoc() + "/" + elem.getStrTarget();
targetFile = new File(targetFilePath);
if (targetFile.exists())
sValue = sValue + "/" + elem.getStrTarget();
sValue = sValue + "/usr/lib/pkgconfig";
}
From what I can tell, the actual value of the environment variable PKG_CONFIG_PATH is not read at all, but instead constructed by concatenating <sysroot location>, <target> and the hardcoded string "/usr/lib/pkgconfig". This would also explain why the second path "$SDKTARGETSYSROOT/usr/share/pkgconfig" is entirely missing.
Moving to Chin Huat. Eclipse got dropped from project support. closing |