Created attachment 421536 [details]
Build log from failed pam-1.2.1-r1 emerge demonstrating strndupa error
Please assign to firstname.lastname@example.org
It is not possible to build Linux-PAM 1.2.1 against musl due to pam's usage of strndupa(). See attached build.log.
There is already a bug filed for this upstream:
As well as a suggested patch:
I have uptaken this patch on a later revision pam ebuild in my own overlay:
see i would have switched to strndup which uses malloc instead of alloc and then been careful to free the char* after use. anyhow that patch looks okay to me.
if you are actively working with musl, please provide patches against the musl overlay at https://gitweb.gentoo.org/proj/musl.git/ so all may benefit from your work.
Believe this has been fixed.
No issues emerging sys-libs/pam-1.2.1-r99 from musl overlay.