<?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>5099</bug_id>
          
          <creation_ts>2013-09-03 03:23:39 +0000</creation_ts>
          <short_desc>glib-2.0: host contamination issue</short_desc>
          <delta_ts>2013-09-05 00:31:20 +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.5</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36166</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-03 03:23:39 +0000</bug_when>
    <thetext>We will see the following warning by accident:

$ bitbake nativesdk-glib-2.0

WARNING: QA Issue: nativesdk-glib-2.0-dbg: found library in wrong location: /opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/share/gdb/auto-load/opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/libglib-2.0.so.0.3600.4-gdb.py
nativesdk-glib-2.0-dbg: found library in wrong location: /opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/share/gdb/auto-load/opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/libgobject-2.0.so.0.3600.4-gdb.py

This is because the configure script uses the &quot;readlink -f $libdir/$with_runtime_libdir`&quot; to figure out the abs dir, so if /opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/ exists, there would be warning, or no warning if it doesn&apos;t exist.

We can change the &quot;readlink -f&quot; to readlink -m to fix it for glib-2.0:

sed -i -e &apos;s/^\(ABS_GLIB_RUNTIME_LIBDIR=.*readlink\) -f/\1 -m/&apos; ${S}/configure.ac

, but we still need do more things on insane.bbclass to fix the warning since it&apos;s checking is not suitable for such a case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36169</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-03 06:29:11 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; We will see the following warning by accident:
&gt; 
&gt; $ bitbake nativesdk-glib-2.0
&gt; 
&gt; WARNING: QA Issue: nativesdk-glib-2.0-dbg: found library in wrong location:
&gt; /opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/share/gdb/auto-load/opt/
&gt; poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/libglib-2.0.so.0.3600.4-gdb.
&gt; py
&gt; nativesdk-glib-2.0-dbg: found library in wrong location:
&gt; /opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/share/gdb/auto-load/opt/
&gt; poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/libgobject-2.0.so.0.3600.4-
&gt; gdb.py
&gt; 
&gt; This is because the configure script uses the &quot;readlink -f
&gt; $libdir/$with_runtime_libdir`&quot; to figure out the abs dir, so if
&gt; /opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/ exists, there would
&gt; be warning, or no warning if it doesn&apos;t exist.
&gt; 
&gt; We can change the &quot;readlink -f&quot; to readlink -m to fix it for glib-2.0:
&gt; 
&gt; sed -i -e &apos;s/^\(ABS_GLIB_RUNTIME_LIBDIR=.*readlink\) -f/\1 -m/&apos;
&gt; ${S}/configure.ac
&gt; 
&gt; , but we still need do more things on insane.bbclass to fix the warning
&gt; since it&apos;s checking is not suitable for such a case.

We don&apos;t need do anything in insane.bbclass, so just fix glib-2.0 is OK, will send the patch sooner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36300</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-05 00:31:20 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7d8038dfc61d7767b1b0d727c70963d447c86f0f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>