diff options
author | hrs <hrs@FreeBSD.org> | 2015-09-19 05:02:21 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2015-09-19 05:02:21 +0800 |
commit | 680567cac6d3bad34e93f54eb8c4183f6bc9c7ac (patch) | |
tree | fd39bf415ba8fdc5621a4b2d433a7f05e2eb169d | |
parent | b90553060dcc864a2adfe2697767975e5b5eec91 (diff) | |
download | freebsd-ports-gnome-680567cac6d3bad34e93f54eb8c4183f6bc9c7ac.tar.gz freebsd-ports-gnome-680567cac6d3bad34e93f54eb8c4183f6bc9c7ac.tar.zst freebsd-ports-gnome-680567cac6d3bad34e93f54eb8c4183f6bc9c7ac.zip |
Add a fixup for broken krb5-config script included in 9.X
and some 10.X releases.
-rw-r--r-- | Mk/Uses/gssapi.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Mk/Uses/gssapi.mk b/Mk/Uses/gssapi.mk index 9c8d97a07a94..594117bc1536 100644 --- a/Mk/Uses/gssapi.mk +++ b/Mk/Uses/gssapi.mk @@ -79,6 +79,7 @@ _HEIMDAL_DEPENDS=${GSSAPILIBDIR}/libgssapi.so:${PORTSDIR}/security/heimdal _MITKRB5_DEPENDS=${GSSAPILIBDIR}/libkrb5support.so:${PORTSDIR}/security/krb5 _HEADERS= sys/types.h sys/stat.h stdint.h +.undef _FIXUP_KRB5CONFIG .if empty(gssapi_ARGS) gssapi_ARGS= base .endif @@ -93,6 +94,9 @@ _HEADERS+= gssapi/gssapi.h gssapi/gssapi_krb5.h krb5.h GSSAPICPPFLAGS= -I"${GSSAPIINCDIR}" GSSAPILIBS= -lkrb5 -lgssapi -lgssapi_krb5 GSSAPILDFLAGS= -L"${GSSAPILIBDIR}" +.if empty(OSREL:N9.*:N10.0]) +_FIXUP_KRB5CONFIG= yes +.endif .elif ${_local} == "heimdal" HEIMDAL_HOME?= ${LOCALBASE} GSSAPIBASEDIR= ${HEIMDAL_HOME} @@ -134,7 +138,18 @@ IGNORE= USES=gssapi - invalid args: [${_local}] specified .endif .endfor +# Fix up krb5-config if broken. This script included in 9.X prior to +# r271474 and in 10.X prior to r271473 are broken because +# libgssapi_krb5 for some interfaces of GSS-API is missing. +.if defined(_FIXUP_KRB5CONFIG) +KRB5CONFIG=${WRKDIR}/krb5-config +krb5config-fix:: + ${SED} -e 's,\$$lib_flags -lgssapi -lheimntlm,\$$lib_flags -lgssapi -lgssapi_krb5 -lheimntlm,' < ${GSSAPIBASEDIR}/bin/krb5-config > ${KRB5CONFIG} + ${CHMOD} a+rx ${KRB5CONFIG} +pre-configure: krb5config-fix +.else KRB5CONFIG=${GSSAPIBASEDIR}/bin/krb5-config +.endif # Fix up -Wl,-rpath in LDFLAGS .if defined(_RPATH) && !empty(_RPATH) |