Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9359 - dep-clean blows up on my box
Summary: dep-clean blows up on my box
Status: RESOLVED DUPLICATE of bug 5239
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-19 19:58 UTC by Albert W. Hopkins
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2002-10-19 19:58:42 UTC
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
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2002-10-26 03:22:25 UTC
seems like a dupe of 5239
Comment 2 Aaron Peterson 2002-10-28 17:53:49 UTC
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
Comment 3 Gert-Jan Rodenburg 2002-11-08 17:05:56 UTC
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.  
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2002-11-09 01:26:02 UTC

*** This bug has been marked as a duplicate of 5239 ***