Summary: | pkg.m4:_PKG_CONFIG doesn't check the return code of "pkg-config --libs|--cflags" | ||
---|---|---|---|
Product: | pkg-config | Reporter: | Diab Jerius <djerius> |
Component: | src | Assignee: | Tollef Fog Heen <tfheen> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | ernstp |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | patch _PKG_CONFIG in pkg.m4 |
Description
Diab Jerius
2010-08-25 08:40:36 UTC
Running into this too with jhbuild for GNOME. jhbuild builds nspr 4.8.4 in private prefix, but does not build nss or nss-utils. Instead, my local system has nss & nss-utils, which both require nspr >= 4.8.6. So when building something inside jhbuild's prefix that wants NSS, the PKG_CHECK_MODULES(NSS, nss >= 3.11) succeeds but NSS_CFLAGS and NSS_LIBS is empty due to the dependency error: [dcbw]$ pkg-config --exists --print-errors "nss >= 3.11" [dcbw]$ echo $? 0 [dcbw]$ pkg-config --cflags --libs nss >= 3.11 Package 'NSS-UTIL' requires 'nspr >= 4.8.6' but version of NSPR is 4.8.4 [dcbw]$ echo $? 1 which makes me believe that the PKG_CHECK_MODULES should fail. I hit this too today, seems like a good thing to fix. This has been fixed in git. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.