Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2757 - emerge clean doesn't remove patched packages
Summary: emerge clean doesn't remove patched packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: Low normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-15 13:05 UTC by V R
Modified: 2011-10-30 22:18 UTC (History)
0 users

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 V R 2002-05-15 13:05:04 UTC
If the package has patches with it then 'emerge clean' chokes on patched files 
and leave them. 
Most obvious example is linux sources.
May be it's not a bug but a request for improvement - add --force option to 
override !mtime .
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-05-27 15:58:34 UTC
This is actually not because they are patched.  It is not removing all of your
.o files since they are new.
Comment 2 V R 2002-05-29 09:35:29 UTC
If 'emerge clean' leaves .o files then it's definitely a bug - 
it should run 'make clean' before removing files. For linux sources it would be 
better to run 'make mrproper' of course.
But there are still plenty of .h files which I think were result of applying 
patches. 
Upon further pondering through ebuild command and .ebuild files I found that 
there is no any kind of pkg_clean{} or src_remove{} function. This should 
probably go to request for improvements - portage has to perform all basic 
package manipulation functions : add, list/query , replace/update ,remove.
I can do most of it with different level of difficulty (from user prospective) -
add or update package is easy (one command), get version or show dependencies 
is a bit trickier (2 commands), remove package - very cumbersome.
Just force creators of ebuilds to include pkg_remove{} function and have a 
fallback default function. 
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2002-10-22 23:00:48 UTC
pkg_prerm()