Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545294 - "foo? ( cat/example[foo] )" and "foo? ( cat/example[foo?] )" dependencies are not treated as equivalent
Summary: "foo? ( cat/example[foo] )" and "foo? ( cat/example[foo?] )" dependencies are...
Status: RESOLVED DUPLICATE of bug 525376
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-04-02 08:46 UTC by Ulrich Müller
Modified: 2015-04-02 23:05 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 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 ***