Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10928 - dep-clean does not work with too many packages
Summary: dep-clean does not work with too many packages
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-18 15:54 UTC by Michael Illgner
Modified: 2003-05-03 08:35 UTC (History)
0 users

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


Attachments
patch for dep-clean found in gentoolkit-0.1.17-r4 (dep-clean.patch,615 bytes, patch)
2002-11-24 12:57 UTC, humillo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Illgner 2002-11-18 15:54:25 UTC
The dep-clean tool from the gentoolkit package does not work if 
too many packages are installed. It seems that fgrep give an error
message like "argument list too long".
Comment 1 humillo 2002-11-24 12:57:06 UTC
Created attachment 5915 [details, diff]
patch for dep-clean found in gentoolkit-0.1.17-r4

grep complains of a too long argument list, but we can feed the patterns into
grep through a file instead of through the command line with the -f parameter.

For example, this is one of the conflicting parts:
qpkg -I -nc -vv | \
	 grep ebuild | \
	 fgrep "`cat ${tmp}/world`" | \
	 cut -f5,6 -d"/" > ${tmp}/world.all

This could be changed to:
qpkg -I -nc -vv | \
	 grep ebuild | \
	 fgrep -f ${tmp}/world | \
	 cut -f5,6 -d"/" > ${tmp}/world.all

Theres about 3 fgreps that do the same sort of thing. Changing each one to use
the -f parameter solves the problem.
Comment 2 humillo 2002-11-25 05:56:02 UTC
I've just noticed emerge -p depclean does the same thing and faster!

I guess dep-clean is obsolete now.
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-11-25 16:21:09 UTC
I want it to be :) It'll probably be removed with the next release of Gentoolkit.
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-05-03 08:35:50 UTC
dep-clean is getting deprecated; wishes for the replacement tools (not named yet) will be solicited shortly.