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

Bug 12170

Summary: Emerging nvidia-kernel unmerges modules for other kernels
Product: Portage Development Reporter: Peter Ruskin <aoyu93>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED DUPLICATE    
Severity: major CC: azarah, lostlogic
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Ruskin 2002-12-14 20:06:12 UTC
At the moment I have 2 kernels (called linux-2.4.20-win4lin+preempt and
linux-2.4.20-win4lin-r1-pnr) - I want to use both regularly, but:

Each time I boot the other one I have to
   emerge nvidia-kernel nvidia-glx alsa-driver lm_sensors
...which unmerges modules of nvidia-kernel nvidia-glx alsa-driver lm_sensors for
the previous kernel
...and reboot.

I've tried setting AUTOCLEAN="no" but that doesn't prevent this happening.  I've
added the following to /etc/conf.d/local.start - I even added it to the end of
/etc/init.d/checkroot but neither helps:

ebegin "Ensuring that /usr/src/linux is linked to running kernel..."
if [ "$( /usr/bin/file /usr/src/linux | grep 'symbolic link')" != "" ] ; then
	/bin/rm -f /usr/src/linux
	/bin/ln -sf /usr/src/linux-$(/bin/uname -r) /usr/src/linux
fi
eend $? "Failed to link /usr/src/linux-$(/bin/uname -r) to /usr/src/linux"

The nvidia-kernel ebuild contains the following (which obviously is not working):

# The slot needs to be set to $KV to prevent unmerges of
# modules for other kernels.
LICENSE="NVIDIA"
SLOT="${KV}"
Comment 1 Peter Ruskin 2002-12-15 07:00:17 UTC
Workaround after building kernel:

for package in {nvidia-kernel,alsa-driver,lm_sensors} ; do
	echo "Removing installation records for $package from /var/db/pkg/"
	rm -Rf /var/db/pkg/$(epm -qaG|grep $package)
	echo "Emerging $package"
	emerge $package
done
Comment 2 SpanKY gentoo-dev 2002-12-15 08:32:36 UTC

*** This bug has been marked as a duplicate of 1477 ***