Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197225

Summary: x11-misc/slim doesn't honor USE=pam
Product: Gentoo Linux Reporter: Florian Wagner <florian>
Component: New packagesAssignee: Christoph Mende (RETIRED) <angelos>
Status: RESOLVED FIXED    
Severity: normal CC: desktop-misc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Florian Wagner 2007-10-27 17:18:09 UTC
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.
Comment 1 Christoph Mende (RETIRED) gentoo-dev 2007-10-27 18:04:34 UTC
Thanks, the fix is in cvs, I've also added a note in pkg_postinst for the pam.d file.