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

Bug 195083

Summary: equery b does not understand non-normal paths
Product: Portage Development Reporter: Erik <esigra>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Erik 2007-10-08 11:27:05 UTC
equery b does not understand non-normal paths, such as "/usr/lib/opengl//xorg-x11/lib/libGL.so.1". It should understand that it is the same as "/usr/lib/opengl/xorg-x11/lib/libGL.so.1". Otherwise a user will execute "equery b /usr/lib/opengl//xorg-x11/lib/libGL.so.1" and equery b will report that it does not belong to any package. Then the user concludes that it is some cruft left behind and executes "rm /usr/lib/opengl//xorg-x11/lib/libGL.so.1". The problem is that rm understands that "/usr/lib/opengl//xorg-x11/lib/libGL.so.1" means "/usr/lib/opengl/xorg-x11/lib/libGL.so.1" and removes it. But that file does actually belong to media-libs/mesa-6.5.2-r1, as reported by "equery b /usr/lib/opengl/xorg-x11/lib/libGL.so.1". To prevent such problems, equery b has to be as smart as other commands, such as rm and ls.

Other things that equery b does not understand:
equery b /usr/lib/opengl/./xorg-x11/lib/libGL.so.1
equery b /usr/lib/../lib/opengl/xorg-x11/lib/libGL.so.1
cd /someplace; touch libGL.so.1; equery b libGL.so.1
cd /usr/lib/opengl/xorg-x11/lib; equery b ./libGL.so.1

Reproducible: Always

Steps to Reproduce:
Comment 1 Erik 2007-10-08 13:03:31 UTC
The problem is that equery does not call realpath. This is mentioned in bug report #96515. I would like to comment there instead, but that report is broken; if I try to change anything at all (add a comment, subscribe to it or change the summary), i get this error message:
   You tried to change the OS field from other to Other , but only the
   assignee or reporter of the bug, or a sufficiently empowered user
   may change that field.

(I did NOT change the OS field.)


I suppose that this bug report could be marked as a duplicate of #96515 if it is fixed. I suppose fixing it requires that someone with permission changes the OS field from other to Other.

I know that several bug reports are broken in this way. Could someone please change the OS field of every bug report where it is other to Other?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-08 19:25:07 UTC

*** This bug has been marked as a duplicate of bug 96515 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-08 21:19:04 UTC
(In reply to comment #1)
> Could someone please change the OS field of every bug report where it is other
> to Other?

Not really; no way to search for them.