| Summary: | zlib does not install its pkg-config file (zlib.pc) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Joshua Immanuel <josh> | ||||||
| Component: | core | Assignee: | Joshua Lock - Disabled <josh> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | Medium | CC: | josh, meta.mr.watcher, meta.watcher, msm-oss | ||||||
| Version: | 1.1.1 | ||||||||
| Target Milestone: | 1.1.2 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Documentation change: | --- | |||||||
| Attachments: |
|
||||||||
Created attachment 335 [details]
patch 2, which fixes sharedlibdir issue and missing .pc file issue
It seems that the zlib package config file uses the @sharedlibdir@ variable. This variable is defined directly in the configure script. But, as we are generating the configure script from autoconf and not using the existing configure script. I have added the variable to configure.ac file. Without this, packages like glib-2.0-native and rpm-native will fail stating that libtool can't cd into @sharedlibdir@ (as the variable is not expanded) So, I've added a new patch which resolves this issue. We can ignore the first patch. How does one reproduce this bug? using any package which checks for zlib in configure script via PKG_CHECK_MODULES will fail to find zlib due to missing pkgconfig file. To confirm this, we can search the tmp/sysroots ($ find tmp/sysroots -name zlib.pc) directory for zlib.pc file and find none. Moreover about sharelibdir issue, I find that, it has already been reported in oe at http://patches.openembedded.org/patch/270 So, the patch 2 covers both the issues. I've merged this patch in my edison branch and am build testing it now. Fixed in the edison branch: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=edison&id=ac63b3f8ef90b018aaea1bf1c9a9a42bd2be39a7 (In reply to comment #6) > Fixed in the edison branch: Thanks. |
Created attachment 333 [details] patch that fixes the issue zlib_1.2.5 in edison branch does not install the zlib.pc file. This results in failure in configure script of packages which searches for zlib package via PKG_CHECK_MODULES I have attached a patch which fixes this issue.