https://sourceware.org/bugzilla/show_bug.cgi?id=32166
Bug ID: 32166
Summary: gprofn testsuite uses non-portable which
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gprofng
Assignee: vladimir.mezentsev at oracle dot com
Reporter: sam at gentoo dot org
Target Milestone: ---
The gprofng seems to use `which` in a few places.
`which` isn't portable. Debian as well as other distros like Gentoo are trying
to remove it from their base system. See https://lwn.net/Articles/874049/.
For bash scripts, `type -P foo` is a good replacement. For POSIX shell scripts,
`command -v foo` is fine.
testsuite/lib/Makefile.skel has:
```
JAVABIN = $(shell dirname `which java`)
```
--
You are receiving this mail because:
You are on the CC list for the bug.