From owner-freebsd-ports@FreeBSD.ORG Wed Mar 19 01:59:13 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0423E439 for ; Wed, 19 Mar 2014 01:59:13 +0000 (UTC) Received: from nskntmtas04p.mx.bigpond.com (nskntmtas04p.mx.bigpond.com [61.9.168.146]) by mx1.freebsd.org (Postfix) with ESMTP id 94E99D88 for ; Wed, 19 Mar 2014 01:59:11 +0000 (UTC) Received: from nskntcmgw05p ([61.9.169.165]) by nskntmtas04p.mx.bigpond.com with ESMTP id <20140319015904.KJJE17495.nskntmtas04p.mx.bigpond.com@nskntcmgw05p> for ; Wed, 19 Mar 2014 01:59:04 +0000 Received: from hermes.heuristicsystems.com.au ([121.210.107.100]) by nskntcmgw05p with BigPond Outbound id fDz41n00H29zwdD01Dz4To; Wed, 19 Mar 2014 01:59:04 +0000 X-Authority-Analysis: v=2.0 cv=GIWK45xK c=1 sm=1 a=SEJ2iDwVkb98DYvesvueMw==:17 a=JipEcVzqA9wA:10 a=8GKwtWsXWNAA:10 a=8nJEP1OIZ-IA:10 a=GHIR_BbyAAAA:8 a=8LSgmkc4VqPo8VMkRVkA:9 a=wPNLvfGTeEIA:10 a=GED_LIiEBe0A:10 a=SEJ2iDwVkb98DYvesvueMw==:117 Received: from [10.0.5.3] (ewsw01.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id s2J1vQfm094251 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 19 Mar 2014 12:57:27 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Message-ID: <5328F974.9090303@heuristicsystems.com.au> Date: Wed, 19 Mar 2014 12:57:08 +1100 From: Dewayne Geraghty User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "ports@FreeBSD.org" Subject: Accommodating the security/heimdal port on FreeBSD10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 01:59:13 -0000 Some port maintainers on FreeBSD 10 are modifying various ports to accommodate gssapi use from heimdal base. Typically the change is something like ... LDFLAGS+= -lgssapi_krb5 .. which works for heimdal in the base system, but prevents a package (or port build) because in security/heimdal the content of libgssapi_krb5 is contained within libgssapi; and so doesn't exist as a separate library. Would it be possible to wrap this dependency within a .if !defined(HEIMDAL_HOME) LDFLAGS+= -lgssapi_krb5 .endif Its fairly standard practice to test for HEIMDAL_HOME which invariably implies that the security/heimdal port is being used, and incidentally identifies where the libraries are located. Though a better solution, which also reflects the real dependency upon the security/heimdal port .if defined(HEIMDAL_HOME) BUILD_DEPENDS+= ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal RUN_DEPENDS+= ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal .else LDFLAGS+= -lgssapi_krb5 .endif As this also adds the heimdal port dependency into +COMMENTS (& possible MANIFEST?), as well as build dependency. I'm not a port maintainer/committer, but for those that are, there are a few ports that might be useful as a reference regarding use of the heimdal port: security/cyrus-sasl2-gssapi net/samba3 dns/bind99 I don't have heimdal from base installed, which is why I noticed that mail/dovecot2 was the most recent port that needed some additional lines, so I figured it might help others rather than my patching just my ports tree. Regards, Dewayne.