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

Bug 181259

Summary: app-portage/eix does not handle "virtual/pkg" correctly
Product: Portage Development Reporter: Mark J. Olah <mjo>
Component: Third-Party ToolsAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: VERIFIED INVALID    
Severity: normal CC: martin
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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