[gentoo-user] cdb with portage 2.1 (was: CVSup vs Gentoo's Rsync)

2006-03-17 Thread Alexander Skwar
Hi!

Hemmann, Volker Armin volker.armin.hemmann at tu-clausthal.de writes:

 http://forums.gentoo.org/viewtopic-t-261580.html
 
 is the thread.
 
 But beware, in /usr/portage/modules you need this:
 
 portdbapi.auxdbmodule = cache.cdb.database
 eclass_cache.dbmodule = cache.cdb.database
 
 not that:
 
 portdbapi.auxdbmodule = portage_db_cdb.database
 eclass_cache.dbmodule = portage_db_cdb.database
 
 that is the only change I remember at the moment (and which did not went into 
 the wiki).

I now finally got around to actually TRY what I put in the wiki at 
http://gentoo-wiki.com/TIP_speed_up_portage_with_cdb :)

And I discovered, that this doesn't work for me :(
When I write your lines in /etc/portage/modules and
run emerge --metadata, I get the following error:

[EMAIL PROTECTED] ~ $ time sudo emerge --verbose --metadata


Error: Failed to import module 'cache.cdb.database'

  File /usr/lib/portage/pym/portage.py, line 1290, in load_best_module
mod = load_mod(best_mod)
  File /usr/lib/portage/pym/portage.py, line 149, in load_mod
mod = __import__(modname)
No module named cdb


But when I put the old lines (those with portage_db_cdb.database)
in the modules file, I get:

[EMAIL PROTECTED] ~ $ time sudo emerge --verbose --metadata


Error: Failed to import module 'portage_db_cdb.database'

  File /usr/lib/portage/pym/portage.py, line 1290, in load_best_module
mod = load_mod(best_mod)
  File /usr/lib/portage/pym/portage.py, line 149, in load_mod
mod = __import__(modname)
  File /usr/lib/portage/pym/portage_db_cdb.py, line 17, in ?
import portage_db_template
No module named portage_db_template


Well, for me, it seems that the 2nd version (with
portage_db_cdb.database) seems to be a little bit
more successful, as it actually LOADS the
portage_db_cdb.py file. That's not done with the
version using 'cache.cdb.database' - here it fails
to load a module named cdb.

Is anyone using CDB with Portage 2.1?

Regards,

Alexander Skwar
-- 
Never give in.  Never give in.  Never. Never. Never.
-- Winston Churchill

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] cdb with portage 2.1 (was: CVSup vs Gentoo's Rsync)

2006-03-17 Thread Hemmann, Volker Armin
On Friday 17 March 2006 19:24, Alexander Skwar wrote:


 Is anyone using CDB with Portage 2.1?

with the latest portage incarnations it does not work anymore at all. But 
portage got a lot speedier too, so the problem is not soo big.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] cdb with portage 2.1 (was: CVSup vs Gentoo's Rsync)

2006-03-17 Thread Bo Andresen
On Friday 17 March 2006 19:24, Alexander Skwar wrote:
 Is anyone using CDB with Portage 2.1?

 # grep ewarn /usr/portage/sys-apps/portage/portage-2.1_pre6-r3.ebuild 
ewarn This series contains a completely rewritten caching framework.
ewarn If you are using any cache modules (such as the CDB cache
ewarn module) portage will not work until they have been disabled.

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list