This patch modifies portage.py to use a temporary file per pid when doing cache regeneration. This speeds things up a bit, if several instances of portage are working on the cache at the same time. Index: pym/portage.py =================================================================== RCS file: /var/cvsroot/gentoo-src/portage/pym/portage.py,v retrieving revision 1.524.2.76 diff -u -r1.524.2.76 portage.py --- pym/portage.py 29 May 2005 12:40:08 -0000 1.524.2.76 +++ pym/portage.py 4 Jun 2005 22:17:41 -0000 @@ -5302,9 +5302,9 @@ writemsg("Generating cache entry(0) for: "+str(myebuild)+"\n",1) if self.tmpfs: - mydbkey = self.tmpfs+"/aux_db_key_temp" + mydbkey = self.tmpfs+"/aux_db_key_temp."+str(os.getpid()) else: - mydbkey = self.depcachedir+"/aux_db_key_temp" + mydbkey = self.depcachedir+"/aux_db_key_temp."+str(os.getpid()) # XXX: Part of the gvisible hack/fix to prevent deadlock # XXX: through doebuild. Need to isolate this somehow...