Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133138 - nvidia-glx broken USE="dlloader" check w/ modular X
Summary: nvidia-glx broken USE="dlloader" check w/ modular X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 139110 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-12 11:10 UTC by Mark Kegel
Modified: 2006-07-06 14:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Kegel 2006-05-12 11:10:26 UTC
The newest ebuild of nvidia-glx.1.0.8756 has a typo that causes Xorg to crash with a message like this:

   module version mismatch between X module and glx module

This is due to a typo that creates the file:

   /usr/lib/xorg/modules/drivers/nvidia_drv.o

The file should actually be named with a .so. Without overwriting the old nvidia driver (8178), Xorg gets confused and crashes. The problem can be easily fixed by renaming the .o file to .so.

I am running Xorg 7.0 on an x86 machine.

Mark Kegel
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-12 11:27:31 UTC
Not a typo, the use flag check is broken. Modular X has dlloader always enabled.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 12:08:55 UTC
It would be kinda nice to *not* keep porting this bug to newer driver versions, like 1.0.8762... :/

if use dlloader || has_version x11-base/xorg-server ; then
        [[ -f ${drvdir}/nvidia_drv.so ]] && \
                doexe ${drvdir}/nvidia_drv.so
else
        [[ -f ${drvdir}/nvidia_drv.o ]] && \
                doexe ${drvdir}/nvidia_drv.o
fi
Comment 3 Kris Kersey (RETIRED) gentoo-dev 2006-05-23 14:53:20 UTC
Is that a suggested fix?  Is that the proper way to handle this?  It hasn't been fixed yet because I wasn't sure.  Thanks.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 15:32:30 UTC
(In reply to comment #3)
> Is that a suggested fix?  Is that the proper way to handle this?  It hasn't
> been fixed yet because I wasn't sure.  Thanks.

Shrug... Yeah, it renders USE=dlloader kinda bogus when this ebuild is used w/ modular X. But since you can't have conditional IUSE in ebuilds, I can't see any other fix for this. (Unless you want to do the IUSE magic in some eclass; x-modular isn't a good one for this, so probably x11.eclass is the only one left. Not worth the hassle, IMO.)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 15:53:59 UTC
Looking at other ebuilds w/ USE=dlloader, almost the same is used for synaptics and linuxwacom.

x11-drivers/synaptics:

if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.99"

x11-misc/linuxwacom:

if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version ">=x11-base/xorg-server-0.1" ; then

So, probably the most complete one would be:

if use dlloader || has_version ">=x11-base/xorg-x11-6.8.99.15" || has_version x11-base/xorg-server ; then
        [[ -f ${drvdir}/nvidia_drv.so ]] && \
                doexe ${drvdir}/nvidia_drv.so
...
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-05-23 16:29:08 UTC
6.8.99.15 is bad because we have 6.9 in the tree. Also xorg-x11 doesn't need to be installed when using modular X. Please test for xorg-server instead.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 16:35:21 UTC
(In reply to comment #6)
> 6.8.99.15 is bad because we have 6.9 in the tree. Also xorg-x11 doesn't need to
> be installed when using modular X. Please test for xorg-server instead.

You might want to fix the other ebuilds then... :) Otherwise yeah, we can just stick to the original solution in Comment #2.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-07-03 23:54:48 UTC
*** Bug 139110 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-07-03 23:55:07 UTC
Ping, this needs to be fixed.
Comment 10 Kris Kersey (RETIRED) gentoo-dev 2006-07-06 14:18:50 UTC
Resolved in new ebuilds: x11-drivers/nvidia-drivers-1.0.8762 and x11-drivers/nvidia-legacy-drivers-1.0.7182

Give them a try. :-)