Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647026 - sys-apps/util-linux-2.31.1 - whereis: ordering of results does not respect $PATH (obeying EPREFIX)
Summary: sys-apps/util-linux-2.31.1 - whereis: ordering of results does not respect $P...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-08 17:53 UTC by Martin Mokrejš
Modified: 2018-03-02 01:50 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 Martin Mokrejš 2018-02-08 17:53:39 UTC
In bug #646882 it turned out that whereis utility ignores my $PATH and reports places where a binary is present. If an application relies on the listing of full paths to whichever binary, it may on Gentooo PREFIX-ed installations execute an executable from say /usr/bin/foo instead of ${EPREFIX}/usr/bin/foo . That could be a different arch and may not even work.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-10 11:48:29 UTC
(In reply to Martin Mokrejš from comment #0)
> If an application relies on the listing of full paths to whichever binary[...]

...it definitely shouldn't rely on whereis to provide it. FTFY.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-03-02 01:50:31 UTC
I am not sure if this a bug. Please file a bug with upstream at https://github.com/karelzak/util-linux/issues