As for other packages (see other bug reports and gentoo-dev post), here I'm adding the patch and the pamd files for sys-apps/shadow. Note: as su pamd file was using non-portable modules, I've just added a su-openpam and installed one of the two depending on the implementation present. HTH, Diego
Created attachment 59366 [details, diff] Ebuild patch
Created attachment 59367 [details] $FILESDIR/pam.d-include/login
Created attachment 59368 [details] $FILESDIR/pam.d-include/other
Created attachment 59369 [details] $FILESDIR/pam.d-include/passwd
Created attachment 59370 [details] $FILESDIR/pam.d-include/shadow
Created attachment 59371 [details] $FILESDIR/pam.d-include/su
Created attachment 59372 [details] $FILESDIR/pam.d-include/su-openpam
Created attachment 59373 [details] $FILESDIR/pam.d-include/system-auth
Created attachment 59374 [details] $FILESDIR/pam.d-include/system-auth-1.1
Committed in 4.0.7-r2.