Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505392 - app-emulation/emul-linux-x86-opengl[video_cards_nvidia] and/or x11-base/xorg-drivers should pull in nvidia-drivers[multilib]
Summary: app-emulation/emul-linux-x86-opengl[video_cards_nvidia] and/or x11-base/xorg-...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Multilib team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 01:52 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2015-06-02 08:33 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 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-03-23 01:52:53 UTC
Since the multilib flag was now removed from package.use.force, users by default will get 64-bit-only nvidia-drivers on amd64.

So app-emulation/emul-linux-x86-opengl should probably explicitly pull in nvidia-drivers[multilib] when USE=video_cards_nvidia to ensure nvidia users get a fast opengl library instead of mesa.
Comment 1 Pacho Ramos gentoo-dev 2014-03-23 08:07:25 UTC
Wouldn't be better to enable "multilib" USE flag for nvidia-drivers by default on multilib profiles?
Comment 2 Jonathan Callen (RETIRED) gentoo-dev 2014-03-23 18:48:56 UTC
(In reply to Pacho Ramos from comment #1)
> Wouldn't be better to enable "multilib" USE flag for nvidia-drivers by
> default on multilib profiles?

That issue is orthagonal, the dependency should still be set so that the expected files are in place.
Comment 3 Pacho Ramos gentoo-dev 2014-03-23 22:02:41 UTC
But emul-linux-x86-opengl doesn't need nvidia-drivers[multilib] for the libs it does include :/

I think x11-base/xorg-drivers would fit better for this purpose of installing drivers for people easily
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-03-23 22:54:56 UTC
(In reply to Pacho Ramos from comment #3)
> But emul-linux-x86-opengl doesn't need nvidia-drivers[multilib] for the libs
> it does include :/
> 
> I think x11-base/xorg-drivers would fit better for this purpose of
> installing drivers for people easily

Well, there needs to be some package which pulls in nvidia-drivers[multilib] and which is almost certain to be installed by users of 32-bit game binaries or other tools; emul-linux-x86-opengl seemed like a good candidate for the role because 32-bit game binaries already depend on it. But I can also see your point.

CC-ing xorg-drivers and nvidia-drivers maintainers.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-03-23 23:21:46 UTC
Using virtual/opengl or app-emulation/emul-linux-x86-opengl would be ok with me.

x11-base/xorg-drivers does not sound like a good idea, that is only for the DDX parts, not OpenGL.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-03-23 23:52:39 UTC
(In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> Using virtual/opengl or app-emulation/emul-linux-x86-opengl would be ok with
> me.
> 
> x11-base/xorg-drivers does not sound like a good idea, that is only for the
> DDX parts, not OpenGL.

And virtual/opengl is used not just for pulling in the gl library but also for headers, which means mesa or opengl-apple; nvidia-drivers does not install gl headers.
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-03-23 23:58:50 UTC
(In reply to Alexandre Rostovtsev from comment #6)

Although something like the following ugly logic for virtual/opengl should work:

RDEPEND="
	video_cards_nvidia? (
		x11-drivers/nvidia-drivers
		amd64? ( abi_x86_32? ( x11-drivers/nvidia-drivers[multilib] ) )
		media-libs/mesa[${MULTILIB_USEDEP}]
	)
	!video_cards_nvidia? (
		|| (
			media-libs/mesa[${MULTILIB_USEDEP}]
			media-libs/opengl-apple
		)
	)"
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-25 16:47:08 UTC
(In reply to Alexandre Rostovtsev from comment #6)
> (In reply to Chí-Thanh Christopher Nguyễn from comment #5)
> > Using virtual/opengl or app-emulation/emul-linux-x86-opengl would be ok with
> > me.
> > 
> > x11-base/xorg-drivers does not sound like a good idea, that is only for the
> > DDX parts, not OpenGL.
> 
> And virtual/opengl is used not just for pulling in the gl library but also
> for headers, which means mesa or opengl-apple; nvidia-drivers does not
> install gl headers.

Installing the headers wouldn't fix all the toolkits that link against media-libs/mesa, so adding x11-drivers/nvidia-drivers to virtual/opengl's RDEPEND wouldn't help much on its own, even if nvidia-drivers did install the Khronos OpenGL/EGL/GLES* headers.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-06-02 08:33:43 UTC
The emul-linux-x86 packages have been removed.