Red Hat Bugzilla – Bug 38093
basename() isn't portable
Last modified: 2007-04-18 12:32:53 EDT
RPM assumes basename() in libc is the GNU-style basename(). Single Unix
allows basename() to be argument-modifying and other such rubbish.
This breaks build/parsePrep.c on HP-UX 10, and probably elsewhere (some
SunOS's have an argument-modifying basename() too I think).
Easy fix: unconditionally #include "misc/basename.c" in stubs.c.
Sorry, scratch the easy fix, that breaks the build on Tru64.
Proper fix coming up...
Still looking for the "proper fix" ...
Closed for lack of input.