yoshi314 l33t
Joined: 30 Dec 2004 Posts: 850 Location: PL
|
Posted: Wed May 24, 2006 4:46 pm Post subject: metadata-overlay caching - how to enable it? |
|
|
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 |
|