Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557272 - x11-drivers/nvidia-drivers-340.76 cannot build against all kernels after ~gentoo-sources-3.17.8-r1
Summary: x11-drivers/nvidia-drivers-340.76 cannot build against all kernels after ~gen...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 04:50 UTC by spacexplosion
Modified: 2015-08-18 03:15 UTC (History)
2 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 spacexplosion 2015-08-11 04:50:06 UTC
At some point a long while ago there was a change in the kernel that required a change in the nvidia-driver for each update to the kernel. For a long time I would just wait to update the kernel until there was an update to nvidia-drivers. Now higher versions of nvidia-drivers no longer support my hardware, and the 340.76 build is not being patched to keep up with new kernels.

I've been thinking that it might lag behind the newest kernel, and I keep forgetting about it, but now there is a major version change to the kernel. Please advise.

Reproducible: Always

Steps to Reproduce:
1. Emerge any modern kernel, configure and compile
2. Re-emerge nvidia-drivers
3.
Actual Results:  
Build fails with an error message that kernel version >3.17.8 is not supported.
Comment 1 Marcel Pennewiß 2015-08-15 10:10:44 UTC
For gentoo-sources-4.0.5 the patch found in
https://forums.gentoo.org/viewtopic-p-7754020.html
applied fine.

Maybe this patch can be shipped and used for kernel 4.x. The current package also works with gentoo-sources-3.18.12 without further patches.

Message for package says, that gentoo will not support kernels which are not natively supported by NVIDIA. If the maintainer will retain this, this bugreport won't be resolved :(
Comment 2 Alex Xu (Hello71) 2015-08-16 14:18:04 UTC
we should probably split the versions into SLOTs 304xx, 340xx, 0, so people could put "nvidia-drivers:SLOT" in their world.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-08-17 04:59:22 UTC
(In reply to Alex Xu (Hello71) from comment #2)
> we should probably split the versions into SLOTs 304xx, 340xx, 0, so people
> could put "nvidia-drivers:SLOT" in their world.

So you don't know what SLOTs are for?

Anyway, if you want an nvidia-drivers branch for newer kernels, then nag upstream.
Comment 4 Alex Xu (Hello71) 2015-08-17 12:35:46 UTC
(In reply to Jeroen Roovers from comment #3)
> (In reply to Alex Xu (Hello71) from comment #2)
> > we should probably split the versions into SLOTs 304xx, 340xx, 0, so people
> > could put "nvidia-drivers:SLOT" in their world.
> 
> So you don't know what SLOTs are for?
> 
> Anyway, if you want an nvidia-drivers branch for newer kernels, then nag
> upstream.

I *know* what SLOTs do. I also know that upstream splits their releases into separate streams that support *different hardware*. https://www.nvidia.com/object/IO_32667.html

Therefore, users of old hardware must manually mask new versions. I believe they should instead be able to put :SLOT in their world, given that <spec is not valid in the world file.
Comment 5 spacexplosion 2015-08-18 03:15:30 UTC
(In reply to Marcel Pennewiß from comment #1)
Thanks. The patch worked. 

I've used user patches before, and this is a good temporary solution. It just seems like it isn't a long term solution for legacy support. The linux community doesn't normally give up on old hardware, sentencing it to never again be updated. Perhaps an overlay or a non-default USE flag would be an appropriate compromise between officially backporting every version and no support?