Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12170 - Emerging nvidia-kernel unmerges modules for other kernels
Summary: Emerging nvidia-kernel unmerges modules for other kernels
Status: RESOLVED DUPLICATE of bug 1477
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-14 20:06 UTC by Peter Ruskin
Modified: 2011-10-30 22:21 UTC (History)
2 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 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 ***