Created attachment 659436 [details] nvidia-drivers-340.108-r2.ebuild I modified the x11-drivers/nvidia-drivers-340.108-r1 ebuild to ditch eselect-{opengl,opencl} and instead do internally the very minimal configuration required. There are only 2 caveats: 1) I added a phony USE=libglvnd. Its only purpose is to fool the strong blocker in x11-base/xorg-server. The correct solution would be to restrict that blocker to the nvidia-drivers versions using libglvnd. 2) The Xorg configuration probably depends on "xorg-server-1.18-support-multiple-Files-sections.patch" for x11-base/xorg-server, which I don't know if it will be dropped after eselect-opengl is removed. If that's the case, I can replace the newins with elog messages providing instructions (although I'd rather avoid that). If there is anything you want me to test feel free to ask me since I have the hardware.
*** This bug has been marked as a duplicate of bug 728290 ***
Quoting Matt Turner on 728290#c7 : > Keeping a binary driver in the distribution isn't the issue. > It's that it requires keeping a lot of *other* infrastructure in > the distribution (eselect-opengl and eselect-opencl specifically) > and those are full of bugs. As I've already said it doesn't necessarily require them and I've submitted an ebuild to solve this issue. However so far I've simply been ignored and this driver has been removed without providing a valid reason. So until someone bothers to give a proper explanation this bug is not solved for me and sure as hell it is not a duplicate of 728290.
Thanks for the thorough explanation, as usual it's a fucking pleasure contributing to Gentoo.
Your patch works for me. I don't care about glvnd because I only have one card and one driver, and I just want it work. Thanks!
Works for me as well, you saved me a lot of troubles. Thanks a lot! Luckily our community is better than devs...
Created attachment 665672 [details] nvidia-drivers-340.108-r3 ebuild bundle Full nvidia-drivers-340.108-r3 ebuild bundle. In the hope will be useful for someone else.
Thanks, Shiba. You just extended the life of your old 3D-stereo graphics workstations. We still have a couple of these around to build our protein models into electron density maps and the Nvidia Quadro FX 4600 graphics card is still perfect for that purpose. Best regards, Markus
Created attachment 669290 [details] Updated package to build with kernel 5.9.1 I updated the package and included the patches from https://github.com/warpme/minimyth2/tree/master/script/nvidia/nvidia-340.108/files Now the driver builds against kernel 5.9.1 - however, I did not test it yet.
Thanks works great for me. I understand the desire to support libglvnd which seems to be a wrapper around opengl to abstract the actual driver but I think there should be some provision to support legacy hardware as long as X supports that version of opengl.
Created attachment 678649 [details] Updated package to build with kernel 5.10.1 New ebuild package to build against Kernel 5.10.1. Included new patch from https://github.com/warpme/minimyth2/tree/master/script/nvidia/nvidia-340.108/files
(In reply to Florian Dittmer from comment #10) > Created attachment 678649 [details] > Updated package to build with kernel 5.10.1 > > New ebuild package to build against Kernel 5.10.1. Included new patch from > https://github.com/warpme/minimyth2/tree/master/script/nvidia/nvidia-340.108/ > files Thank you all for the ebuilds! Is there a place (overlay) where this ebuild is maintained and discussed? I don't know if it's appropriate to discuss it here. Could be the fix from https://bugs.gentoo.org/752018 also included? (I need this on my system) Trying to rebuild world shows a possibly broken dependency: WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: x11-libs/gdk-pixbuf:2 (x11-libs/gdk-pixbuf-2.42.2:2/2::gentoo, ebuild scheduled for merge) USE="introspection jpeg tiff -gtk-doc" ABI_X86="32 (64) (-x32)" conflicts with x11-libs/gdk-pixbuf[X] required by (x11-drivers/nvidia-drivers-340.108-r5:0/340::extra, ebuild scheduled for merge) USE="X driver (libglvnd) multilib tools -static-libs" ABI_X86="32 (64) (-x32)"
Created attachment 691335 [details] Updated ebuild to build with kernel 5.11.x - Changed x11-libs/gdk-pixbuf[X] dependency to x11-libs/gdk-pixbuf - Included latest patch to build with kernel 5.11.x from https://github.com/warpme/minimyth2/tree/master/script/nvidia/nvidia-340.108/files - however i was not able to test yet if this is actually working - I am sorry I cannot provide more support than this. I am just trying to keep teh driver alive/compiling with minimal efforts in order to keep my 10yr old laptop useable. I am compiling/updating the system in a chroot on my powerful main desktop and occasionally transfer the whole build to the laptop. so I can confirm it's compiling, but not if it is actually working on the hardware until I copy over the build the next time...