Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 275438

Summary: app-admin/eselect-opengl-1.0.7: update removes /usr/lib/xorg/modules/extensions/libdri.so
Product: Gentoo Linux Reporter: parafin <help>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: normal CC: russell
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to fix removal of dri lib file
ebuild which applies the patch

Description parafin 2009-06-25 21:38:25 UTC
Actually summary says it all. libdri.so is needed fo DRI obviously, without it X log says:
(II) LoadModule: "dri"
(WW) Warning, couldn't open module dri
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (module does not exist, 0)
...skipped...
(EE) intel(0): [dri] I830CheckDRIAvailable failed: dri not loaded

As I understand it, new 1.0.7 version of eselect-opengl assumes that libdri.so resides in /usr/lib/opengl/xorg-x11/extensions/ like libglx.so and /usr/lib/xorg/modules/extensions/libdri.so is a symlink, so it deletes it when called from postinst function of it's own ebuild. In the reality the real library is deleted.
BTW I'm using x11-base/xorg-server-1.4.2

Reproducible: Always

Steps to Reproduce:
1. emerge =app-admin/eselect-opengl-1.0.7
2. restart X

Actual Results:  
DRI is gone

Expected Results:  
DRI should stay
Comment 1 parafin 2009-06-25 21:47:09 UTC
re-emerging xorg-server doesn't help either, because eselect opengl is called there too.
Comment 2 LeonBernieniv 2009-07-02 11:13:37 UTC
In file /usr/share/eselect/modules/opengl.eselect change line 

					for file in lib{wfb,glx,dri}.{a,so,la}; do

to

					for file in lib{wfb,glx}.{a,so,la}; do
Comment 3 LeonBernieniv 2009-07-02 11:15:40 UTC
(In reply to comment #2)
> In file /usr/share/eselect/modules/opengl.eselect change line 
> 
>   for file in lib{wfb,glx,dri}.{a,so,la}; do
> 
> to
> 
>   for file in lib{wfb,glx}.{a,so,la}; do
> 

Comment 4 Russell Knighton 2009-07-13 16:07:22 UTC
Created attachment 197812 [details, diff]
patch to fix removal of dri lib file
Comment 5 Russell Knighton 2009-07-13 16:07:51 UTC
Created attachment 197813 [details]
ebuild which applies the patch
Comment 6 Russell Knighton 2009-07-13 16:09:20 UTC
I agreed that this seems to be an issue - so until it is fixed properly, use attached dri patch and and replacement ebuild.
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-20 09:47:44 UTC
It is fixed in anything above 1.5.3-r7.
Won't backport it specialy when the 1.4 is going to disappear really soon.