<?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>3642</bug_id>
          
          <creation_ts>2012-12-26 05:38:47 +0000</creation_ts>
          <short_desc>gtk-demo fails to run for gtk-directfb image</short_desc>
          <delta_ts>2013-02-28 12:21:51 +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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>c13e458b22ca1b870332540e0edbc1975c342c79</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Constantin Musca">constantinx.musca</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>28449</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-12-26 05:38:47 +0000</bug_when>
    <thetext>Tree/Branch: Poky/master
git commit: 90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a

Steps:
1. Download poky source and prepare the build environment 
2. Set MACHINE to qemuarm in conf/local.conf
3. Add the following line in conf/local.conf:
    DISTRO_FEATURES = &quot;alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g gtk-directfb ${DISTRO_FEATURES_LIBC}&quot; 
4. Run &quot;bitbake core-image-gtk-directfb&quot; to build a gtk-directfb image 
5. Boot up the gtk-directfb image and run &quot;gtk-demo&quot; command.

The image can boot up. But when I run &quot;gtk-demo&quot; command it only launch a blank screen and no widgets on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28772</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-01-11 15:33:00 +0000</bug_when>
    <thetext>Do other DirectFB apps work (not GTK+ ones?)  How about other GTK+ apps?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28799</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-01-14 09:22:00 +0000</bug_when>
    <thetext>With the latest master branch: 53cc748b93e8af584557d6db5309c3e955182c5c , the gtk-directfb image can&apos;t build. 

Steps:
#########
1. Add DISTRO_FEATURES = &quot;alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g gtk-directfb ${DISTRO_FEATURES_LIBC}&quot; to conf/local.conf
2. Run bitbake core-image-gtk-directfb
#########

I got the following errors:
############
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES &apos;directfb-native&apos; (but virtual:native:/buildarea1/yzhao1/poky/meta/recipes-graphics/cairo/cairo_1.12.8.bb DEPENDS on or otherwise requires it)
NOTE: Runtime target &apos;gtk+&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;gtk+&apos;, &apos;pango&apos;, &apos;pango-native&apos;, &apos;cairo-native&apos;, &apos;directfb-native&apos;]
NOTE: Runtime target &apos;packagegroup-core-gtk-directfb&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;packagegroup-core-gtk-directfb&apos;, &apos;gtk+&apos;, &apos;pango&apos;, &apos;pango-native&apos;, &apos;cairo-native&apos;, &apos;directfb-native&apos;]
ERROR: Required build target &apos;core-image-gtk-directfb&apos; has no buildable providers.
Missing or unbuildable dependency chain was: [&apos;core-image-gtk-directfb&apos;, &apos;packagegroup-core-gtk-directfb&apos;, &apos;gtk+&apos;, &apos;pango&apos;, &apos;pango-native&apos;, &apos;cairo-native&apos;, &apos;directfb-native&apos;]
#############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28942</commentid>
    <comment_count>3</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-01-18 14:34:42 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; With the latest master branch: 53cc748b93e8af584557d6db5309c3e955182c5c ,
&gt; the gtk-directfb image can&apos;t build. 
&gt; 
&gt; Steps:
&gt; #########
&gt; 1. Add DISTRO_FEATURES = &quot;alsa argp bluetooth ext2 irda largefile pcmcia
&gt; usbgadget usbhost wifi xattr nfs zeroconf pci 3g gtk-directfb
&gt; ${DISTRO_FEATURES_LIBC}&quot; to conf/local.conf
&gt; 2. Run bitbake core-image-gtk-directfb
&gt; #########
&gt; 
&gt; I got the following errors:
&gt; ############
&gt; NOTE: Resolving any missing task queue dependencies
&gt; ERROR: Nothing PROVIDES &apos;directfb-native&apos; (but
&gt; virtual:native:/buildarea1/yzhao1/poky/meta/recipes-graphics/cairo/cairo_1.
&gt; 12.8.bb DEPENDS on or otherwise requires it)
&gt; NOTE: Runtime target &apos;gtk+&apos; is unbuildable, removing...
&gt; Missing or unbuildable dependency chain was: [&apos;gtk+&apos;, &apos;pango&apos;,
&gt; &apos;pango-native&apos;, &apos;cairo-native&apos;, &apos;directfb-native&apos;]
&gt; NOTE: Runtime target &apos;packagegroup-core-gtk-directfb&apos; is unbuildable,
&gt; removing...
&gt; Missing or unbuildable dependency chain was:
&gt; [&apos;packagegroup-core-gtk-directfb&apos;, &apos;gtk+&apos;, &apos;pango&apos;, &apos;pango-native&apos;,
&gt; &apos;cairo-native&apos;, &apos;directfb-native&apos;]
&gt; ERROR: Required build target &apos;core-image-gtk-directfb&apos; has no buildable
&gt; providers.
&gt; Missing or unbuildable dependency chain was: [&apos;core-image-gtk-directfb&apos;,
&gt; &apos;packagegroup-core-gtk-directfb&apos;, &apos;gtk+&apos;, &apos;pango&apos;, &apos;pango-native&apos;,
&gt; &apos;cairo-native&apos;, &apos;directfb-native&apos;]
&gt; #############

