Symptoms: emerge: there are no masked or unmasked ebuilds to satisfy ">=x11-libs/gtk+-2.3". !!! Problem with ebuild x11-themes/metacity-themes-1.0 !!! Possibly a DEPEND/*DEPEND problem. !!! Depgraph creation failed. Context: emerge -Du world with PORTDIR_OVERLAY="/srv/gentoo/overlays/capella.catmur.co.uk/ /srv/gentoo/overlays/cvs.breakmygentoo.net/gnome-current/ " AND WITH ebuilds of same package but different versions in both. e.g. I have x11-libs/gtk+-2.2.4-r1 in capella.catmur.co.uk and this prevents Portage seeing x11-libs/gtk+-2.3.2-rl in cvs.breakmygentoo.net Cause: >>> /usr/lib/portage.pym @@ 4652 portdbapi.cp_list(self,mycp,use_cache=1): for oroot in self.overlays: for x in listdir(oroot+"/"+mycp,EmptyOnError=1,ignorecvs=1): if x[-7:]==".ebuild": mycp=mysplit[0]+"/"+x[:-7] if not mycp in returnme: returnme.append(mycp) the assignment to mycp is invalid as it needs to be used for the next overlay under consideration. Fix is obvious; patch is on its way.
Created attachment 25507 [details, diff] In innermost loop replace `mycp' with `ocp' Here goes. Incidentally, would it be possible to have read-only access to the Portage cvs tree? Things would be easier if I could do a cvs diff rather than having to copy files to `foo.orig' or diffing against an `ebuild foo unpack'. OTOH if you don't want randoms like me eating your bandwidth that's OK too ;)
Created attachment 25508 [details, diff] Alternative patch: use `[self.root]+self.overlays' to fold portage-tree and overlay cases together Code cleanup in cpv_exists, cp_all, p_list, cp_list e.g. def p_list(self,mycp): returnme=[] ignorecvs=0 for root in [self.root]+self.overlays: for x in listdir(root+"/"+mycp,EmptyOnError=1,ignorecvs=ignorecvs): if x[-7:]==".ebuild": mye=x[:-7] if not mye in returnme: returnme.append(mye) ignorecvs=1 return returnme I think this is cleaner, anyway :)
This should work fine... I run with overlays w/ similar cp's and differing versions, and have for quite some time...
Yeah, it was fixed on the tree back in March of last year: http://www.gentoo.org/cgi-bin/viewcvs.cgi/portage/pym/portage.py?root=gentoo-src#rev1.401 Sorry for not closing this bug myself.