Community
Participate
Working Groups
Created attachment 194542 [details] Fix for missing APIs. Some APIs provided by glibc are not available for uclibc-based targets, so we can provide implementations of these using mdep.c. The second issue is that libuuid does not yet support being built for uclibc targets, so we should provide a method for linux clients to not be forced to link against this library. See attached for patches for both issues, based on SVN version 1617.
Created attachment 194543 [details] Fix allowing builds in uuid-less environments
I have some doubts about the first patch: it changes realpath() to use NULL as the buffer pointer. NULL support was added relatively recently - in 2008 issue of IEEE standard, and it is not consistently supported everywhere. I would not use it without checking libc version with #if/#endif.
I didn't test builds for *BSD or apple, just optimized for them as well based on the 4.4BSD & POSIX.1-2001 documentation. You could always use the original implementation for these platforms and just add the optimized canonicalize_file_name() for uclibc platforms.
I have committed the patches with a minor change: the original implementation of canonicalize_file_name() is used for BSD. Thanks!