dep-clean errors out.. it seems to be passing arguments to the wrong commands the following is the tail of a run of dep-clean on my box: Tell emerge to run the ebuild command in grep: unrecognized option `--debug' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. --debug mode. In this ebuilds and tbz2s *would* have been installed if grep: unrecognized option `--pretend' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. --pretend ebuilds, or deps you specify on on the command-line *will* cause tell emerge to build binary packages for all ebuilds processed ... /usr/bin/dep-clean: /bin/fgrep: Argument list too long
seems like a dupe of 5239
this is also the case on my box, I receive an error like this when i query for needed packages. when i query for unneeded packages, I get similar grep and fgrep errors but it returns a long list of packages that are most certainly needed :( i very much prefer using this command in conjunction with "emerge -C" to using the newly appearing "emerge depclean" because I can omit packages with the first way: emerge -C `dep-clean -UC | grep -v gnome` maybe a silly example but you get the idea. not so many options when we move away from small specialized programs... aaron
I found the offending piece of code in the scipt (hey, probably anyone would have found it more easy than I did, but it might help, maybe?) It's near the line: #Retrieve world packages and dependencies and add to image. In this piece the "`find /usr....." goes to pieces.. cat ${tmp}/world.all | sed -e s:$:xxx: | \ fgrep "`find /usr/portage/ -iname '*.ebuild'|cut -f4,6 -d/ | \ sed -e s:\\.ebuild:xxx:`" | \ sed -e "s:^:\\\=:" -e "s:xxx::" > ${tmp}/world.new Something to do with the double quotes? If I am correct the double quotes cause the shell to exectute the code within the quotes only to give the result to the shell again for execution... A list of stripped (semi) paths and files are not executable, so it blows apart. No cure yet... my shell programming skills are rusty.
*** This bug has been marked as a duplicate of 5239 ***