Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18990 - Portage portage-2.0.47-r10 unmerges nvidia-kernel for old kernel when remerging with different kernel
Summary: Portage portage-2.0.47-r10 unmerges nvidia-kernel for old kernel when remergi...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2003-04-08 13:53 UTC by Ronny Schoebel
Modified: 2011-10-30 22:18 UTC (History)
6 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 Ronny Schoebel 2003-04-08 13:53:07 UTC
When remerging nvidia-kernel (at least 1.0.4349 and 1.0.4349-r1) on kernel 2.5.66 portage unmerges the nvidia module for my 2.4.20 kernel and vice versa. I looked in the ebuild where the slot is explicitly set to the kernel version and compared it to /var/db/pkg/media-video/nvidia-kernel-1.0.4349-r1/SLOT - match. But still portage every time unmerges other modules.

Reproducible: Always
Steps to Reproduce:
1. Start a kernel. emerge nvidia-kernel 2. Start a different kernel. emerge nvidia-kernel 3. The older module gets unmerged.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-08 15:47:08 UTC
Erm, this is a portage issue ????
Comment 2 Ronny Schoebel 2003-04-09 08:34:18 UTC
Why wouldn't it be a portage issue? 
As I understand it, a package that's installed a second time but to a different 
slot should not unmerge the previous instance (which is installed to a 
different slot). Correct me if I'm wrong, but that's why I reported this as a 
portage issue. And: the slot in the nvidia-kernel ebuild _is_ set correctly to 
the currently running kernel version. 
 
Comment 3 Tom Felker 2003-07-23 12:06:59 UTC
Are there any workarounds for this?  It's making kernel testing difficult for me.  Right now I'm trying to test interactivity in 2.6.0-test1 and 2.6.0-test1-mm2, and each time I switch between them, I have to re-emerge, and the other's nvidia drivers are deleted.  Interestingly enough, it leaves my 2.4.20-gentoo drivers alone.  I could probably just copy the files between the two /lib/modules/* trees, but then I would have an even more tainted kernel.

Comment 4 SpanKY gentoo-dev 2003-07-23 16:23:24 UTC
sure, just touch any file you dont want unmerged 
Comment 5 Benjamin Judas (RETIRED) gentoo-dev 2003-10-20 12:31:45 UTC
I copy that - it's annoying especially now that we are all experimenting
with kernels of 2.4 and 2.6-series
Comment 6 Brandon Hale (RETIRED) gentoo-dev 2003-10-20 12:35:10 UTC
nvidia-kernel provides a kernel module, and as such should be slotted to
the kernel
sources it was built against. Could someone please add SLOT="${KV}" to nvidia-kernel
to allow multiple versions for each installed kernel.
Comment 7 Brandon Hale (RETIRED) gentoo-dev 2003-10-20 12:36:55 UTC
nvidia-kernel provides a kernel module, and as such should be slotted to
the kernel
sources it was built against. Could someone please add SLOT="${KV}" to nvidia-kernel
to allow multiple versions for each installed kernel.
Comment 8 Brandon Hale (RETIRED) gentoo-dev 2003-10-20 12:43:18 UTC
Sorry, am working with a user in #gentoo-bugs affected with this. Looking
at the ebuild again it is already properly slotted, but Portage seems to
ignore this.
Comment 9 Andrew Mahone 2003-12-21 06:49:39 UTC
I have another solution for this issue, until portage can handle the SLOT usage for this package correctly, but it's an ugly hack.  If the ebuild touches the module in the pkg_postinst, the module mtime won't match the recorded one, and portage won't unmerge the module.  I've tested and it works here.  Could this be added to the ebuild, possibly with a local USE flag to allow the user to control it, until SLOT becomes a working solution?
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2003-12-21 18:14:31 UTC
We already implemented another hack to "solve" this problem, /lib/modules is 
now partly config-protected (it's unmerge-protected, but files can still be overwritten).
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 17:55:31 UTC
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.
Comment 12 spamspam 2005-01-15 00:17:05 UTC
This bug is not fixed, and may cause a system to become unuseable if the new kernel does not work (ie when upgrading a minor kernel version, but accidentally using a bad filesystem, etc)
Comment 13 Marius Mauch (RETIRED) gentoo-dev 2005-01-15 07:57:08 UTC
Care to explain? Portage won't delete anything from /lib/modules so I don't see how your system could become unusable.