<?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>6798</bug_id>
          
          <creation_ts>2014-10-04 18:39:22 +0000</creation_ts>
          <short_desc>shlibs failing to add dependencies for some .so files</short_desc>
          <delta_ts>2015-04-28 14:19:32 +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.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.7 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>ionutx.chisanovici</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>otavio</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46098</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-10-04 18:39:22 +0000</bug_when>
    <thetext>I am seeing a change in dependency list for libegl-gallium in master w.r.t 1.6 and see
that on master libllvm3.3-llvm-3.3 has gone missing but the .so is
there in DT_NEEDED section of egl_gallium.so.


i586-rdk-linux/mesa/2_10.1.3-r0/packages-split/libegl-gallium/usr/lib/egl$
readelf -d egl_gallium.so


Dynamic section at offset 0x699394 contains 38 entries:

  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libEGL.so.1]
 0x00000001 (NEEDED)                     Shared library: [libgbm.so.1]
 0x00000001 (NEEDED)                     Shared library: [libudev.so.1]
 0x00000001 (NEEDED)                     Shared library: [librt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libglapi.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdrm_nouveau.so.2]
 0x00000001 (NEEDED)                     Shared library: [libdrm_radeon.so.1]
 0x00000001 (NEEDED)                     Shared library: [libdrm.so.2]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libLLVM-3.3.so]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x0000000e (SONAME)                     Library soname: [egl_gallium.so]



 The special thing about libllvm3.3-llvm-3.3 is that
it has libraries which end with .so and is a symlink
the one in /usr/lib is a symlink to real .so with is in /usr/lib/llvm3.3

PV = 3.3
PR = r0
RPROVIDES =
RDEPENDS = glibc (&gt;= 2.20) libgcc (&gt;= 4.9.1) libstdc++ (&gt;= 4.9.1)
llvm3.3 zlib (&gt;= 1.2.8)
RRECOMMENDS =
PKGSIZE = 18250362
FILES = /usr/lib/libLLVM-3.3.so /usr/lib/llvm3.3/.debug/libLLVM-3.3.so
/usr/lib/llvm3.3/libLLVM-3.3.so
FILELIST = /usr/lib/libLLVM-3.3.so /usr/lib/llvm3.3/libLLVM-3.3.so


Daisy

&quot;libegl-gallium&quot; -&gt; &quot;libc6&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libdrm-nouveau2&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libdrm-radeon1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libdrm2&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libegl-mesa&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libgbm1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libgcc1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libglapi0&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libllvm3.3-llvm-3.3&quot;; &lt;================
&quot;libegl-gallium&quot; -&gt; &quot;libstdc++6&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libudev1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libz1&quot;;


master


&quot;libegl-gallium&quot; -&gt; &quot;libc6&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libdrm-nouveau2&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libdrm-radeon1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libdrm2&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libegl-mesa&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libgbm1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libgcc1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libglapi0&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libstdc++6&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libudev1&quot;;
&quot;libegl-gallium&quot; -&gt; &quot;libz1&quot;;


To reproduce it you need to add meta-oe to layermix and then

MACHINE=qemux86 bitbake mesa

Let me know if more info it needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46205</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-10-09 00:49:04 +0000</bug_when>
    <thetext>What I see is this

DEBUG: calculating shlib provides for libllvm3.3-llvm-3.3
DEBUG: registering libllvm3.3-llvm-3.3-3.3 as shlib provider for libLLVM-3.3.so
DEBUG: LIBNAMES: pkg libllvm3.3-llvm-3.3 sonames [(&apos;libLLVM-3.3.so&apos;, &apos;/usr/lib/llvm3.3&apos;, &apos;3.3&apos;)]

Actually there is a symlink to libLLVM-3.3.so in /usr/lib which points to libLLVM-3.3.so in /usr/lib/llvm3.3

Both .so file as well as symlink is packaged into libllvm3.3-llvm-3.3

and when I look at package logs of mesa it says

NOTE: Couldn&apos;t find shared library provider for libLLVM-3.3.so, used by files: /home/ubuntu/work/dizzy/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_10.1.3-r0/packages-split/libegl-gallium/usr/lib/egl/egl_gallium.so

