Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 217664
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jan Schubert <Jan.Schubert@GMX.li>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pkg_cache.patch fix the KeyError patch Zac Medico 2008-04-14 23:55 0000 758 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 217664 depends on: Show dependency tree
Bug 217664 blocks: 216231
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-14 15:18 0000
There might a problem with some options to emerge when trying to emerge masked
packages. The following is an example which worked fine when without specifying
any option:

# emerge -a rpm-5.0.3.ebuild

*** emerging by path is broken and may not always work!!!


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

Calculating dependencies -
*** You are emerging a masked package. It is MUCH better to use
*** /etc/portage/package.* to accomplish this. See portage(5) man
*** page for details.
>>> Waiting 10 seconds before starting...
>>> (Control-C to abort)...
Continuing... in: 10 9 8 7 6 5 4 3 2 1
... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 7852, in <module>
    retval = emerge_main()
  File "/usr/bin/emerge", line 7846, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 7121, in action_build
    favorites=favorites)
  File "/usr/bin/emerge", line 3833, in display
    pkg = self._pkg_cache[tuple(x)]
KeyError: ('ebuild', '/', 'app-arch/rpm-5.0.3', 'merge')

------- Comment #1 From Jan Kundrát 2008-04-14 18:38:06 0000 -------
Jan, you do realize that you are expected to pass an option that specifies a
*package* name, not the .ebuild file, right?

------- Comment #2 From Zac Medico 2008-04-14 21:29:08 0000 -------
I don't see any reason why normal masking rules should not apply simply because
a package path is given rather than a normal atom. So, I think the proper
solution is to fix the masking behavior so that it's consistent with normal
atoms.

------- Comment #3 From Zac Medico 2008-04-14 23:55:56 0000 -------
Created an attachment (id=149758) [details]
fix the KeyError

------- Comment #4 From Zac Medico 2008-04-16 01:51:03 0000 -------
This is fixed in 2.1.5_rc4.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug