From owner-freebsd-ports@FreeBSD.ORG Fri Jun 12 20:59:12 2015 Return-Path: Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A977CEA4 for ; Fri, 12 Jun 2015 20:59:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:0:20e:cff:fea0:e4a2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 685B22FE for ; Fri, 12 Jun 2015 20:59:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::eca2:5919:f5fa:61a7] (unknown [IPv6:2001:7b8:3a7:0:eca2:5919:f5fa:61a7]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E149121AF2; Fri, 12 Jun 2015 22:59:06 +0200 (CEST) Subject: Re: net/samba4* build dependencies Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/signed; boundary="Apple-Mail=_25F41D11-4AB0-4DCD-9B6C-166DB297D7CB"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5 From: Dimitry Andric In-Reply-To: <55789BD8.8040008@gmx.de> Date: Fri, 12 Jun 2015 22:58:59 +0200 Cc: FreeBSD ports Message-Id: References: <55789BD8.8040008@gmx.de> To: Horatiu MOLDOVAN X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2015 20:59:12 -0000 --Apple-Mail=_25F41D11-4AB0-4DCD-9B6C-166DB297D7CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10 Jun 2015, at 22:19, Horatiu MOLDOVAN wrote: > Trying to replace samba 3.6 i've observed some disturbing things on = samba 4.x build: > - security/cyrus-sasl2, security/libgcrypt and security/gnutls are = mandatory lib dependencies - is there a reason to add garbage to the = system? Apparently it is still a TODO, the Makefile has this comment, just before pulling in those dependencies: # XXX: Unconditional dependencies which can't be switched off (if = present # in the system) As far as dependencies on gnutls (and its dependencies like libgcrypt) go, it looks like samba implements its TLS support using these. As a GPL project, I don't think they support using e.g. OpenSSL instead. And you could say that OpenSSL is in its own class of "garbage". :-) That said, the TLS support seems to be required only for ADS support, so turning ADS off should ideally also turn off the gnutls dependencies. Similarly, SASL seems to be required for ADS too, but it isn't disabled if you disable ADS, so that is another feature that could be improved in the Makefile. > - OpenLDAP is built unconditionally regardless of the LDAP option = setting - again, is there a reason to add more garbage to the system? This is because the Makefile unconditionally requires databases/ldb, and that port in turn unconditionally requires openldap... :-( So probably the best option would be to automatically disable ldb support, if ldap support is turned off. > not sure why dns/py-dnspython is a build dependency... It looks like samba's build system (based on waf) uses this during the build. See the lib/wscript_build file in the work directory. I have no idea why samba wants to do DNS lookups during its build, which is rather strange. -Dimitry --Apple-Mail=_25F41D11-4AB0-4DCD-9B6C-166DB297D7CB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlV7SBoACgkQsF6jCi4glqOgRACgucezcOMP2oPMMfEFoKJum7FY lVAAoKNku4P/odz8N2GbsEbFQkz8f3xy =F0vQ -----END PGP SIGNATURE----- --Apple-Mail=_25F41D11-4AB0-4DCD-9B6C-166DB297D7CB--