From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 19 06:30:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0CF4E92 for ; Wed, 19 Mar 2014 06:30:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8E45D9DF for ; Wed, 19 Mar 2014 06:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2J6U01E061454 for ; Wed, 19 Mar 2014 06:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2J6U0KT061453; Wed, 19 Mar 2014 06:30:00 GMT (envelope-from gnats) Resent-Date: Wed, 19 Mar 2014 06:30:00 GMT Resent-Message-Id: <201403190630.s2J6U0KT061453@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dewayne 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 8B248E2A for ; Wed, 19 Mar 2014 06:25:41 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 781E89A1 for ; Wed, 19 Mar 2014 06:25:41 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2J6PfNf050743 for ; Wed, 19 Mar 2014 06:25:41 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2J6Pf8p050738; Wed, 19 Mar 2014 06:25:41 GMT (envelope-from nobody) Message-Id: <201403190625.s2J6Pf8p050738@cgiserv.freebsd.org> Date: Wed, 19 Mar 2014 06:25:41 GMT From: Dewayne To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187721: mail/dovecot2 fix to use security/heimdal port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 06:30:00 -0000 >Number: 187721 >Category: ports >Synopsis: mail/dovecot2 fix to use security/heimdal port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 19 06:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Dewayne >Release: FreeBSD 9.2S (rev 262851) >Organization: >Environment: FreeBSD b1.hs 9.2-STABLE FreeBSD 9.2-STABLE #0: Fri Mar 7 05:40:14 EST 2014 root@:/usr/obj/usr/src/sys/hqdev-amd64-padlock-smp-vga i386 >Description: Building dovecot2 on FreeBSD 9.2 using security/heimdal port results in configure returning /usr/bin/ld: cannot find -lgssapi_krb5 which is correct, because libgssapi_krb5 isn't built by the security/heimdal port. The security/heimdal port builds libgssapi to contain the calls that lower versions of heimdal use in libgssapi_krb5. >How-To-Repeat: rm /usr/lib/libgssap* # In my case I don't build these, via src.conf WITHOUT_KERBEROS cd /usr/ports/security/heimdal && make install package cd /usr/ports/mail/dovecot2 && make install package >Fix: .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 or for a minimal solution .if !defined(HEIMDAL_HOME) LDFLAGS+= -lgssapi_krb5 .endif It is common practice to use HEIMDAL_HOME as both the trigger for recognition of use of the security/heimdal port as well as the location of the libs and headers. >Release-Note: >Audit-Trail: >Unformatted: