The slim-1.3.0 ebuild is incorrect. When building with the pam use flag turned on, "emake USE_PAM=1 ..." is only called in src_install but not not in src_compile. This results in the majority of files to be built without the USE_PAM=1 flag set. (Only PAM.c is compiled with USE_PAM=1 since in src_install the emake call is correct and results in the Makefile to behave differently). A correct ebuild can be found at http://wagner-flo.net/repos/portage-overlay/x11-misc/slim/slim-1.3.0-r1.ebuild. It just adds src_compile which is analog to src_install. Reproducible: Always Steps to Reproduce: 1. Do a "emerge slim" with USE="pam". 2. Restart slim/xdm. 3. Look into your syslog while logging in with slim. Actual Results: No messages for PAM are written to the syslog. Expected Results: On login with slim, PAM should write to syslog. After correctly installing slim with PAM support a /etc/pam.d/slim file will need to be created or slim won't work. A symlink from /etc/pam.d/system-auth works. This should probably be integrated into the ebuild.
Thanks, the fix is in cvs, I've also added a note in pkg_postinst for the pam.d file.