FS#17716 - Add warning to nvidia{-173xx,96xx}.install files for custom kernel users

Attached to Project: Arch Linux
Opened by Ng Oon-Ee (ngoonee) - Wednesday, 06 January 2010, 00:33 GMT
Last edited by Pierre Schmitz (Pierre) - Wednesday, 06 January 2010, 06:30 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Currently, the nvidia (and nvidia-173xx/nvidia-96xx) packages contain the nvidia-binaries for the current kernel in [core], this is reflected in its list of dependencies.

Some users (see http://bbs.archlinux.org/viewtopic.php?pid=683199) do not realize that custom kernels require a self-compiled nvidia driver (to place .ko in the correct place). In addition, running the nvidia installer (which uses uname -r to identify the running kernel) seems to work, hence the problem is assumed to be with Arch's package.

Suggestion:
In the post_install() section of nvidia.install (or similar files for the other nvidia driver packages), add a warning which looks something like this draft:-

--------
This nvidia binary is meant for use with the stock ARCH kernel. We detect that you are currently running a custom kernel. Please compile this PKGBUILD using ABS instead of installing the binary package from the repos.
--------

This warning should only be shown if `uname -r` returns a value other than <kernel_version>-ARCH, one possible check would be:-

--------
if [ $(uname -r | awk '{ print substr( $0, length($0)-4, length($0) ) }') -eq "-ARCH" ]
--------



Possible Improvements:
Is there a way to check the contents of the just-installed package in post_install()? If so, we can further check whether the just-installed package installs to /lib/modules/$(uname -r) and disable the warning in that specific case.
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Wednesday, 06 January 2010, 06:30 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Arch is not ment for people who don't know/care what they are doing.
Comment by Allan McRae (Allan) - Wednesday, 06 January 2010, 01:10 GMT
I disagree. People who do not know that you need to rebuild modules for a custom kernel should not be playing with custom kernels...
Comment by Andrea Scarpino (BaSh) - Wednesday, 06 January 2010, 01:12 GMT
my point is the same of Allan
Comment by Ng Oon-Ee (ngoonee) - Wednesday, 06 January 2010, 01:42 GMT
I tend to agree with you both. I raise this here simply from seeing this complaint raised one too many times, what with the ease of installing custom kernels in Arch.

Loading...