Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
metadata-overlay caching - how to enable it?
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
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Wed May 24, 2006 4:46 pm    Post subject: metadata-overlay caching - how to enable it? Reply with quote

i heard about it recently ,some people said it works for them so i decided to try it out.

i used cdb caching with portage 2.1_pre[something] all the time before.

so i started modyfying my configs:

first i added "-metadata-transfer" to FEATURES in make.conf
then i modified /etc/portage/modules like that
Code:
portdbapi.auxdbmodule = cache.metadata_overlay.database

#portdbapi.auxdbmodule = cache.cdb.database
#eclass_cache.dbmodule = cache.cdb.database


and after an emerge --sync i got:
Code:
sent 4683 bytes  received 3657282 bytes  31165.66 bytes/sec
total size is 134328364  speedup is 36.68
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3030, in ?
    mybestpv=portage.portdb.xmatch("bestmatch-visible","sys-apps/portage")
  File "/usr/lib/portage/pym/portage.py", line 5203, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep=mydep,mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 5214, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep=mydep,mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 5200, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 5299, in gvisible
    keys, eapi = self.aux_get(mycpv, ["KEYWORDS", "EAPI"])
  File "/usr/lib/portage/pym/portage.py", line 4925, in aux_get
    try:                                del self.auxdb[mylocation][mycpv]
  File "/usr/lib/portage/pym/cache/template.py", line 81, in __delitem__
    self._delitem(cpv)
  File "/usr/lib/portage/pym/cache/metadata_overlay.py", line 51, in _delitem
    value = self[cpv] # validates whiteout and/or raises a KeyError when necessary
  File "/usr/lib/portage/pym/cache/metadata_overlay.py", line 28, in __getitem__
    if self._is_whiteout(value):
  File "/usr/lib/portage/pym/cache/metadata_overlay.py", line 76, in _is_whiteout
    return value["EAPI"] == "whiteout"
  File "/usr/lib/portage/pym/cache/mappings.py", line 32, in __getitem__
    return self.orig[key]
  File "/usr/lib/portage/pym/cache/mappings.py", line 77, in __getitem__
    self.d.update(self.pull())
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 29, in callit
    return args[0](*args[1:]+args2)
  File "/usr/lib/portage/pym/cache/flat_hash.py", line 47, in _pull
    raise cache_errors.CacheCorruption(cpv, e)
cache.cache_errors.CacheCorruption: sys-apps/portage-2.0.54-r1 is corrupt: dictionary update sequence element #2 has length 1; 2 is required


what's wrong?
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
synss
Apprentice
Apprentice


Joined: 08 Mar 2006
Posts: 282
Location: Dijon > Berlin > Tokyo > Nürnberg > München

PostPosted: Tue May 30, 2006 12:21 am    Post subject: Reply with quote

your title ain't too good, and you've got it enabled it seems... ;) (portage 2.1 is ~x86 after all, we know the risks)

https://forums.gentoo.org/viewtopic-p-3346640.html#3346640
_________________
Compress portage tree
Elog viewer
Autodetect swap
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue May 30, 2006 12:34 am    Post subject: Reply with quote

Moved to dups
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
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