Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262211 - sys-apps/portage-2.2_rc24: Builds and installs. Emerge package functionality broken
Summary: sys-apps/portage-2.2_rc24: Builds and installs. Emerge package functionality ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords: InVCS, REGRESSION
: 262224 286672 (view as bug list)
Depends on:
Blocks: 210077
  Show dependency tree
 
Reported: 2009-03-11 22:36 UTC by chris
Modified: 2009-09-27 17:21 UTC (History)
1 user (show)

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


Attachments
avoid exceptions triggered by empty SLOT (empty_slot.patch,1.42 KB, patch)
2009-03-12 00:00 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris 2009-03-11 22:36:30 UTC
After installing rc24, an attempt to check for updates to world.
The following output also occurs when attempting to emerge or unmerge any specified package.  Emerge --sync functionality still appeared to work correctly though.

emerge -uDpv world

These are the packages that would be merged, in order:

Calculating dependencies  Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = _emerge.emerge_main()
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 15670, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 14466, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 4549, in __init__
    pkg_cache=self._pkg_cache)
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1217, in __init__
    root_config=root_config, type_name="installed")
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 1571, in __init__
    self.slot_atom = portage.dep.Atom("%s:%s" % (self.cp, self.slot))
  File "//usr/lib64/portage/pym/portage/dep.py", line 496, in __call__
    instance = super(_AtomCache, cls).__call__(s)
  File "//usr/lib64/portage/pym/portage/dep.py", line 527, in __init__
    raise InvalidAtom(s)
InvalidAtom: dev-libs/libksba: 

Reproducible: Always

Steps to Reproduce:
1. Install rc24
2. Run: emerge <package>
3. profit!

Actual Results:  
Calculating dependencies  Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>
    retval = _emerge.emerge_main()
  File "//usr/lib/portage/pym/_emerge/__init__.py", line 15670, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "//usr/lib/portage/pym/_emerge/__init__.py", line 14466, in action_build
    mydepgraph = depgraph(settings, trees, myopts, myparams, spinner)
  File "//usr/lib/portage/pym/_emerge/__init__.py", line 4549, in __init__
    pkg_cache=self._pkg_cache)
  File "//usr/lib/portage/pym/_emerge/__init__.py", line 1217, in __init__
    root_config=root_config, type_name="installed")
  File "//usr/lib/portage/pym/_emerge/__init__.py", line 1571, in __init__
    self.slot_atom = portage.dep.Atom("%s:%s" % (self.cp, self.slot))
  File "//usr/lib/portage/pym/portage/dep.py", line 496, in __call__
    instance = super(_AtomCache, cls).__call__(s)
  File "//usr/lib/portage/pym/portage/dep.py", line 527, in __init__
    raise InvalidAtom(s)
InvalidAtom: net-libs/librpcsecgss:

Expected Results:  
Package installs.
Comment 1 Zac Medico gentoo-dev 2009-03-12 00:00:47 UTC
Created attachment 184766 [details, diff]
avoid exceptions triggered by empty SLOT

If this patch is saved as /tmp/empty_slot.patch, then it can be applied as follows:

  cd /usr/lib/portage
  patch -p0 < /tmp/empty_slot.patch
Comment 2 Zac Medico gentoo-dev 2009-03-12 00:14:33 UTC
*** Bug 262224 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2009-03-12 09:59:24 UTC
This is fixed in 2.2_rc25.
Comment 4 Zac Medico gentoo-dev 2009-09-27 17:21:14 UTC
*** Bug 286672 has been marked as a duplicate of this bug. ***