<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1983</bug_id>
          
          <creation_ts>2012-02-14 02:31:49 +0000</creation_ts>
          <short_desc>zlib does not install its pkg-config file (zlib.pc)</short_desc>
          <delta_ts>2012-06-06 07:49:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.1.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Immanuel">josh</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>josh</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>msm-oss</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18615</commentid>
    <comment_count>0</comment_count>
      <attachid>333</attachid>
    <who name="Joshua Immanuel">josh</who>
    <bug_when>2012-02-14 02:31:49 +0000</bug_when>
    <thetext>Created attachment 333
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18729</commentid>
    <comment_count>1</comment_count>
      <attachid>335</attachid>
    <who name="Joshua Immanuel">josh</who>
    <bug_when>2012-02-23 03:06:46 +0000</bug_when>
    <thetext>Created attachment 335
patch 2, which fixes sharedlibdir issue and missing .pc file issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18730</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Immanuel">josh</who>
    <bug_when>2012-02-23 03:08:57 +0000</bug_when>
    <thetext>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&apos;t cd into @sharedlibdir@ (as the variable is not expanded)

So, I&apos;ve added a new patch which resolves this issue. We can ignore the first patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18733</commentid>
    <comment_count>3</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2012-02-23 20:52:53 +0000</bug_when>
    <thetext>How does one reproduce this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18734</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Immanuel">josh</who>
    <bug_when>2012-02-23 22:11:45 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21221</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-05-08 20:50:43 +0000</bug_when>
    <thetext>I&apos;ve merged this patch in my edison branch and am build testing it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21850</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-06-05 15:39:09 +0000</bug_when>
    <thetext>Fixed in the edison branch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=edison&amp;id=ac63b3f8ef90b018aaea1bf1c9a9a42bd2be39a7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21877</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Immanuel">josh</who>
    <bug_when>2012-06-06 07:49:17 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Fixed in the edison branch:

Thanks.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>333</attachid>
            <date>2012-02-14 02:31:49 +0000</date>
            <delta_ts>2012-02-23 03:06:46 +0000</delta_ts>
            <desc>patch that fixes the issue</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>857</size>
            <attacher name="Joshua Immanuel">josh</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1jb3JlL3psaWIvZmlsZXMvTWFrZWZpbGUuYW0gYi9t
ZXRhL3JlY2lwZXMtY29yZS96bGliL2ZpbGVzL01ha2VmaWxlLmFtCmluZGV4IGI2NmQyOTkuLmRi
MDcyZGYgMTAwNjQ0Ci0tLSBhL21ldGEvcmVjaXBlcy1jb3JlL3psaWIvZmlsZXMvTWFrZWZpbGUu
YW0KKysrIGIvbWV0YS9yZWNpcGVzLWNvcmUvemxpYi9maWxlcy9NYWtlZmlsZS5hbQpAQCAtNywz
ICs3LDYgQEAgbGliel9sYV9TT1VSQ0VTID0gYWRsZXIzMi5jIGNvbXByZXNzLmMgY3JjMzIuYyBn
emxpYi5jIGd6Y2xvc2UuYyBnenJlYWQuYyBcCiBsaWJ6X2xhX0xERkxBR1MgPSAtdmVyc2lvbi1u
dW1iZXIgMToyOjUgLS12ZXJzaW9uLXNjcmlwdCB6bGliLm1hcAogCiBpbmNsdWRlX0hFQURFUlMg
PSB6Y29uZi5oIHpsaWIuaCB6bGliZGVmcy5oCisKK3BrZ2NvbmZpZ2RpciA9ICQobGliZGlyKS9w
a2djb25maWcKK3BrZ2NvbmZpZ19EQVRBID0gemxpYi5wYwpkaWZmIC0tZ2l0IGEvbWV0YS9yZWNp
cGVzLWNvcmUvemxpYi9maWxlcy9jb25maWd1cmUuYWMgYi9tZXRhL3JlY2lwZXMtY29yZS96bGli
L2ZpbGVzL2NvbmZpZ3VyZS5hYwppbmRleCA0NzYxYjdlLi5lMDA2NzhmIDEwMDY0NAotLS0gYS9t
ZXRhL3JlY2lwZXMtY29yZS96bGliL2ZpbGVzL2NvbmZpZ3VyZS5hYworKysgYi9tZXRhL3JlY2lw
ZXMtY29yZS96bGliL2ZpbGVzL2NvbmZpZ3VyZS5hYwpAQCAtNDMsNiArNDMsOSBAQCBjYXQgPiB6
bGliZGVmcy5oIDw8IEVPRgogI2VuZGlmCiBFT0YKIAotQUNfQ09ORklHX0ZJTEVTKFtNYWtlZmls
ZV0pCitBQ19DT05GSUdfRklMRVMoWworTWFrZWZpbGUKK3psaWIucGMKK10pCiAKIEFDX09VVFBV
VAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>335</attachid>
            <date>2012-02-23 03:06:46 +0000</date>
            <delta_ts>2012-02-23 03:06:46 +0000</delta_ts>
            <desc>patch 2, which fixes sharedlibdir issue and missing .pc file issue</desc>
            <filename>zlib.patch</filename>
            <type>text/plain</type>
            <size>892</size>
            <attacher name="Joshua Immanuel">josh</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1jb3JlL3psaWIvZmlsZXMvTWFrZWZpbGUuYW0gYi9t
ZXRhL3JlY2lwZXMtY29yZS96bGliL2ZpbGVzL01ha2VmaWxlLmFtCmluZGV4IGI2NmQyOTkuLmRi
MDcyZGYgMTAwNjQ0Ci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