Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 220985

Summary: x11-drivers/nvidia-drivers fails to build when kernel build dir is not kernel source dir
Product: Gentoo Linux Reporter: Dirk Heinrichs <dirk.heinrichs>
Component: EclassesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.