This issue has been fixed. (commit 26bddbd41b774395a9af73fb659b8e8792e9c3ad)

Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28944</commentid>
    <comment_count>4</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-01-18 14:57:46 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Tree/Branch: Poky/master
&gt; git commit: 90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a
&gt; 
&gt; Steps:
&gt; 1. Download poky source and prepare the build environment 
&gt; 2. Set MACHINE to qemuarm in conf/local.conf
&gt; 3. Add the following line in conf/local.conf:
&gt;     DISTRO_FEATURES = &quot;alsa argp bluetooth ext2 irda largefile pcmcia
&gt; usbgadget usbhost wifi xattr nfs zeroconf pci 3g gtk-directfb
&gt; ${DISTRO_FEATURES_LIBC}&quot; 
&gt; 4. Run &quot;bitbake core-image-gtk-directfb&quot; to build a gtk-directfb image 
&gt; 5. Boot up the gtk-directfb image and run &quot;gtk-demo&quot; command.
&gt; 
&gt; The image can boot up. But when I run &quot;gtk-demo&quot; command it only launch a
&gt; blank screen and no widgets on it.

It seems that directfb is not supported by gtk versions &gt;= 2.18. The guys from mozzila for example noticed this and decided to remove directfb: 
&quot;DirectFB is no longer supported by GTK 3 and apparently even in 2 the backend hasn&apos;t worked since 2.18.  It&apos;s probably time we stripped the DirectFB code, but at least here don&apos;t make any effort to maintain support.&quot; ( https://bugzilla.mozilla.org/show_bug.cgi?id=627699 ).

Also, the people from the gtk mailling list confirm this:
- https://mail.gnome.org/archives/gtk-devel-list/2011-August/msg00037.html


Because of this we are dropping gtk-directfb.

Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28946</commentid>
    <comment_count>5</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-01-18 15:11:14 +0000</bug_when>
    <thetext>Patches sent to the mailing list for removing gtk-directfb and creating a simple directfb packagegroup/image.

Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29088</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-01-23 15:35:51 +0000</bug_when>
    <thetext>Please also add an example similar to &quot;gtk-demo&quot; to replace it so we can test the new feature. 

See https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=288 for more details about why we need that and how we used &quot;gtk-demo&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29326</commentid>
    <comment_count>7</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-01-30 07:42:25 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Please also add an example similar to &quot;gtk-demo&quot; to replace it so we can
&gt; test the new feature. 
&gt; 
&gt; See https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=288 for more
&gt; details about why we need that and how we used &quot;gtk-demo&quot;.

Patches merged. (commit c13e458b22ca1b870332540e0edbc1975c342c79)

# Test case

Action:
1. Download poky source and prepare the build environment
2. Set MACHINE to qemuarm in conf/local.conf
3. Remove &quot;x11&quot; from DISTRO_FEATURES in meta/conf/distro/include/default-distrovars.inc, use &quot;directfb&quot; instead of it:
    DISTRO_FEATURES ?= &quot;alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g directfb ${DISTRO_FEATURES_LIBC}&quot;
4. Run &quot;bitbake core-image-directfb&quot; to build a directfb image
5. Boot up the directfb image and run &quot;df_fire&quot; command.

Expected Results:
The directfb image can be built out and the &quot;df_fire&quot; command can run without problems.


Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29333</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-01-30 09:19:08 +0000</bug_when>
    <thetext>New test cases added as described: https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=563 .

Test case was introduced in the full pass pre-release and full pass post-release cycles and will be verified on the first occasion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29688</commentid>
    <comment_count>9</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-08 16:41:30 +0000</bug_when>
    <thetext>Tested in master:8d6e55bf2192524bda84138b5356a2791adbbe61

Command df_fire results in a hang(black screen) in a qemu environment:

1. Download poky source and prepare the build environment
2. Set MACHINE to qemuarm in conf/local.conf
3. Remove &quot;x11&quot; from DISTRO_FEATURES in meta/conf/distro/include/default-distrovars.inc, use &quot;directfb&quot; instead of it:
    DISTRO_FEATURES ?= &quot;alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g directfb ${DISTRO_FEATURES_LIBC}&quot;
4. Run &quot;bitbake core-image-directfb&quot; to build a directfb image
5. Boot up the directfb image &quot;runqemu qemuarm core-image-directfb&quot; and run &quot;df_fire&quot; command.

Notice the image hangs with a black screen. The application can not be closed thus I can not attach any output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29703</commentid>
    <comment_count>10</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-02-11 09:25:40 +0000</bug_when>
    <thetext>mesa support for directfb has been disabled (commit fb2de94105934b65bf2b9af942e69c7ffe87d26e). That&apos;s why the test case is not valid anymore. We need to find another directfb demo app.

Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30237</commentid>
    <comment_count>11</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-28 12:21:51 +0000</bug_when>
    <thetext>Verified in master:7d22ef28e64de06b6238d0ef9b664c0bee6efa46

core-image-directfb builds and boots successfully. 

Added a new bug for the demo app in order to test directfb inside the image: Bug 3958</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>