<?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>1395</bug_id>
          
          <creation_ts>2011-08-23 09:14:20 +0000</creation_ts>
          <short_desc>emenlow build throws error due to duplicate providers of mesa-dri</short_desc>
          <delta_ts>2011-08-28 17:40:50 +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>graphics</component>
          <version>unspecified</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>Patch sent out. Aug 28</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Beth Flanagan">elizabeth.flanagan</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <cc>dvhart</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</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>15660</commentid>
    <comment_count>0</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-08-23 09:14:20 +0000</bug_when>
    <thetext>Seen on the autobuilder during an lsb build. Images seem to be created, however build throws an error during the parse.

http://autobuilder.yoctoproject.org:8010/builders/emenlow/builds/34/steps/shell_17/logs/stdio

ERROR: Multiple .bb files are due to be built which each provide mesa-dri (/builds2/pokybuild/emenlow/build/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb /builds2/pokybuild/emenlow/build/yocto/meta-intel/meta-emenlow/recipes-graphics/xpsb-glx/xpsb-glx_0.18.bb).
 This usually means one provides something the other doesn&apos;t and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libgl (/builds2/pokybuild/emenlow/build/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb /builds2/pokybuild/emenlow/build/yocto/meta-intel/meta-emenlow/recipes-graphics/xpsb-glx/xpsb-glx_0.18.bb).
 This usually means one provides something the other doesn&apos;t and should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15662</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-08-23 09:22:32 +0000</bug_when>
    <thetext>Perhaps adding something like the following to emenlow.conf would address the issue?

PREFERRED_PROVIDER_virtual/libgl = &quot;xpsb-glx&quot;
PREFERRED_PROVIDER_mesa-dri = &quot;xpsb-glx&quot;

However, I think Tom is reworking the emenlow BSP and these bits are going to change anyway.

Tom?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15663</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-08-23 09:23:55 +0000</bug_when>
    <thetext>is this only on lsb builds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15670</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-08-23 13:31:56 +0000</bug_when>
    <thetext>The emenlow.conf machine config does have PREFERRED_PROVIDER entries for virtual/libx11 and virtual/libgl, but despite that, we still see the ERROR messages below.

Also it does appear to be confined to lsb - the autobuilder logs show the other emenlow builds succeeding, and my local tests don&apos;t show these ERROR messages with anything but lsb.

emenlow.conf:
PREFERRED_PROVIDER_virtual/libx11 = &quot;libx11-trim&quot;
PREFERRED_PROVIDER_virtual/libgl = &quot;xpsb-glx&quot;


NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for runtime libglu (mesa-dri, mesa-xlib)
NOTE: consider defining a PREFERRED_PROVIDER entry to match libglu
NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/libx11 (/usr/local/src/yocto/emenlow-psb/meta/recipes-graphics/xorg-lib/libx11_1.3.4.bb /usr/local/src/yocto/emenlow-psb/meta/recipes-graphics/xorg-lib/libx11-trim_1.3.4.bb).
 This usually means one provides something the other doesn&apos;t and should.
ERROR: Multiple .bb files are due to be built which each provide mesa-dri (/usr/local/src/yocto/emenlow-psb/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb /usr/local/src/yocto/emenlow-psb/meta-intel/meta-emenlow/recipes-graphics/xpsb-glx/xpsb-glx_0.18.bb).
 This usually means one provides something the other doesn&apos;t and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libgl (/usr/local/src/yocto/emenlow-psb/meta/recipes-graphics/mesa/mesa-dri_7.10.2.bb /usr/local/src/yocto/emenlow-psb/meta-intel/meta-emenlow/recipes-graphics/xpsb-glx/xpsb-glx_0.18.bb).
 This usually means one provides something the other doesn&apos;t and should.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15674</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-08-23 16:11:48 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; The emenlow.conf machine config does have PREFERRED_PROVIDER entries for
&gt; virtual/libx11 and virtual/libgl, but despite that, we still see the ERROR
&gt; messages below.
&gt; 
&gt; Also it does appear to be confined to lsb - the autobuilder logs show the other
&gt; emenlow builds succeeding, and my local tests don&apos;t show these ERROR messages
&gt; with anything but lsb.
&gt; 
&gt; emenlow.conf:
&gt; PREFERRED_PROVIDER_virtual/libx11 = &quot;libx11-trim&quot;
&gt; PREFERRED_PROVIDER_virtual/libgl = &quot;xpsb-glx&quot;
&gt; 
&gt; 
&gt; NOTE: Resolving any missing task queue dependencies
&gt; NOTE: multiple providers are available for runtime libglu (mesa-dri, mesa-xlib)