is it because its looking for libLLVM-3.3.so in /lib and /usr/lib only ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46206</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-10-09 00:52:11 +0000</bug_when>
    <thetext>its happening after

commit 48b9ecd5335f63fb2bcc47c4b23d067122734fe9
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Mon Jul 7 18:40:55 2014 +0100

    package.bbclass: Rewrite shlib_provider handling to include RPATH
    
    Change the do_package shlibs code to account for RPATHS. This means that
    for library dependency purposes, only libraries in system paths or in
    any declared RPATH will be seen. This is important to resolve problems
    people have been having where similarly named libraries in &quot;private&quot;
    paths were conflicting, e.g. with gstreamer.
    
    For now this code assumes the default search path is libdir and
    base_libdir and places ASSUME_SHLIBS in libdir so they are searched by
    default.
    
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46214</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-10-09 05:41:02 +0000</bug_when>
    <thetext>A potential fix is posted for review

http://lists.openembedded.org/pipermail/openembedded-core/2014-October/097802.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46329</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-10-14 21:06:47 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b2f1250f6d04fedb0c76b4deb1d4bc4bca9e2815</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46341</commentid>
    <comment_count>5</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-10-15 11:59:29 +0000</bug_when>
    <thetext>Hi guys,

I tried to verify this issue but couldn&apos;t find anything in the ~/work/poky/build/tmp/work/i586-poky-linux/mesa/2_10.1.3-r0/packages-split/libegl-gallium folder

~/work/poky/build/tmp/work/i586-poky-linux/mesa/2_10.1.3-r0/packages-split/libegl-gallium$ ll
drwxr-xr-x  2 ionut ionut 4096 Oct 15 13:15 .
drwxr-xr-x 33 ionut ionut 4096 Oct 15 13:15 ..

There is no usr/lib/ folder.

The build I made had:
MACHINE ?= &quot;qemux86&quot;
meta-openembedded/meta-oe layer in bblayer.conf
Latest masters for both poky and meta-oe.

bitbake mesa

Should I test this in another way ?

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46443</commentid>
    <comment_count>6</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-10-20 14:39:25 +0000</bug_when>
    <thetext>Reopened as I need more infos on how to test this.

Thanks,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46444</commentid>
    <comment_count>7</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-10-20 14:40:10 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46453</commentid>
    <comment_count>8</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-10-20 15:42:31 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Hi guys,
&gt; 
&gt; I tried to verify this issue but couldn&apos;t find anything in the
&gt; ~/work/poky/build/tmp/work/i586-poky-linux/mesa/2_10.1.3-r0/packages-split/
&gt; libegl-gallium folder
&gt; 
&gt; ~/work/poky/build/tmp/work/i586-poky-linux/mesa/2_10.1.3-r0/packages-split/
&gt; libegl-gallium$ ll
&gt; drwxr-xr-x  2 ionut ionut 4096 Oct 15 13:15 .
&gt; drwxr-xr-x 33 ionut ionut 4096 Oct 15 13:15 ..
&gt; 
&gt; There is no usr/lib/ folder.
&gt; 
&gt; The build I made had:
&gt; MACHINE ?= &quot;qemux86&quot;
&gt; meta-openembedded/meta-oe layer in bblayer.conf
&gt; Latest masters for both poky and meta-oe.
&gt; 
&gt; bitbake mesa
&gt; 
&gt; Should I test this in another way ?

In the description its pretty clear I guess what the problem is and how it can be verified.

Please check the build history before and after this fix and especially for libegl-gallium you will see libllvm3.3-llvm-3.3 will appear in dependencies after the patch where as it will be missing before the patch.


&gt; 
&gt; Cheers,
&gt; Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46460</commentid>
    <comment_count>9</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-10-20 22:52:26 +0000</bug_when>
    <thetext>Bug is resolved</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50556</commentid>
    <comment_count>10</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-04-28 14:19:32 +0000</bug_when>
    <thetext>Verified on master: ae736dbdd140975ba43f06e635b461dbf36a117e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>