Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685482 - app-portage/repoman: erroneous dependency.bad error for dev-lang/python-exec[-python_single_target_python3_7(-)]
Summary: app-portage/repoman: erroneous dependency.bad error for dev-lang/python-exec[...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 683434
  Show dependency tree
 
Reported: 2019-05-09 19:58 UTC by Zac Medico
Modified: 2019-05-26 10:02 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 Zac Medico gentoo-dev 2019-05-09 19:58:42 UTC
This error currently shows like this:

> RepoMan scours the neighborhood...
>   dependency.bad [fatal]        2
>    dev-libs/libxml2/libxml2-2.9.9-r1.ebuild: DEPEND: ~riscv(default/linux/riscv/17.0/rv64gc)
> [     '>=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]']
>    dev-libs/libxml2/libxml2-2.9.9-r1.ebuild: RDEPEND: ~riscv(default/linux/riscv/17.0/rv64gc)
> [     '>=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]']

The problem occurs when the dbapi._match_use method returns False here:

https://gitweb.gentoo.org/proj/portage.git/tree/lib/portage/dbapi/__init__.py?h=portage-2.3.66#n322

The state in the method call looks like this:

> (Pdb) atom
> '>=dev-lang/python-exec-2:=[python_targets_python3_7(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]'
> (Pdb) useforce
> frozenset({'python_targets_pypy', 'python_targets_pypy3', 'python_targets_python3_5', 'big-endian', 'userland_GNU', 'python_targets_python3_7', 'riscv', 'python_single_target_python3_7', 'python_targets_python2_7', 'elibc_glibc', 'python_targets_python3_6', 'abi_riscv_lp64d', 'kernel_linux', 'python_targets_jython2_7'})
> (Pdb) atom.use.disabled
> frozenset({'python_single_target_python3_6', 'python_single_target_python2_7', 'python_single_target_python3_7', 'python_single_target_python3_5'})
> (Pdb) atom.use.missing_disabled
> frozenset({'python_single_target_python2_7', 'python_targets_python3_5', 'python_targets_python3_7', 'python_single_target_python3_5', 'python_single_target_python3_7', 'python_targets_python2_7', 'python_targets_python3_6', 'python_single_target_python3_6'})
Comment 2 Larry the Git Cow gentoo-dev 2019-05-11 21:16:02 UTC
The bug has been referenced in the following commit(s):

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

commit fbebef9677d63db70f1c68b197e58b041ec6ac61
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-05-09 20:10:46 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-05-11 20:55:49 +0000

    repoman: check IUSE in _match_use for USE defaults (bug 685482)
    
    This corrects a problem triggered with USE defaults where repoman
    returns an incorrect negative match for an atom with USE defaults.
    For example, it triggered this dependency.bad error:
    
    RepoMan scours the neighborhood...
      dependency.bad [fatal]        2
       dev-libs/libxml2/libxml2-2.9.9-r1.ebuild: DEPEND: ~riscv(default/linux/riscv/17.0/rv64gc)
    [     '>=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]']
       dev-libs/libxml2/libxml2-2.9.9-r1.ebuild: RDEPEND: ~riscv(default/linux/riscv/17.0/rv64gc)
    [     '>=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_5(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]']
    
    State in the _match_use method looked like this:
    
    (Pdb) atom
    '>=dev-lang/python-exec-2:=[python_targets_python3_7(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]'
    (Pdb) useforce
    frozenset({'python_targets_pypy', 'python_targets_pypy3', 'python_targets_python3_5', 'big-endian', 'userland_GNU', 'python_targets_python3_7', 'riscv', 'python_single_target_python3_7', 'python_targets_python2_7', 'elibc_glibc', 'python_targets_python3_6', 'abi_riscv_lp64d', 'kernel_linux', 'python_targets_jython2_7'})
    (Pdb) atom.use.disabled
    frozenset({'python_single_target_python3_6', 'python_single_target_python2_7', 'python_single_target_python3_7', 'python_single_target_python3_5'})
    (Pdb) atom.use.missing_disabled
    frozenset({'python_single_target_python2_7', 'python_targets_python3_5', 'python_targets_python3_7', 'python_single_target_python3_5', 'python_single_target_python3_7', 'python_targets_python2_7', 'python_targets_python3_6', 'python_single_target_python3_6'})
    
    Bug: https://bugs.gentoo.org/685482
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/dbapi/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2019-05-11 23:06:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a32106d18795929913004a6c391681ec08ac2ae

commit 4a32106d18795929913004a6c391681ec08ac2ae
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-05-11 22:43:09 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-05-11 23:06:04 +0000

    sys-apps/portage: 2.3.66-r1 revbump for bug 685482
    
    Bug: https://bugs.gentoo.org/685482
    Package-Manager: Portage-2.3.66_p4, Repoman-2.3.12_p113
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/portage-2.3.66-r1.ebuild | 261 ++++++++++++++++++++++++++++++
 1 file changed, 261 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2861d72b5a88de52610a4537374f56e6b8189127

commit 2861d72b5a88de52610a4537374f56e6b8189127
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-05-11 21:58:38 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-05-11 23:06:03 +0000

    sys-apps/portage: 2.3.62-r2 stable revbump for bug 685482
    
    This fixes false dependency.bad errors reported by repoman.
    
    Bug: https://bugs.gentoo.org/683434
    Bug: https://bugs.gentoo.org/685482
    Package-Manager: Portage-2.3.66_p4, Repoman-2.3.12_p113
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest                 |   1 +
 sys-apps/portage/portage-2.3.62-r2.ebuild | 261 ++++++++++++++++++++++++++++++
 2 files changed, 262 insertions(+)