<?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>8529</bug_id>
          
          <creation_ts>2015-10-16 12:25:24 +0000</creation_ts>
          <short_desc>Gtk+3 applications still fail to start without libGL.s0.1</short_desc>
          <delta_ts>2015-11-17 13:11: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>graphics</component>
          <version>unspecified</version>
          <rep_platform>x86</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>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen">jku</reporter>
          <assigned_to name="Jussi Kukkonen">jku</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>55392</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-10-16 12:25:24 +0000</bug_when>
    <thetext>Gdk initialization calls epoxy GLX api, which promptly exit()s if libGL.so.1 is not present. This is a serious problem since it affects all GTK+3 applications, even if they do not use OpenGL.


Workaround is to set &quot;GDK_GL=disabled&quot; environment variable. Proper fix would include either 
  A) epoxy failing gracefully
  B) epoxy or GTK having an additional function that checks for existence of specific GL (in this case GLX, libGL.so.1).

Looks like the fix for 2.0 timeframe will include at least a #ifdef in the Gdk init code (so a dependency on opengl distro feature).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55824</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-10-27 13:22:55 +0000</bug_when>
    <thetext>commit 48443ccd93d0406ebfe627b98ac9283f6767c1dd
Author: Jussi Kukkonen &lt;jussi.kukkonen@intel.com&gt;
Date:   Wed Oct 21 16:25:31 2015 +0300

    gtk+3: Do not try to initialize GL without libgl
    
    Gdk initialization ends up calling epoxy GLX api, which calls exit()
    if libGL.so.1 is not present. In practice this prevents all GTK+
    applications from starting if GLX is not present.
    
    If opengl and x11 distro features are set, make gtk+3 RDEPEND on libgl.
    If opengl and x11 distro features are not set, use #ifdef to prevent
    the GL initialization.
    
    Remove libgl dependency from gtk3-demo: it can now run without
    libgl (although trying to run the glarea demo will exit in that case).
    
    [YOCTO #8529]
    
    (From OE-Core rev: f9540f50ea661e260ec2b82436238cfb989e23c5)
    
    Signed-off-by: Jussi Kukkonen &lt;jussi.kukkonen@intel.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56525</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-11-17 12:59:54 +0000</bug_when>
    <thetext>Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1
Using 
    DISTRO_FEATURES_append = &quot; wayland&quot;
    DISTRO_FEATURES_remove = &quot;x11&quot;
    IMAGE_INSTALL_append = &quot; gtk+3-demo mesa-megadriver&quot;
a QEMUx86 image and this patch for passing over bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=8551
http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/master&amp;id=24cd75fac25b96208b22babe19a0e27314ccbe15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56526</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-11-17 13:11:17 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Verified on master: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1

Thanks a bunch: that was a bit tricky to verify, I&apos;ll try to provide better instructions in future.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>