Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206071 - sys/apps-portage-2.1.4 can't update world if something set in package.mask
Summary: sys/apps-portage-2.1.4 can't update world if something set in package.mask
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 11:05 UTC by Anatoly Arzhnikov
Modified: 2008-01-16 18:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
log.txt (log.txt,3.95 KB, text/plain)
2008-01-16 11:07 UTC, Anatoly Arzhnikov
Details
emerge --info (emerge.info,3.50 KB, text/plain)
2008-01-16 11:07 UTC, Anatoly Arzhnikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Arzhnikov 2008-01-16 11:05:30 UTC
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.
Comment 1 Anatoly Arzhnikov 2008-01-16 11:07:08 UTC
Created attachment 141034 [details]
log.txt

Full console output
Comment 2 Anatoly Arzhnikov 2008-01-16 11:07:33 UTC
Created attachment 141036 [details]
emerge --info
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2008-01-16 12:32:47 UTC
I can't reproduce this. Also, your steps to reproduce are different than your attached output.
Comment 4 Anatoly Arzhnikov 2008-01-16 16:00:16 UTC
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
Comment 5 Zac Medico gentoo-dev 2008-01-16 16:40:17 UTC
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?
Comment 6 Anatoly Arzhnikov 2008-01-16 18:00:18 UTC
Oops, i've forgot about it. Thanks, i think that this bug can be marked as invalid.
Comment 7 Zac Medico gentoo-dev 2008-01-16 18:23:29 UTC
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.