Bug 1983 - zlib does not install its pkg-config file (zlib.pc)
Summary: zlib does not install its pkg-config file (zlib.pc)
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.1.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1.2
Assignee: Joshua Lock - Disabled
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-02-14 02:31 UTC by Joshua Immanuel
Modified: 2012-06-06 07:49 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
patch that fixes the issue (857 bytes, patch)
2012-02-14 02:31 UTC, Joshua Immanuel
no flags Details | Diff
patch 2, which fixes sharedlibdir issue and missing .pc file issue (892 bytes, patch)
2012-02-23 03:06 UTC, Joshua Immanuel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Immanuel 2012-02-14 02:31:49 UTC
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.
Comment 1 Joshua Immanuel 2012-02-23 03:06:46 UTC
Created attachment 335 [details]
patch 2, which fixes sharedlibdir issue and missing .pc file issue
Comment 2 Joshua Immanuel 2012-02-23 03:08:57 UTC
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.
Comment 3 Matthew McClintock 2012-02-23 20:52:53 UTC
How does one reproduce this bug?
Comment 4 Joshua Immanuel 2012-02-23 22:11:45 UTC
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.
Comment 5 Joshua Lock - Disabled 2012-05-08 20:50:43 UTC
I've merged this patch in my edison branch and am build testing it now.
Comment 6 Joshua Lock - Disabled 2012-06-05 15:39:09 UTC
Fixed in the edison branch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=edison&id=ac63b3f8ef90b018aaea1bf1c9a9a42bd2be39a7
Comment 7 Joshua Immanuel 2012-06-06 07:49:17 UTC
(In reply to comment #6)
> Fixed in the edison branch:

Thanks.