Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9701 - emerge clean should not clean kernel sources of currently used version
Summary: emerge clean should not clean kernel sources of currently used version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-26 06:19 UTC by pasi.valminen
Modified: 2003-01-28 00:30 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 pasi.valminen 2002-10-26 06:19:34 UTC
I did emerge -u world. It included new kernel sources as well. Now I didn't want
to update my kernel just yet since I felt no need to do so. Anyway I decided to
do emerge clean and I soon found out that just wiped clean all the previous
kernel sources apart from the one just got emerged (the new one which is not in
use). Yes, it wiped clean also the kernel sources of the currently used kernel
and they are kind of useful. If you got an easy way around this, I would
appreciate it as would some people in #gentoo it seems.
Comment 1 Inge A. Suhr 2002-10-27 14:11:59 UTC
Well, I did "emerge -u -p world", it listed flex, so I went ahead and did an "emerge -u world" and then 
fetched a cup of coffee. When I returned to the PC (just a matter of seconds), it was cleaning away to 
its hearts content, kernel source, ncurses, it rendered bash unusable, so there I am. A BIG FAT 
WARNING is appropriate.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-10-27 16:38:39 UTC
Comment #1 about 'emerge -u word' is fixed in portage-2.0.43
Just 'ldconfig', and upgrade to portage-2.0.43

What use is keeping the old source tree?
The headers are a different package. What is the issue?

Portage is not going to make special exceptions for things
like this. You _can_ leave the kernel sources out of your
world file if you do not wish for it to be upgraded in a '-u world.'
Comment 3 Brandon Low (RETIRED) gentoo-dev 2002-10-27 19:14:38 UTC
Actually I'll take this one and deal with it, I have to discuss with the other
kernel people and the maintainers of lm_sensors and other kernel module ebuild,
but chances are what I need is more information about slotting (for instance can
a package be installed with multiple different SLOTs but 1 version?)

What probably needs to be done is that all packages that have the potential to
install kernel modules will need to be explicitely separated such that they have
one package in portage which installs NOTHING but the kernel modules and 1
package that installs everything else.  For em8300-modules (which I maintain)
this is already done because it is easy, for some other packages it is much more
difficult.  Additionally, to prevent the unmerging of kernel source trees by
portage, we will probably be making all kernel sources 'SLOT="${KV}"', the only
problem with this is the eventual clutter of the /usr/src dir, and of the
/var/db/pkg/sys-kernel subdir...