Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451084 - x11-drivers/nvidia-drivers: check in pkg_pretend whether driver is compiled against supported kernel version
Summary: x11-drivers/nvidia-drivers: check in pkg_pretend whether driver is compiled a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-09 19:26 UTC by walt
Modified: 2013-02-22 23:05 UTC (History)
5 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 walt 2013-01-09 19:26:55 UTC
nvidia-drivers-304.64 works nicely with kernel 3.6.11, but the kernel module won't compile yet with 3.7.x

Reproducible: Always




No doubt upstream will fix this before long, but meanwhile it would be nice to add a warning/dependency to the ebuild.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2013-01-10 05:05:40 UTC
We have no idea if it will or won't work against a newer kernel before the code is written. We'd spend forever updating einfo messages.

Better suggestion xarthisius?
Comment 2 Ulenrich 2013-02-04 20:49:38 UTC
@walt 
with arch ~amd64 
x11-drivers/nvidia-drivers-313.18
compiles nicely against linux-3.7.6

But you need to make a link to new uapi directory:
ln -s /usr/src/linux/include/generated/uapi/linux/version.h /usr/src/linux/include/linux/version.h
Comment 3 Marco Clocchiatti 2013-02-05 09:01:10 UTC
(In reply to comment #2)
> @walt 
> with arch ~amd64 
> x11-drivers/nvidia-drivers-313.18
> compiles nicely against linux-3.7.6
> 
>
pay attention:

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-313.18
 * NVIDIA-Linux-x86_64-313.18.run SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.6.11-gentoo-p5q
 * ***** WARNING *****
 * 
 * You are currently installing a version of nvidia-drivers that is
 * known not to work with a video card you have installed on your
 * system. If this is intentional, please ignore this. If it is not
 * please perform the following steps:
 * 
 * Add the following mask entry to /etc/portage/package.mask by
 * echo ">=x11-drivers/nvidia-drivers-305.0.0" > /etc/portage/package.mask/nvidia-drivers
 * 
 * Failure to perform the steps above could result in a non-working
 * X setup.
 * 
 * For more information please read:
 * http://www.nvidia.com/object/IO_32667.html

new nvidia-drivers give compatibility problems with some old cards.
so is very important to know if old drivers may work with kernel 37.* or not.
Comment 4 Fred Krogh 2013-02-06 23:33:21 UTC
(In reply to comment #2)
> @walt 
> with arch ~amd64 
> x11-drivers/nvidia-drivers-313.18
> compiles nicely against linux-3.7.6
> 
> But you need to make a link to new uapi directory:
> ln -s /usr/src/linux/include/generated/uapi/linux/version.h
> /usr/src/linux/include/linux/version.h

Thanks Ulenrich -- this worked for me!
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2013-02-22 23:05:30 UTC
There's a message in pkg_pretend now.