Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181259 - app-portage/eix does not handle "virtual/pkg" correctly
Summary: app-portage/eix does not handle "virtual/pkg" correctly
Status: VERIFIED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-07 23:19 UTC by Mark J. Olah
Modified: 2007-06-08 16:23 UTC (History)
1 user (show)

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 Mark J. Olah 2007-06-07 23:19:21 UTC
eix-0.9.8 cannot find package strings of the form "virtual/pkg".

For example:
"eix virtual/x11" returns "No matches found."
while "eix -e x11" finds it.

Reproducible: Always




Seems to be broken for all packages in virtual.
Comment 1 Martin Väth 2007-06-08 09:07:51 UTC
This is expected behavior: eix matches by default against the package name (-s). If you want it to match against category/name, you must use option -A: eix -A virtual/x11 finds the package.
Comment 2 Martin Väth 2007-06-08 15:28:23 UTC
My explanation was not complete, since -s is not always the default:
More precisely, the default depends on your search string - here, "^virtual/" is treated differently than other strings with "/", because "^virtual/" is assumed to start a match against PROVIDE (see MATCH_PROVIDE_IF in /etc/eixrc).
So perhaps you just want to define
   MATCH_ORDER='CATEGORY_NAME NAME PROVIDE'
in /etc/eixrc or in your ~/.eixrc
Comment 3 Mark J. Olah 2007-06-08 16:23:42 UTC
Hi Martin,

Thanks for the explanation.  I can see how that could be a useful default.  I took your suggestion and changed my MATCH_ORDER, and now it works the way I like.

-Mark