Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] I broke my portage / package database :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
seppe
Guru
Guru


Joined: 01 Sep 2003
Posts: 431
Location: Hove, Antwerp, Belgium

PostPosted: Sat Mar 27, 2004 3:20 pm    Post subject: [SOLVED] I broke my portage / package database :( Reply with quote

I wanted to try out porthole, and I did this totally wrong:
Code:

cd /usr/portage/apps-portage/porthole
ebuild porthole-2.0.ebuild merge

Note: meanwhile, I know how to install masked package correctly (described here: http://miliker.homelinux.net/drupal/?q=node/view/6).

Now, I had porthole working, but when I tried to install a package, I got this:
Code:

 iris / # emerge bluefish
Calculating dependencies
!!! Problem in app-editors/bluefish dependencies.
!!! "Specific key requires an operator (app-portage/porthole-0.2) (try adding an '=')"


So, it looked like porthole has broken some stuff, so I wanted to delete it like this:
Code:

nano -w /var/cache/edb/world
# Remove porthole
emerge depclean -p
emerge depclean
rm -f ~/.revdep*
revdep-rebuild -p
revdep-rebuild


But, porthole wasn't in /var/cache/edb/world, so I did this:
Code:

emerge unmerge porthole


Now porthole was unmerged, BUT I still couldn't install packages:
Code:

 iris / # emerge bluefish
Calculating dependencies
!!! Problem in app-editors/bluefish dependencies.
!!! "Specific key requires an operator (app-portage/porthole-0.2) (try adding an '=')"


Searching something doesn't go either:
Code:

iris / # emerge -s bluefish
Searching...  |Traceback (most recent call last):
  File "/usr/bin/emerge", line 2331, in ?
    searchinstance.execute(mysearch)
  File "/usr/bin/emerge", line 545, in execute
    if not portage.portdb.xmatch("match-visible",package):
  File "/usr/lib/portage/pym/portage.py", line 4701, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4687, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 4797, in gvisible
    if db["/"]["porttree"].dbapi.xmatch("bestmatch-list", mykey, None, None, [mycpv]):
  File "/usr/lib/portage/pym/portage.py", line 4694, in xmatch
    myval=best(match_from_list(mydep,mylist))
  File "/usr/lib/portage/pym/portage.py", line 3539, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (app-portage/porthole-0.2) (try adding an '=')"


I told this to people at IRC, and I tried things like
Code:

rm -r /var/cache/edb/dep/*
emerge -pe world

because that would rebuild my package database, but I got this error at emerge -pe world:
Code:

iris / # emerge -pe world
 
These are the packages that I would merge, in order:
 
Calculating world dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2517, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1109, in xcreate
    myeb=portage.portdb.xmatch("bestmatch-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 4690, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4701, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 4687, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 4797, in gvisible
    if db["/"]["porttree"].dbapi.xmatch("bestmatch-list", mykey, None, None, [mycpv]):
  File "/usr/lib/portage/pym/portage.py", line 4694, in xmatch
    myval=best(match_from_list(mydep,mylist))
  File "/usr/lib/portage/pym/portage.py", line 3539, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (app-portage/porthole-0.2) (try adding an '=')"

(you see, porthole really broke my system :()

I also tried the portage rescue tarball as described in /usr/portage/sys-apps/portage/files/README.RESCUE
but that didn't worked either because it's a problem with my package database :(

Can anyone help me? :(
_________________
nitro-sources, because between stable and experimental there exists only speed

Latest release I made: 2.6.13.2-nitro1


Last edited by seppe on Sat Mar 27, 2004 4:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
seppe
Guru
Guru


Joined: 01 Sep 2003
Posts: 431
Location: Hove, Antwerp, Belgium

PostPosted: Sat Mar 27, 2004 4:07 pm    Post subject: Reply with quote

Ok, it's fixed. The problem was this:
Code:

cat /etc/portage/package.keywords
=app-portage/porthole-0.2 ~86

I followed the instructions at https://forums.gentoo.org/viewtopic.php?t=148415&highlight=unmerge+dependencies on emerging masked packages and so I did not had the '=' there (because it wasn't in the example at that topic too)

Thanks at roger55 and jstubbs for helping me.
_________________
nitro-sources, because between stable and experimental there exists only speed

Latest release I made: 2.6.13.2-nitro1
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Fri Aug 06, 2004 2:31 pm    Post subject: Reply with quote

Moved to from Portage & Programming, please see this sticky topic:

https://forums.gentoo.org/viewtopic.php?t=136184
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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