From owner-freebsd-ports@FreeBSD.ORG Mon Jun 15 15:56:29 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 0D51C63B for ; Mon, 15 Jun 2015 15:56:29 +0000 (UTC) (envelope-from dreamx@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 95741E58 for ; Mon, 15 Jun 2015 15:56:28 +0000 (UTC) (envelope-from dreamx@gmx.de) Received: from [192.168.1.11] ([94.53.216.74]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MU0U9-1YeIeA2CcD-00QmuJ; Mon, 15 Jun 2015 17:56:19 +0200 Message-ID: <557EF59F.6050002@gmx.de> Date: Mon, 15 Jun 2015 18:56:15 +0300 From: Horatiu MOLDOVAN User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Dimitry Andric CC: FreeBSD ports Subject: Re: net/samba4* build dependencies References: <55789BD8.8040008@gmx.de> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:K8cRwGd7dut0zab4MiMCO4kRhPLqPldl+vdv0oUc+yYjCNOJG+x ZqUVugbSJf6zSI/e9do2BNc8KTBHx8d818EEk/07R48Pyp/COUH1jEs7nEerWuWu8CXWKgN eiQAqFfOM68zHcxO0L7TjEfZrzKod8MC5XS0kWYF/wICTrn7Pm2hX8BzMN6o4f54NHq2ZLe vC0ScjtWDzIg7Ph9O9ZBQ== X-UI-Out-Filterresults: notjunk:1; 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: Mon, 15 Jun 2015 15:56:29 -0000 On 12/06/2015 23:58, Dimitry Andric wrote: > 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 > Thank you for clarifying these, guess i'll just have to make a temporary patch to the Makefile until these are addressed. --- H.