Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recovering from a broken portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zandor
n00b
n00b


Joined: 19 Apr 2002
Posts: 7

PostPosted: Thu Apr 25, 2002 2:45 pm    Post subject: Recovering from a broken portage Reply with quote

I was a afraid this miight happen someday so I wish I had asked this earlier but is there any documentation somewhere on how to recover broken portage system? Currently I cannot use emerge or ebuild to update any packages. After doing an update (emerge --update world) last night a new pythone2.2 was installed that I'm guessing broke portage. Specifically here is the error.


zandor root # emerge -s arg
Traceback (most recent call last):
File "/usr/bin/emerge", line 6, in ?
import output
File "/usr/lib/python2.2/site-packages/output.py", line 4, in ?
import portage;
File "/usr/lib/python2.2/site-packages/portage.py", line 54, in ?
import fchksum,types
ImportError: No module named fchksum

Any help is appreciated.

-Zandor
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Apr 25, 2002 2:52 pm    Post subject: Reply with quote

Yep, same thing happened to me. I filed a bug report and it ought to be fixed in CVS. But, here's the fix:

http://www.azstarnet.com/~donut/programs/fchksum.html

Download, unpack, run ./configure, run "python setup.py build", and run "python setup.py install" and everything should be good again.
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Apr 25, 2002 3:03 pm    Post subject: Reply with quote

Just noticed this in the changelog. Guess I'll have to be a bit more careful of the worl update. I still love my "gotta have it now bleeding edge" gentoo box though!!

Thanks for the fix, I'll try it now...

-Zandor

# ChangeLog for dev-lang/python
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL

# /space/gentoo/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.6 2002/04/25 02:03:01 jnelson Exp

*python-2.2-r6 (24 Apr 2002)

24 Apr 2002; Jon Nelson <jnelson@gentoo.org> python-2.2-r6.ebuild :

Make python build with shared modules.
Depends on python-fchksum, as fchksum *no longer built in*
Back to top
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 200

PostPosted: Thu Apr 25, 2002 4:43 pm    Post subject: Reply with quote

The circular dependency in something portage relies on and the horrors associated with it have also been brought up in this post:

https://forums.gentoo.org/viewtopic.php?t=941
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum