Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10159 - dep-clean does not take into account non-standard portage location
Summary: dep-clean does not take into account non-standard portage location
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2002-11-03 18:53 UTC by Kevin Hayes
Modified: 2004-08-21 13:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

make dep-clean use PORTDIR and remove buggy cut & sed pipe (dep-clean_fix.patch,786 bytes, patch)
2003-05-26 07:19 UTC, Jyrki Muukkonen
Details | Diff
now it should do fix PORTAGE and cut&sed :) (dep-clean_fix2.patch,785 bytes, patch)
2003-05-26 07:39 UTC, Jyrki Muukkonen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.
Total of 2 unneeded packages.

These packages are depended upon but are not present on the system.
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
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 13:43:43 UTC
this tool is deprecated