Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2014 18:44:05 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358159 - in head/www/mod_auth_kerb2: . files
Message-ID:  <201406171844.s5HIi58k033249@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Jun 17 18:44:04 2014
New Revision: 358159
URL: http://svnweb.freebsd.org/changeset/ports/358159
QAT: https://qat.redports.org/buildarchive/r358159/

Log:
  Conditionally add "-lgssapi_krb5" to KRB5_LDFLAGS.  This fixes build with
  security/heimdal.
  
  PR:		ports/124375
  Approved by:	apache (maintainer, timeout 6+ years)

Modified:
  head/www/mod_auth_kerb2/Makefile
  head/www/mod_auth_kerb2/files/patch-Makefile.in

Modified: head/www/mod_auth_kerb2/Makefile
==============================================================================
--- head/www/mod_auth_kerb2/Makefile	Tue Jun 17 18:39:34 2014	(r358158)
+++ head/www/mod_auth_kerb2/Makefile	Tue Jun 17 18:44:04 2014	(r358159)
@@ -39,6 +39,10 @@ CONFIGURE_ARGS+=	--with-krb5=${LOCALBASE
 post-patch:
 	${REINPLACE_CMD} -e 's|@APXS_STAGE@|-S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR}|' \
 		${WRKSRC}/Makefile.in
+.if !defined(HEIMDAL_HOME)
+	${REINPLACE_CMD} -e 's|@KRB5_LDFLAGS@|@KRB5_LDFLAGS@ -lgssapi_krb5|' \
+		${WRKSRC}/Makefile.in
+.endif
 
 pre-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}

Modified: head/www/mod_auth_kerb2/files/patch-Makefile.in
==============================================================================
--- head/www/mod_auth_kerb2/files/patch-Makefile.in	Tue Jun 17 18:39:34 2014	(r358158)
+++ head/www/mod_auth_kerb2/files/patch-Makefile.in	Tue Jun 17 18:44:04 2014	(r358159)
@@ -1,14 +1,11 @@
---- ./Makefile.in.orig	2008-12-02 15:07:10.000000000 +0100
-+++ ./Makefile.in	2014-03-09 17:54:19.000000000 +0100
-@@ -1,6 +1,7 @@
+--- Makefile.in.orig	2008-12-02 09:07:10.000000000 -0500
++++ Makefile.in	2014-06-17 14:09:26.000000000 -0400
+@@ -1,4 +1,5 @@
  APXS = @APXS@
-+APXS_STAGE=	@APXS_STAGE@
++APXS_STAGE = @APXS_STAGE@
  KRB5_CPPFLAGS = @KRB5_CPPFLAGS@
--KRB5_LDFLAGS = @KRB5_LDFLAGS@
-+KRB5_LDFLAGS = @KRB5_LDFLAGS@ -lgssapi_krb5
+ KRB5_LDFLAGS = @KRB5_LDFLAGS@
  KRB4_CPPFLAGS = @KRB4_CPPFLAGS@
- KRB4_LDFLAGS = @KRB4_LDFLAGS@
- LIB_resolv = @LIB_resolv@
 @@ -16,7 +17,7 @@
  	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c" "src/mod_auth_kerb.c"
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406171844.s5HIi58k033249>