On 11/15/2010 12:01 AM, Paul Eggert wrote:
> On 11/14/2010 04:16 PM, Jerker Bäck wrote:
>> Nothing to do with autoconf then?
> 
> That's right.  Though they probably need to do something more complicated
> than what you suggest.  Perhaps they should use gnulib's basename package;
> it should do the right thing.

Actually, gnulib's basename package is misnamed; it only provides
base_name (and not the POSIX basename).  This is because the POSIX
specification of basename() is rather weak (it's not guaranteed to be
threadsafe, for starters); whereas base_name() has reliable semantics
(it always mallocs the result in a threadsafe manner).

But Paul is correct - the problematic packages should either fix up
their checks for basename() or consider using gnulib's base_name().

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to