Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220985 - x11-drivers/nvidia-drivers fails to build when kernel build dir is not kernel source dir
Summary: x11-drivers/nvidia-drivers fails to build when kernel build dir is not kernel...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 18:42 UTC by Dirk Heinrichs
Modified: 2008-05-08 19:26 UTC (History)
0 users

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 Dirk Heinrichs 2008-05-08 18:42:25 UTC
When kernel was built with "make O=/some/output/dir", nvidia-drivers fails to detect the correct kernel directories unless explizitely given on the command line, like

KBUILD_OUTPUT=/lib/modules/2.6.25.2/build KERNEL_DIR=/lib/modules/2.6.25.2/source paludis -i nvidia-drivers

The linux-mod.eclass should detect this by itself (by evaluating the symlinks in /lib/modules/<kernel-version>), instead of relying on the /usr/src/linux symlink.

Reproducible: Always

Steps to Reproduce:
1. build kernel with "make O=/some/dir" and install it
2. reboot
3. emerge nvidia-drivers
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2008-05-08 19:26:58 UTC
That assumes that you've installed the kernel you're building against, I don't think we're prepared to make that assumption. Also the level at which we use this (linux-info) does not require a modular kernel at all

The documented way of using another output directory is documented in linux-info.eclass

# KBUILD_OUTPUT	<string>	This is passed on commandline, or can be set from
#				the kernel makefile. This contains the directory
#				which is to be used as the kernel object directory.