Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101672 - proftpd links against pam if it's installed, even when emerge with USE="-pam"
Summary: proftpd links against pam if it's installed, even when emerge with USE="-pam"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 146888
Blocks:
  Show dependency tree
 
Reported: 2005-08-07 12:59 UTC by David Morgan
Modified: 2006-09-23 12:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to prevent PAM from being enabled despite USE="-pam" (proftpd-1.2.10-r7-pam.patch,328 bytes, patch)
2005-08-07 13:30 UTC, Andy Kissner
Details | Diff
Pam patch -- part two! (proftpd-1.2.10-r7-pam.patch,325 bytes, patch)
2005-08-07 13:55 UTC, Andy Kissner
Details | Diff
Last try! (proftpd-1.2.10-r7-pam.patch,383 bytes, patch)
2005-08-07 14:42 UTC, Andy Kissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Morgan 2005-08-07 12:59:26 UTC
If proftpd is emerged with -pam in USE but pam is installed, then proftpd links
against pam, and needs to be rebuilt if pam is then unmerged.

[ebuild   R   ] net-ftp/proftpd-1.2.10-r7  -authfile +hardened -ipv6 -ldap
-mysql +ncurses -noauthunix -pam -postgres (-selinux) -sendfile -shaper
-softquota +ssl +tcpd -xinetd 0 kB

 * Starting proftpd ...
/usr/sbin/proftpd: error while loading shared libraries: libpam.so.0: cannot
open shared object file: No such file or directory
Comment 1 Andy Kissner 2005-08-07 13:29:04 UTC
Try this patch
Comment 2 Andy Kissner 2005-08-07 13:30:08 UTC
Created attachment 65343 [details, diff]
Patch to prevent PAM from being enabled despite USE="-pam"

Patch to prevent PAM from being enabled despite -pam
Comment 3 David Morgan 2005-08-07 13:48:11 UTC
The same thing happens (though --disable-pam is being passed to configure)

This is from configure btw:

checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking for pam_start in -lpam... yes
Comment 4 Andy Kissner 2005-08-07 13:54:33 UTC
Try this one:
Comment 5 Andy Kissner 2005-08-07 13:55:02 UTC
Created attachment 65347 [details, diff]
Pam patch -- part two!
Comment 6 David Morgan 2005-08-07 14:28:50 UTC
Same thing happens (though --without-pam gets used)
Comment 7 Andy Kissner 2005-08-07 14:39:58 UTC
(In reply to comment #6)
> Same thing happens (though --without-pam gets used)

This sounds like proftpd just not playing by the rules. According to their
README.modules, mod_pam is included no matter what if it is found.
However, after playing around, I've found a method to stop configure from
including it. See attachment.
Comment 8 Andy Kissner 2005-08-07 14:42:00 UTC
Created attachment 65351 [details, diff]
Last try!
Comment 9 Chris Slycord 2005-08-08 21:37:13 UTC
I've tried every combination of those patches I could and at some point it fails
due to not finding pam.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-06-24 06:03:50 UTC
Looks like it needs --enable-auth-pam=no passed to configure. There's a hopefully fixed ebuild in Bug 111668, give it a try.

# ./configure &> config.log; grep pam config.log

checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking for pam_start in -lpam... yes

# ./configure --enable-auth-pam=no
#
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-09-08 14:38:19 UTC
OK, this works for me (didn't get into 1.3.0-r1 unfortunately)

<snip>
use pam && modules="${modules}:mod_auth_pam"
# pam needs to be explicitely disabled - see README.PAM
use pam || myconf="${myconf} --enable-auth-pam=no"
</snip>
Comment 12 Luca Longinotti (RETIRED) gentoo-dev 2006-09-23 12:09:39 UTC
Fixed in net-ftp/proftpd-1.3.0-r2. Thanks for the fix!
Best regards, CHTEKK.