Bug 246591 - dns/bind916 Fails to build if option GSSAPI_HEIMDAL is set
Summary: dns/bind916 Fails to build if option GSSAPI_HEIMDAL is set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-20 02:57 UTC by epopen
Modified: 2020-08-26 13:32 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
Build report of portmaster (24.56 KB, application/x-compressed-tar)
2020-05-20 02:57 UTC, epopen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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