https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/libratbag-0.17-r2 fails to compile. Discovered on: amd64 (internal ref: tinderbox_musl) System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0002
Created attachment 896669 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: libratbag.a.p/src_libratbag-data.c.o ../libratbag-0.17/src/libratbag-data.c:610:66: error: implicit declaration of function 'basename'; did you mean 'g_basename'? [-Wimplicit-function-declaration]
Created attachment 897386 [details, diff] basename-musl.patch I have no idea if this will work and I have no way of testing it with musl. If you could toss it in /etc/portage/patches/dev-libs/libratbag and let me know if it builds, that would help a lot.
Not C99 related
I have tried the suggested patch and it successfully compiles on my musl/llvm system. I am surprised with how simple the patch is. Is there a specific functionality that the library libgen.h provides that helps us in this case?