Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 545294

Summary: "foo? ( cat/example[foo] )" and "foo? ( cat/example[foo?] )" dependencies are not treated as equivalent
Product: Portage Development Reporter: Ulrich Müller <ulm>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ulrich Müller gentoo-dev 2015-04-02 08:46:22 UTC
Seen with app-editors/emacs-18.59-r10:
"abi_x86_x32? ( >=sys-libs/ncurses-5.9-r3[abi_x86_x32(-)] )" in *DEPEND results in a (false positive) repoman warning:

  dependency.unknown            2
   app-editors/emacs/emacs-18.59-r10.ebuild: DEPEND: >=sys-libs/ncurses-5.9-r3[abi_x86_x32(-)]
   app-editors/emacs/emacs-18.59-r10.ebuild: RDEPEND: >=sys-libs/ncurses-5.9-r3[abi_x86_x32(-)]

whereas repoman doesn't complain about the following which is:
"abi_x86_x32? ( >=sys-libs/ncurses-5.9-r3[abi_x86_x32(-)?] )"
Comment 1 Zac Medico gentoo-dev 2015-04-02 20:52:24 UTC
It behaves this way because portdb.xmatch("match-all", atom) returns nothing due to the abi_x86_x32 flag being masked. So, it needs to account for masked flags differently.
Comment 2 Zac Medico gentoo-dev 2015-04-02 21:06:02 UTC
There's a patch in the following branch:

https://github.com/zmedico/portage/tree/bug_545294

You can install the branch like this:

ACCEPT_KEYWORDS="**" \
portage_LIVE_REPO="https://github.com/zmedico/portage.git" \
portage_LIVE_BRANCH="bug_545294" emerge -1 =sys-apps/portage-9999

I've posted the patch for review here:

http://thread.gmane.org/gmane.linux.gentoo.portage.devel/5408
Comment 3 Arfrever Frehtes Taifersar Arahesis 2015-04-02 23:05:03 UTC

*** This bug has been marked as a duplicate of bug 525376 ***