Date: Fri, 6 Aug 2010 22:27:56 GMT From: Benjamin Lee <ben@b1c1l1.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/149370: www/mod_auth_kerb2 does not build against security/krb5 and does not register port dependencies Message-ID: <201008062227.o76MRuGM016864@www.freebsd.org> Resent-Message-ID: <201008062230.o76MU3um062974@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 149370 >Category: ports >Synopsis: www/mod_auth_kerb2 does not build against security/krb5 and does not register port dependencies >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 06 22:30:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Benjamin Lee >Release: 8.1-RELEASE >Organization: >Environment: FreeBSD eclipse.b1c1l1.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The www/mod_auth_kerb2 port does not build correctly against the security/krb5 port when KRB5_HOME is defined. This is due to an incorrect check for libgssapi_krb5.a, which hasn't been provided by the security/krb5 port for several years. Also, the port does not register any relevant port dependencies when building against either security/krb5 or security/heimdal. >How-To-Repeat: 1. Define KRB5_HOME in /etc/make.conf. 2. Install security/krb5 from ports. 3. Install www/mod_auth_kerb2 from ports. >Fix: Apply the attached patch. Patch attached with submission follows: --- /usr/ports/www/mod_auth_kerb2/Makefile 2010-05-25 13:17:27.000000000 -0700 +++ Makefile 2010-08-06 15:25:24.000000000 -0700 @@ -10,6 +10,7 @@ PORTNAME= mod_auth_kerb PORTVERSION= 5.4 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= SF/modauthkerb/${PORTNAME}/${PORTNAME}-${PORTVERSION} PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} @@ -27,14 +28,16 @@ PORTSCOUT= limit:^5.3 -.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a) +.if defined(KRB5_HOME) +LIB_DEPENDS+= gssapi_krb5:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-krb5=${KRB5_HOME} --without-krb4 -.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a) +.elif defined(HEIMDAL_HOME) +LIB_DEPENDS+= gssapi:${PORTSDIR}/security/heimdal CONFIGURE_ARGS+= --with-krb5=${HEIMDAL_HOME} --without-krb4 .elif exists(${DESTDIR}/usr/lib/libkrb5.a) && exists(${DESTDIR}/usr/bin/krb5-config) CONFIGURE_ARGS+= --with-krb5=${DESTDIR}/usr --without-krb4 .else -LIB_DEPENDS+= krb5:${PORTSDIR}/security/krb5 +LIB_DEPENDS+= gssapi_krb5:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-krb5=${LOCALBASE} --without-krb4 .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008062227.o76MRuGM016864>