Bug 185236 - security/cyrus-sasl2-gssapi requires HEIMDAL_HOME variable for compilation
Summary: security/cyrus-sasl2-gssapi requires HEIMDAL_HOME variable for compilation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-27 19:40 UTC by dewayne
Modified: 2013-12-29 12:33 UTC (History)
0 users

See Also:


Attachments
file.diff (894 bytes, patch)
2013-12-27 19:40 UTC, dewayne
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2013-12-27 19:40:00 UTC
Using security/heimdal, this port fails to compile when HEIMDAL_HOME variable differs from PREFIX.  [For example when placing heimdal in same location as the base heimdal; of course the base heimdal isn't built/installed ;) ]

From configure output:
configure: WARNING: Disabling GSSAPI - specified library not found
checking GSSAPI... disabled

resulting in:
cd /var/ports/usr/ports/security/cyrus-sasl2-gssapi/work/cyrus-sasl-2.1.26/plugins && /usr/bin/make
===>  Staging for cyrus-sasl-gssapi-2.1.26
===>   Generating temporary packing list
test -z "/usr/local/lib/sasl2" || /bin/mkdir -p "/usr/staging/usr/local/lib/sasl2"
====> Compressing man pages (compress-man)
===>  Building package for cyrus-sasl-gssapi-2.1.26
tar: lib/sasl2/libgssapiv2.a: Cannot stat: No such file or directory
tar: lib/sasl2/libgssapiv2.la: Cannot stat: No such file or directory
tar: lib/sasl2/libgssapiv2.so: Cannot stat: No such file or directory
tar: lib/sasl2/libgssapiv2.so.3: Cannot stat: No such file or directory
tar: lib/sasl2/libgs2.a: Cannot stat: No such file or directory
tar: lib/sasl2/libgs2.la: Cannot stat: No such file or directory
tar: lib/sasl2/libgs2.so: Cannot stat: No such file or directory
tar: lib/sasl2/libgs2.so.3: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256

How-To-Repeat: cd /usr/ports/security/cyrus-sasl2-gssapi/ 
setenv HEIMDAL_HOME /usr 
make package
Comment 1 Edwin Groothuis freebsd_committer 2013-12-27 19:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ume

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2013-12-29 12:29:28 UTC
Author: ume
Date: Sun Dec 29 12:29:21 2013
New Revision: 337973
URL: http://svnweb.freebsd.org/changeset/ports/337973

Log:
  Respect HEIMDAL_HOME / KRB5_HOME.
  
  PR:		ports/185236
  Submitted by:	Dewayne <dewayne__at__heuristicsystems.com.au> (partly)

Modified:
  head/security/cyrus-sasl2-gssapi/Makefile

Modified: head/security/cyrus-sasl2-gssapi/Makefile
==============================================================================
--- head/security/cyrus-sasl2-gssapi/Makefile	Sun Dec 29 12:27:20 2013	(r337972)
+++ head/security/cyrus-sasl2-gssapi/Makefile	Sun Dec 29 12:29:21 2013	(r337973)
@@ -51,20 +51,28 @@ OPTIONS_DEFAULT=	BASE
 BASE_DESC=		Use Heimdal in base
 BASE_CONFIGURE_ENABLE=	gssapi
 HEIMDAL_DESC=		Use Heimdal from ports
-HEIMDAL_CONFIGURE_ON=	--enable-gssapi=${PREFIX} --with-gss_impl=heimdal
-HEIMDAL_BUILD_DEPENDS=	${PREFIX}/lib/libgssapi.so:${PORTSDIR}/security/heimdal
+HEIMDAL_CONFIGURE_ON=	--enable-gssapi=${HEIMDAL_HOME} \
+			--with-gss_impl=heimdal
+HEIMDAL_BUILD_DEPENDS=	${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal
 HEIMDAL_RUN_DEPENDS=	${HEIMDAL_BUILD_DEPENDS}
-HEIMDAL_LDFLAGS=	"-R${PREFIX}/lib"
+HEIMDAL_LDFLAGS=	"-R${HEIMDAL_HOME}/lib"
 MIT_DESC=		Use MIT Kerberos V5
-MIT_CONFIGURE_ON=	--enable-gssapi=${PREFIX} --with-gss_impl=mit
+MIT_CONFIGURE_ON=	--enable-gssapi=${KRB5_HOME} --with-gss_impl=mit
 MIT_LIB_DEPENDS=	libkrb5support.so:${PORTSDIR}/security/krb5
-MIT_LDFLAGS=		"-R${PREFIX}/lib"
+MIT_LDFLAGS=		"-R${KRB5_HOME}/lib"
 
 PLIST_FILES=	lib/sasl2/libgssapiv2.a \
 		lib/sasl2/libgssapiv2.la \
 		lib/sasl2/libgssapiv2.so \
 		lib/sasl2/libgssapiv2.so.3
 
+.if !defined(HEIMDAL_HOME)
+HEIMDAL_HOME=	${PREFIX}
+.endif
+.if !defined(KRB5_HOME)
+KRB5_HOME=	${PREFIX}
+.endif
+
 .include <bsd.port.pre.mk>
 
 .if ${PORT_OPTIONS:MHEIMDAL}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Hajimu UMEMOTO freebsd_committer 2013-12-29 12:32:06 UTC
State Changed
From-To: open->closed

Thanks, committed!