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
With an empty /usr/portage directory in place it works as expected.
is this still an issue ? also, where you setting up PORTDIR in your make files or were you just symlinking that directory ?
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...
Created attachment 12413 [details, diff] make dep-clean use PORTDIR and remove buggy cut & sed pipe
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 ;)
Created attachment 12416 [details, diff] now it should do fix PORTAGE and cut&sed :)
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.
this tool is deprecated