Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274959 - x11-base/xorg-server: libdri.so not moved to /usr/lib/opengl/xorg-x11/extensions causes it to go /dev/null
Summary: x11-base/xorg-server: libdri.so not moved to /usr/lib/opengl/xorg-x11/extensi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 258322 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-21 16:53 UTC by Fabio Erculiani (RETIRED)
Modified: 2009-10-02 19:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xorg-server-1.5.3-r6.ebuild patch (xorg-server.patch,619 bytes, patch)
2009-06-21 16:55 UTC, Fabio Erculiani (RETIRED)
Details | Diff
eselect-opengl-1.0.6 (opengl eselect module) patch (eselect-opengl-1.0.6-fix-libdri-stale-symlink.patch,721 bytes, patch)
2009-06-22 13:28 UTC, Fabio Erculiani (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani (RETIRED) gentoo-dev 2009-06-21 16:53:52 UTC
When xorg-x11 and other OpenGL implementations (tested with ati) are installed, switching from one to another will cause libdri.so to be removed and replaced by a symlink.
This is caused by an error in the ebuild. Since ati-drivers provides its own libdri.so, moving libglx.so to /usr/lib/opengl/xorg-x11/extensions is not enough.

Please have a look at the patched ebuild attached (tested with 1.5.3-r6), everything seems to work fine.

Let me know if you need further information, glad to help out ;)

Reproducible: Always

Steps to Reproduce:
1. install xorg-server, ati-drivers
2. eselect opengl set xorg-x11
3. eselect opengl set ati
4. eselect opengl set xorg-x11
5. ls -la /usr/lib/xorg/modules/extensions/* will show a broken symlink.
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2009-06-21 16:55:44 UTC
Created attachment 195364 [details, diff]
xorg-server-1.5.3-r6.ebuild patch
Comment 2 Fabio Erculiani (RETIRED) gentoo-dev 2009-06-22 13:18:16 UTC
Actually, this breaks nvidia opengl support when 'Load "dri"' is in xorg.conf. I'm producing a fix for this issue too.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-22 13:27:20 UTC
This bug is dupe of other bug with nvidia/ati drivers.
Make us happy we will probably solve this if you give us file list for:
qlist files ati-drivers
qlist files nvidia-drivers
qlist files xorg-server
Comment 4 Fabio Erculiani (RETIRED) gentoo-dev 2009-06-22 13:28:30 UTC
Created attachment 195443 [details, diff]
eselect-opengl-1.0.6 (opengl eselect module) patch

This patch fixes the issue with stale libdri.so left in /usr/lib/xorg/modules/extensions/ by issuing:

1. eselect opengl set xorg-x11
2. eselect opengl set nvidia
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-23 14:26:55 UTC
1.0.7 version added to the main tree. Xorg server patched :]
Tested on ati-drivers xf86-video-ati and nvidia drivers.
Comment 6 Fabio Erculiani (RETIRED) gentoo-dev 2009-06-23 17:18:32 UTC
w00t, congrats!

Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-07-20 15:13:05 UTC
*** Bug 258322 has been marked as a duplicate of this bug. ***
Comment 8 Zorzo Luca 2009-10-02 19:38:47 UTC
Today i emerged the new stable amd64 xorg-server version 1.6.3.901-r2, and in Xorg.0.log i found this:

(II) "dri" will be loaded by default.
(II) "dri2" will be loaded by default.
...
(II) LoadModule: "dri"
(WW) Warning, couldn't open module dri
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (module does not exist, 0)
(II) LoadModule: "dri2"
(WW) Warning, couldn't open module dri2
(II) UnloadModule: "dri2"
(EE) Failed to load module "dri2" (module does not exist, 0)

I've a nvidia video card: dri is useless but xorg complains about missings libraries because dri is loaded by default.
There isn't any voice in my xorg.conf telling xorg to load dri.
In my opinion when xorg is built in a system with nvidia drivers it should not autoload dri or we can switch back and make links of libdri and libdri2 from /usr/lib/opengl/xorg-x11/extensions/ to /usr/lib/xorg/modules/extensions/.