Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692412 - IndexError on ambiguous unmerge under pypy
Summary: IndexError on ambiguous unmerge under pypy
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 691278
  Show dependency tree
 
Reported: 2019-08-18 00:11 UTC by Peter Foley
Modified: 2019-11-02 00:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Foley 2019-08-18 00:11:36 UTC
Using python 3.7:

Portage 2.3.71 (python 3.7.4-final-0, default/linux/amd64/17.0, gcc-9.1.0, glibc-2.29-r4, 5.1.5-gentoo x86_64)

/usr/bin/emerge -pvc mysql
!!! The short ebuild name "mysql" is ambiguous.  Please specify one of the
!!! following fully-qualified ebuild names instead:
    acct-group/mysql
    acct-user/mysql
    virtual/mysql

Using pypy 7.1:

Portage 2.3.71 (python 2.7.13-final-42, default/linux/amd64/17.0, gcc-9.1.0, glibc-2.29-r4, 5.1.5-gentoo x86_64)

/usr/bin/pypy /usr/bin/emerge -pvc mysql
!!! The short ebuild name "mysql" is ambiguous.  Please specify one of the
!!! following fully-qualified ebuild names instead:
Traceback (most recent call last):
  File "<string>", line 53, in <module>
  File "/usr/lib/pypy2.7/site-packages/_emerge/main.py", line 1289, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/pypy2.7/site-packages/_emerge/actions.py", line 3230, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/pypy2.7/site-packages/_emerge/actions.py", line 2081, in action_uninstall
    for i in e.args[0]:
IndexError: tuple index out of range
Comment 1 Larry the Git Cow gentoo-dev 2019-08-18 22:15:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=53801bfdd8037d1b0631412d56217207e43ff259

commit 53801bfdd8037d1b0631412d56217207e43ff259
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-08-18 21:49:31 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-08-18 21:53:18 +0000

    AmbiguousPackageName: initialize self.args for pypy compat
    
    For pypy 7.1 self.args is empty, triggering this IndexError:
    
    Traceback (most recent call last):
      File "<string>", line 53, in <module>
      File "/usr/lib/pypy2.7/site-packages/_emerge/main.py", line 1289, in emerge_main
        return run_action(emerge_config)
      File "/usr/lib/pypy2.7/site-packages/_emerge/actions.py", line 3230, in run_action
        emerge_config.args, spinner)
      File "/usr/lib/pypy2.7/site-packages/_emerge/actions.py", line 2081, in action_uninstall
        for i in e.args[0]:
    IndexError: tuple index out of range
    
    Bug: https://bugs.gentoo.org/692412
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/exception.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 2 Larry the Git Cow gentoo-dev 2019-08-19 05:06:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08557524dc6c8eec3a366e43ab2587d2cdd8f133

commit 08557524dc6c8eec3a366e43ab2587d2cdd8f133
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-08-19 04:24:07 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-08-19 05:06:15 +0000

    sys-apps/portage: Bump to version 2.3.72
    
     #463952 glsa-check: install in /usr/bin
     #646090 preserve-libs: get dep graph from EROOT
     #690484 detect internal collisions for /usr merge
     #690786 repoman: support metadata/layout.conf restrict-allowed
     #691776 unpack: Unconditionally die if an unpacker returns an error
     #691638 Show get/setfattr stderr
     #692024 econf: Unconditionally die on error in EAPIs 0 to 3
     #692262 QA Notice: EXPORT_FUNCTIONS is called before inherit in
             kernel-2.eclass
     #692412 emerge IndexError for ambiguous package atom with pypy
    
    Bug: https://bugs.gentoo.org/691278
    Bug: https://bugs.gentoo.org/463952
    Bug: https://bugs.gentoo.org/646090
    Bug: https://bugs.gentoo.org/690484
    Bug: https://bugs.gentoo.org/690786
    Bug: https://bugs.gentoo.org/691776
    Bug: https://bugs.gentoo.org/691638
    Bug: https://bugs.gentoo.org/692024
    Bug: https://bugs.gentoo.org/692262
    Bug: https://bugs.gentoo.org/692412
    Package-Manager: Portage-2.3.71, Repoman-2.3.17
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-2.3.72.ebuild | 264 +++++++++++++++++++++++++++++++++
 2 files changed, 265 insertions(+)