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

Bug 10159

Summary: dep-clean does not take into account non-standard portage location
Product: Portage Development Reporter: Kevin Hayes <kjhaze>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED WONTFIX    
Severity: normal CC: jyrki, karltk, radek
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: make dep-clean use PORTDIR and remove buggy cut & sed pipe
now it should do fix PORTAGE and cut&sed :)

Description Kevin Hayes 2002-11-03 18:53:45 UTC
dep-clean -v gives...

# dep-clean -v 
Retrieving currently merged packages.
 185 currently merged packages.

Retrieving system packages.
 87 packages contained in system.

Preparing world file.
 43 packages contained in world.

Listing world and total dependencies.
find: /usr/portage/: No such file or directory
 184 packages contained in final image.

These packages have no other packages depending on them.
dev-java/blackdown-jre-1.3.1-r7
net-print/cups-1.1.16
Total of 2 unneeded packages.

These packages are depended upon but are not present on the system.
sys-apps/iptables-1.2.7a
Total of 1 needed packages.

These packages are installed but not in the portage tree.
find: /usr/portage/: No such file or directory
Total of 0 removed packages.

I have portage mounted on another partition.
Tried a symlink but it gives other errors as per bug 9359
Comment 1 Kevin Hayes 2002-11-07 16:00:27 UTC
With an empty /usr/portage directory in place it
works as expected.
Comment 2 SpanKY gentoo-dev 2003-02-25 15:12:13 UTC
is this still an issue ? 
also, where you setting up PORTDIR in your make files or were you just symlinking 
that directory ? 
Comment 3 Jyrki Muukkonen 2003-05-26 07:16:33 UTC
Dep-clean's way to search ebuilds is a total failure. It doesn't use PORTDIR setting from make.conf at all. It does use PORTDIR_OVERLAY, but still uses cut -f4,6 -d/ on the results, so it just gives the wrong elements in many cases. I included a patch which fixes this. It makes use of PORTDIR setting, so it doesn't matter anymore if your portage tree isn't in /usr/portage. Also replaces the somewhat ugly cut & sed pipe with a single xargs command.

Actually dep-clean still throws some mud on may face, it says my world file has unresolved dependencies...
Comment 4 Jyrki Muukkonen 2003-05-26 07:19:56 UTC
Created attachment 12413 [details, diff]
make dep-clean use PORTDIR and remove buggy cut & sed pipe
Comment 5 Jyrki Muukkonen 2003-05-26 07:28:35 UTC
hmm.. or maybe this is wrong. is it supposed to get the last two elements, like category/appname? maybe so.. so ignore the patch (atleast the xargs part of it ;)
Comment 6 Jyrki Muukkonen 2003-05-26 07:39:05 UTC
Created attachment 12416 [details, diff]
now it should do fix PORTAGE and cut&sed :)
Comment 7 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-10-11 03:04:53 UTC
This'll be fixed with the Gentoolkit rewrite. Moving dep-clean over to Python
and want to interface it with Portage directly so that it reports the packages
correctly.
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 13:43:43 UTC
this tool is deprecated