[93378] trunk/dports/net/samba3/Portfile

Ryan Schmidt ryandesign at macports.org
Mon May 21 08:26:04 PDT 2012


On May 21, 2012, at 01:57, mww at macports.org wrote:

> Revision: 93377
>          https://trac.macports.org/changeset/93377

> -depends_lib		port:openssl \
> -			port:popt \
> -			port:cyrus-sasl2
> +depends_lib		 port:popt port:kerberos5 port:openldap port:zlib port:readline

On May 21, 2012, at 02:14, mww at macports.org wrote:

> Revision: 93378
>          https://trac.macports.org/changeset/93378

> -depends_lib		 port:popt port:kerberos5 port:openldap port:zlib port:readline
> +depends_lib		 port:popt port:zlib port:readline

Hold on. Does samba3 use kerberos5 and openldap or not? If it does not, then adding the dependency in r93377 wouldn't have done anything. But if it does, then removing the dependency in r93378 is not enough to prevent it from using those libraries if they're already installed.

I installed kerberos5 and openldap, and then installed samba3 (non-universal, since the universal variant fails: #34558), then checked with otool -L, and found that samba3 does indeed use kerberos5 and openldap if they are already installed:


$ port provides /opt/local/sbin/smbd /opt/local/lib/libldap-2.4.2.dylib /opt/local/lib/libkrb5.3.3.dylib
/opt/local/sbin/smbd is provided by: samba3
/opt/local/lib/libldap-2.4.2.dylib is provided by: openldap
/opt/local/lib/libkrb5.3.3.dylib is provided by: kerberos5
$ otool -L /opt/local/sbin/smbd | grep -E 'lib(ldap|krb5)'
	/opt/local/lib/libldap-2.4.2.dylib (compatibility version 8.0.0, current version 8.4.0)
	/opt/local/lib/libkrb5.3.3.dylib (compatibility version 3.0.0, current version 3.3.0)
$


So you must add configure args or patches or something to samba3 to prevent it from finding and using openldap and kerberos5 if they are already installed, and increase the revision.



More information about the macports-dev mailing list