Bug 246591

Summary: dns/bind916 Fails to build if option GSSAPI_HEIMDAL is set
Product: Ports & Packages Reporter: epopen
Component: Individual Port(s)Assignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (mat)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Build report of portmaster none

Description epopen 2020-05-20 02:57:57 UTC
Created attachment 214675 [details]
Build report of portmaster

Hi All.

I encounter issue about build failed as below...
checking for GSSAPI library... looking in /usr/local/lib
checking gssapi.h usability... no
checking gssapi.h presence... no
checking for gssapi.h... no
checking gssapi/gssapi.h usability... no
checking gssapi/gssapi.h presence... no
checking for gssapi/gssapi.h... no
configure: error: gssapi.h not found
===>  Script "configure" failed unexpectedly.

Where option GSSAPI_HEIMDAL is set.

In my system..
1.Ports "security/heimdal" was ready.
2./etc/make.conf configure added as below.
  OPTIONS_SET+=GD GSSAPI_HEIMDAL

Today,I found example in /usr/ports/Mk/Uses/gssapi.mk as below
#   GSSAPI_HEIMDAL_USES=gssapi:heimdal
#   GSSAPI_HEIMDAL_CONFIGURE_ON= \
#   --with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}  

So I tried to modify Makefile as below
 GSSAPI_HEIMDAL_CONFIGURE_ON=    --with-gssapi=${GSSAPIBASEDIR} \
+               ${GSSAPI_CONFIGURE_ARGS}                                                                                                                                                
-               KRB5CONFIG="${KRB5CONFIG}"

Result: Build successful.
I have no idea about KRB5CONFIG="${KRB5CONFIG}"
Can help fix build fail issue?

Thanks all very much.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-08-26 13:32:48 UTC
A commit references this bug:

Author: mat
Date: Wed Aug 26 13:32:36 UTC 2020
New revision: 546285
URL: https://svnweb.freebsd.org/changeset/ports/546285

Log:
  Fix build with Heimdal.

  PR:		246591
  Submitted by:	epopen gmail com

Changes:
  head/dns/bind9-devel/Makefile
  head/dns/bind916/Makefile