1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/devel/elfutils
Conrad Meyer a4bd7c8f5d elfutils: Fix port build after recent basename() API break
The previous basename() API was shadowing bugs anyway.  This Linux-originated
library assumes GNU basename(3) behavior.  GNU basename(3) is non-destructive
and non-allocating; it always returns a pointer into the original string.  This
library uses that behavior to do things like compare pointer results directly
(the source path was already a basename) or subtract pointer values directly
(compute the substring that constitutes dirname).

Resolve the issue by aliasing all internal elfutils basename() invocations
through an implementation of GNU basename(3) named "eu_basename."

Build log highlighting the problem:
http://beefy4.nyi.freebsd.org/data/head-amd64-default/p419462_s303652/logs/elfutils-0.163_6.log

Approved by:	bdrewery
Differential Revision:	https://reviews.freebsd.org/D7404
2016-08-05 17:35:30 +00:00
..
files
distinfo
Makefile
pkg-descr
pkg-plist