<?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>5013</bug_id>
          
          <creation_ts>2013-08-13 19:25:44 +0000</creation_ts>
          <short_desc>dependency on virtual providers doesn&apos;t work when added through PACKAGECONFIG</short_desc>
          <delta_ts>2013-10-15 10:12:13 +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.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <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>35638</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-08-13 19:25:44 +0000</bug_when>
    <thetext>I&apos;ll describe it on qtbase example:

https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qtbase.inc has:
PACKAGECONFIG[gl] = &quot;-opengl -no-eglfs,,virtual/libgl&quot;

when &apos;gl&apos; packageconfig is enabled:
grep ^PACKAGECONFIG= qtbase.env2 | grep gl
PACKAGECONFIG=&quot;release     dbus     udev     evdev     widgets     openssl               xcb xvideo xsync xshape xrender xrandr xfixes xinput2 xinput xinerama xcursor gtkstyle     fontconfig freetype     jpeg libpng zlib     pulseaudio       icu gl&quot;

and correctly shown in DEPENDS:
grep ^DEPENDS= qtbase.env2 | grep gl
DEPENDS=&quot;qtbase-native  virtual/arm-oe-linux-gnueabi-gcc virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc   qtbase-native xcb-util-wm xcb-util-image xcb-util-keysyms libxfixes freetype jpeg pulseaudio gtk+ virtual/libgl fontconfig libpng icu  libxinerama libxrandr udev libxcursor dbus zlib openssl libxrender&quot;

it isn&apos;t included in dependency tree:
bitbake -g qtbase
grep libgl task-depends.dot
grep mesa task-depends.dot

bitbake -DDD qtbase doesn&apos;t reveal why it&apos;s ignored, but also doesn&apos;t show adding dependency for it
DEBUG: providers for qtbase are: [&apos;qtbase&apos;]
DEBUG: sorted providers for qtbase are: [&apos;/home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb&apos;]
DEBUG: adding /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb to satisfy qtbase
DEBUG: Added dependency qtbase-native for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency virtual/arm-oe-linux-gnueabi-gcc for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency virtual/arm-oe-linux-gnueabi-compilerlibs for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency virtual/libc for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency xcb-util-wm for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency xcb-util-image for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency xcb-util-keysyms for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency libxfixes for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency freetype for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency jpeg for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency pulseaudio for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency gtk+ for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency fontconfig for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency libpng for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency icu for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency libxinerama for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency libxrandr for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency udev for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency libxcursor for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency dbus for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency zlib for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency openssl for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb
DEBUG: Added dependency libxrender for /home/jenkins/oe/shr-core-branches/shr-core/meta-qt5/recipes-qt/qt5/qtbase_5.0.2.bb

$ grep virtual/libgl qtbase.env2 
#     [gl] &quot;-opengl -no-eglfs,,virtual/libgl&quot;
#     [gles2] &quot;-opengl es2 -eglfs,,virtual/libgles2 virtual/egl&quot;
# $PREFERRED_PROVIDER_virtual/libgl [3 operations]
PREFERRED_PROVIDER_virtual/libgl=&quot;mesa&quot;
#     &quot; xcb-util-wm xcb-util-image xcb-util-keysyms libxfixes freetype jpeg pulseaudio gtk+ virtual/libgl fontconfig libpng ${ICU} libxinerama libxrandr udev libxcursor dbus zlib openssl libxrender&quot;
#   &quot;${QT5TOOLSDEPENDS} ${BASEDEPENDS}  qtbase-native xcb-util-wm xcb-util-image xcb-util-keysyms libxfixes freetype jpeg pulseaudio gtk+ virtual/libgl fontconfig libpng ${ICU} libxinerama libxrandr udev libxcursor dbus zlib openssl libxrender&quot;
DEPENDS=&quot;qtbase-native  virtual/arm-oe-linux-gnueabi-gcc virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc   qtbase-native xcb-util-wm xcb-util-image xcb-util-keysyms libxfixes freetype jpeg pulseaudio gtk+ virtual/libgl fontconfig libpng icu  libxinerama libxrandr udev libxcursor dbus zlib openssl libxrender&quot;
# $PREFERRED_PROVIDER_virtual/libgles2 [3 operations]
PREFERRED_PROVIDER_virtual/libgles2=&quot;mesa&quot;
# $PREFERRED_PROVIDER_virtual/libgles1 [3 operations]
PREFERRED_PROVIDER_virtual/libgles1=&quot;mesa&quot;

icu dependency is added in similar manner and works fine:
ICU = &quot;icu &quot;
ICU_powerpc = &quot;pango&quot;
PACKAGECONFIG[icu] = &quot;-icu,-no-icu,${ICU}&quot;

Interestingly after adding gl to PACKAGECONFIG in qtbase.inc instead of
PACKAGECONFIG_append_pn-qtbase = &quot; icu gl&quot;
in local.conf it works and mesa is found in task-depends.dot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37114</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-09-24 13:39:43 +0000</bug_when>
    <thetext>I&apos;ve tried to reproduce this with master and can&apos;t. Was this with master or an older branch? There were various fixes in master such as cache issues which may account for this kind of issue...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37116</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-09-24 13:52:28 +0000</bug_when>
    <thetext>The bug is reported against 1.4 yet the dylan branch of meta-qt5 doesn&apos;t have PACKAGECONFIG in qtbase. I&apos;m therefore very confused.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37121</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-09-24 14:12:45 +0000</bug_when>
    <thetext>meta-qt5/master is compatible with dylan release and we were using such combination, I&apos;ll retest in master to be sure and report back.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37632</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-10-04 14:52:32 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; meta-qt5/master is compatible with dylan release and we were using such
&gt; combination, I&apos;ll retest in master to be sure and report back.

Martin, did you have a chance to test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37932</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-10-15 10:12:13 +0000</bug_when>
    <thetext>Resolving as works for me as I couldn&apos;t reproduce. If further details become available please reopen.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>