There is only a small patch missing to support musl-libc in the main gentoo repository, which adds an include for limits.h for constant 'PATH_MAX'.
This would allow easier maintenance of the bluez package by eliminating the copy from the overlay.
Aside, but related:
I assume that the patch referenced in https://gitweb.gentoo.org/proj/musl.git/tree/net-wireless/bluez/bluez-5.51.ebuild#n70 is now redundant after removing the systemd-m4 package from Gentoo? (I see it hasn't been applied upstream, and is missing from ::gentoo).
If it's this patch:
I upstreamed it long time ago and should be included in current versions :/
(In reply to Pacho Ramos from comment #1)
> If it's this patch:
> I upstreamed it long time ago and should be included in current versions :/
My apologies, I see you did indeed submit it, and it was merged in 2019-10, so it should have landed in 5.52. For some reason I missed the upstream commit 2d249af381a664fd5a139ee4de6bfdf2f7c2e8cf (probably looking at the github mirror rather than git.kernel.org) which contained it.
I see that 5.54 is stable in ::gentoo, and does indeed build for me on a musl system:
>>> Source compiled.
>>> Install net-wireless/bluez-5.54 into /var/tmp/portage/net-wireless/bluez-5.54/image
>>> Completed installing net-wireless/bluez-5.54 into /var/tmp/portage/net-wireless/bluez-5.54/image
Thanks for the reply, I can axe the overlay version, and apologies for the confusion!
No problem, you are welcome :)