Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24430 - i cant emerge everything
Summary: i cant emerge everything
Status: RESOLVED DUPLICATE of bug 24469
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-13 17:54 UTC by SpanKY
Modified: 2011-10-30 22:22 UTC (History)
1 user (show)

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


Attachments
Destroy your disk space and "emerge all" (emergeall.sh,100 bytes, text/plain)
2003-07-26 19:16 UTC, Lisa Seelye (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-07-13 17:54:32 UTC
root@rux0r 0 root # emerge \* -p 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies   
Traceback (most recent call last): 
  File "/usr/bin/emerge", line 1914, in ? 
    retval,favorites=mydepgraph.select_files(myfiles) 
  File "/usr/bin/emerge", line 682, in select_files 
    mykey=portage.dep_expand(x,portage.portdb) 
  File "/usr/lib/python2.2/site-packages/portage.py", line 2543, in dep_expand 
    if mydep[-1]=="*": 
IndexError: string index out of range
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-07-13 21:13:02 UTC
lol.
Comment 2 Lisa Seelye (RETIRED) gentoo-dev 2003-07-26 19:16:52 UTC
Created attachment 15063 [details]
Destroy your disk space and "emerge all"
Comment 3 Lisa Seelye (RETIRED) gentoo-dev 2003-07-26 19:17:28 UTC
Try that, smartypants :-P
Comment 4 Zhen Lin 2003-07-27 02:20:49 UTC
#!/bin/bash
cd /usr/portage
for j in *-*
do
	cd $j
	for i in *
	do
		emerge "${j}/${i}"
	done
done

One-byte fix.
Comment 5 SpanKY gentoo-dev 2003-07-27 11:24:01 UTC
actually, it would still not work ... 
you cd ${j} but then dont cd out of it ... 
you need 'cd -' after the inner for-loop :p 
Comment 6 Zhen Lin 2003-07-27 20:30:04 UTC
#!/bin/bash
cd /usr/portage
PACKAGES=""
for i in *-*/*
do
	# PACKAGES="${PACKAGES} ${i}"
	emerge $i
done
# emerge $PACKAGES

WARNING: This may emerge some packages twice!


Comment 7 Lisa Seelye (RETIRED) gentoo-dev 2003-10-26 14:58:50 UTC
#!/bin/bash

cd /usr/portage
for j in *-*
do
        cd $j
        for i in */*.ebuild
        do
                emerge $i
        done
        cd ..
done

Run that. ;-)
Comment 8 Lisa Seelye (RETIRED) gentoo-dev 2003-11-12 12:26:01 UTC
#!/bin/bash

cd /usr/portage
for j in *-*
do
        cd $j
        for i in */*.ebuild
        do
                emerge $i
        done
        cd ..
done


try that :)  Change the emerge line to "ebuild $i fetch" to grab sources.  Handy for building a _complete_ mirror.
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2003-12-28 22:48:27 UTC

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