Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47108 - Portage broken after "emerge sync"
Summary: Portage broken after "emerge sync"
Status: RESOLVED DUPLICATE of bug 47063
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 08:30 UTC by Peter Simons
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Peter Simons 2004-04-07 08:30:50 UTC
I have just run an "emerge sync", but after re-building the cache, emerge aborted with an error. Now, emerge fails with this error all the time, I cannot run it anymore! Does anyone know how to fix this?

research:/home/simons# emerge sync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6128, in ?
    settings.regenerate() # XXX: Regenerate use after we get a vartree -- GLOBAL
  File "/usr/lib/portage/pym/portage.py", line 1392, in regenerate
    self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 1121, in autouse
    myresult=dep_check(mydep,myvartree.dbapi,None,use="no",use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3309, in dep_check
    mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
  File "/usr/lib/portage/pym/portage.py", line 3052, in dep_zapdeps
    myresult=dep_zapdeps(unreduced[x],reduced[x])
  File "/usr/lib/portage/pym/portage.py", line 3038, in dep_zapdeps
    elif myportapi.match(x):
AttributeError: 'NoneType' object has no attribute 'match'


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




emerge info doesn't work either. :-(
Comment 1 Peter Simons 2004-04-07 08:32:00 UTC
In case it helps, here is my /etc/make.conf file:

USE="-X -doc -nls -spell -slang -tcpd -gdbm mbox -motif -gnome -gtk -gtk2 thre
ads"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=pentium2 -O3 -fomit-frame-pointer -funroll-loops -fPIC -fstack-p
rotector"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-pie"
PORTDIR_OVERLAY=/usr/local/portage
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ww
w.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
MAKEOPTS="-j1"
PORTAGE_NICENESS=15
FEATURES="sandbox userpriv notitles"
RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes
Comment 2 Georg Müller 2004-04-07 08:48:09 UTC
here a quickfix:

goto line 3038 of /usr/lib/portage/pym/portage.py:
and change to this:

elif myportapi and myportapi.match(x):
Comment 3 Peter Simons 2004-04-07 09:00:39 UTC
That did the trick. Thanks!
Comment 4 petre rodan (RETIRED) gentoo-dev 2004-04-07 09:21:08 UTC
see http://bugs.gentoo.org/show_bug.cgi?id=47063
Comment 5 Rainer Größlinger (RETIRED) gentoo-dev 2004-04-07 13:48:45 UTC

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