See attach Reproducible: Always Steps to Reproduce: 1. emerge -C \<sys-devel/gcc-4 2. echo "<sys-devel/gcc-4" >> /etc/portage/package.mask 3. emerge -u gcc Actual Results: Portage crash with many errors Expected Results: I don't know.. But actually not this.
Created attachment 141034 [details] log.txt Full console output
Created attachment 141036 [details] emerge --info
I can't reproduce this. Also, your steps to reproduce are different than your attached output.
I've fully removed portage tree and extracted the latest snapshot. Also i've re-emerged portage. But the same thing happened: --------- notebook ~ # emerge -pv "<sys-devel/gcc-4" These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NS ] sys-devel/gcc-3.4.6-r2 USE="fortran gtk nls (-altivec) -bootstrap -boundschecking -build -d -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 27,700 kB Total: 1 package (1 in new slot), Size of downloads: 27,700 kB notebook ~ # echo "<sys-devel/gcc-4" >> /etc/portage/package.mask notebook ~ # emerge -pv "<sys-devel/gcc-4" These are the packages that would be merged, in order: Calculating dependencies - !!! Problem in '<sys-devel/gcc-4' dependencies. !!! 'NoneType' object is unsubscriptable None Traceback (most recent call last): File "/usr/bin/emerge", line 6831, in <module> retval = emerge_main() File "/usr/bin/emerge", line 6825, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/bin/emerge", line 6092, in action_build retval, favorites = mydepgraph.select_files(myfiles) File "/usr/bin/emerge", line 1925, in select_files self.mysd = self.select_dep(myroot, myatom, arg=myarg) File "/usr/bin/emerge", line 2146, in select_dep myeb_matches = portdb.xmatch("match-visible", x) File "/usr/lib/portage/pym/portage.py", line 7422, in xmatch self.xmatch("list-visible", mykey, mydep=mykey, mykey=mykey)) File "/usr/lib/portage/pym/portage.py", line 7356, in xmatch myval=self.gvisible(self.visible(self.cp_list(mykey))) File "/usr/lib/portage/pym/portage.py", line 7471, in visible if getMaskAtom(cpv, metadata): File "/usr/lib/portage/pym/portage.py", line 1977, in _getMaskAtom if not match_from_list(x, pkg_list): File "/usr/lib/portage/pym/portage_dep.py", line 629, in match_from_list result = pkgcmp(pkgsplit(remove_slot(x)), mysplit) File "/usr/lib/portage/pym/portage_versions.py", line 190, in pkgcmp if pkg1[0] != pkg2[0]: TypeError: 'NoneType' object is unsubscriptable
It looks like you may have something invalid in your overlay that's slipping through. Do you have anything in /usr/local/portage/sys-devel/gcc?
Oops, i've forgot about it. Thanks, i think that this bug can be marked as invalid.
Well, if you tell us what caused it then we can handle that case more intelligently. I imagine that a : (colon) character in SLOT might trigger something like that.