Does this just mean that in addition to virtual/libgl we also need virtual/libglu?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15684</commentid>
    <comment_count>5</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-23 18:06:12 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; The emenlow.conf machine config does have PREFERRED_PROVIDER entries for
&gt; &gt; virtual/libx11 and virtual/libgl, but despite that, we still see the ERROR
&gt; &gt; messages below.
&gt; &gt; 
&gt; &gt; Also it does appear to be confined to lsb - the autobuilder logs show the other
&gt; &gt; emenlow builds succeeding, and my local tests don&apos;t show these ERROR messages
&gt; &gt; with anything but lsb.
&gt; &gt; 
&gt; &gt; emenlow.conf:
&gt; &gt; PREFERRED_PROVIDER_virtual/libx11 = &quot;libx11-trim&quot;
&gt; &gt; PREFERRED_PROVIDER_virtual/libgl = &quot;xpsb-glx&quot;
&gt; &gt; 
&gt; &gt; 
&gt; &gt; NOTE: Resolving any missing task queue dependencies
&gt; &gt; NOTE: multiple providers are available for runtime libglu (mesa-dri, mesa-xlib)
&gt; Does this just mean that in addition to virtual/libgl we also need
&gt; virtual/libglu?

yes, it also explains why the error only show up in lsb building, that is becasue only lsb requires libglu (defined in RDEPENDS_task-core-lsb-graphic-add in task-core-lsb.bb).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15685</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-08-23 18:22:29 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; The emenlow.conf machine config does have PREFERRED_PROVIDER entries for
&gt; &gt; &gt; virtual/libx11 and virtual/libgl, but despite that, we still see the ERROR
&gt; &gt; &gt; messages below.
&gt; &gt; &gt; 
&gt; &gt; &gt; Also it does appear to be confined to lsb - the autobuilder logs show the other
&gt; &gt; &gt; emenlow builds succeeding, and my local tests don&apos;t show these ERROR messages
&gt; &gt; &gt; with anything but lsb.
&gt; &gt; &gt; 
&gt; &gt; &gt; emenlow.conf:
&gt; &gt; &gt; PREFERRED_PROVIDER_virtual/libx11 = &quot;libx11-trim&quot;
&gt; &gt; &gt; PREFERRED_PROVIDER_virtual/libgl = &quot;xpsb-glx&quot;
&gt; &gt; &gt; 
&gt; &gt; &gt; 
&gt; &gt; &gt; NOTE: Resolving any missing task queue dependencies
&gt; &gt; &gt; NOTE: multiple providers are available for runtime libglu (mesa-dri, mesa-xlib)
&gt; &gt; Does this just mean that in addition to virtual/libgl we also need
&gt; &gt; virtual/libglu?
&gt; 
&gt; yes, it also explains why the error only show up in lsb building, that is
&gt; becasue only lsb requires libglu (defined in RDEPENDS_task-core-lsb-graphic-add
&gt; in task-core-lsb.bb).

Why doesn&apos;t this happen with the other BSPs, which don&apos;t have virtual/libglu either?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15832</commentid>
    <comment_count>7</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-28 02:15:45 +0000</bug_when>
    <thetext>find the root cause: lsb image rdepends on libglu, which is provided by mesa-dri, not provided by xpsb-glx, so lsb image will build mesa-dri, besides xpsb-glx. Unfortunately,  mesa-dri and xpsb-glx have conflict, because both will provide virtual/libgl. thus the ERROR message showes up.

the error only happens in emenlow, because other arch does not use xpsb-glx, but use mesa-dri, so no conflict here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15833</commentid>
    <comment_count>8</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-28 04:03:40 +0000</bug_when>
    <thetext>To fix it,  xpsb should provide split package libglu, the same as what mesa-dri does</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15834</commentid>
    <comment_count>9</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-28 17:40:50 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=902d2f3c919cd1d870dc8d35a7521cbba42e53ea</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>