Bug 2309

Summary: [Regression]Glxgears failed in qemux86/x86-64 on Fedora/opensuse/ubuntu
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Hongna Xu <hongnax.xu>
Component: graphicsAssignee: Scott Garman <scott.a.garman>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: High CC: edwin.zhai, jessica.zhang, jiajun.xu, lianhao.lu, meta.mr.watcher, meta.watcher, ningx.ma, richard.purdie, scott.a.garman, sgw
Version: 1.2   
Target Milestone: 1.2   
Hardware: x86   
OS: Multiple   
Whiteboard: (1.2)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 2069    

Description Hongna Xu 2012-04-17 06:39:36 UTC
When i run glxgears using 1.2M4-rc3 build image qemux86/x86-64 sato sdk, i got: "Error:couldn't get an RGB, Double-buffered visual" on host Ubuntu 11.10 x86-64, Opensuse 12.1 x86-64 and Fedora 16 x86.
image location:http://adtrepo.yoctoproject.org/1.2/rootfs/qemux86/core-image-sato-sdk-qemux86.tar.bz2 

Tree/Branch: Poky/1.2_M4 
Commit id: fae1c7a5fdcea199338b5f91efaafd7c72aec5dd

BTW, IN last test circle 1.2M4-rc2, all glxgears issues on opensuse and ubuntu fixed and verified, reference to bug 1886, bug 1927.
Comment 1 Edwin Zhai 2012-04-17 08:11:33 UTC
Seems the lib-qemugl doesn't overrides original one from mesa-dri. Will check and make a patch
Comment 2 Scott Garman 2012-04-17 22:22:30 UTC
This is occurring because the pkg_postinst of the qemugl package is supposed to remove the /usr/lib/libGL.so.1.2 from the libgl1 package installation, and symlink it's own libGL in its place.

However, during the image do_rootfs step, qemugl is getting installed *before* libgl1. This is another problem caused by RPM's package ordering issue (the one that caused us so many headaches with packages that included useradd features).
Comment 3 Scott Garman 2012-04-17 22:52:38 UTC
I'm working on converting the pkg_postinst to run at first boot instead of do_rootfs time, and testing it. I'll take this bug to completion.
Comment 4 Scott Garman 2012-04-17 23:34:31 UTC
Fixed in oe-core and poky master as of:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=abddce33ac3a736d497e54cc1c424cbddac27b8e
Comment 5 Hongna Xu 2012-04-25 06:25:22 UTC
got fixed and verified on poky/denzil:35196ff703726addf7f4051ee09d70bf9ee0c5d0