Skip to content

Commit

Permalink
wscript_configure_system_mitkrb5: update to handle waf 2.0.4
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bokovoy <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
abbra authored and abartlet committed Sep 5, 2018
1 parent e58ca30 commit ef4b2d4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions wscript_configure_system_mitkrb5
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Logs, Options, sys
import sys
from waflib import Logs, Options

# Check for kerberos
have_gssapi=False
Expand Down Expand Up @@ -53,12 +54,12 @@ if conf.env.KRB5_CONFIG:
if 'gssapi_krb5' in conf.env['LIB_GSSAPI']:
krb5_define_syslib(conf, "gssapi_krb5", conf.env['LIB_GSSAPI'])

vendor = conf.cmd_and_log("%(path)s --vendor" % dict(path=conf.env.KRB5_CONFIG)
vendor = conf.cmd_and_log(conf.env.KRB5_CONFIG+['--vendor'])
conf.env.KRB5_VENDOR = vendor.strip().lower()
if conf.env.KRB5_VENDOR != 'heimdal':
conf.define('USING_SYSTEM_KRB5', 1)
del conf.env.HEIMDAL_KRB5_CONFIG
krb5_conf_version = conf.cmd_and_log("%(path)s --version" % dict(path=conf.env.KRB5_CONFIG)).strip()
krb5_conf_version = conf.cmd_and_log(conf.env.KRB5_CONFIG+['--version']).strip()

krb5_version = krb5_conf_version.split()[-1]

Expand Down Expand Up @@ -310,4 +311,4 @@ if conf.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
conf.DEFINE('MIT_KDC_PATH', '"' + Options.options.with_system_mitkdc + '"')
else:
conf.find_program('krb5kdc', path_list=kdc_path_list, var='MIT_KDC_BINARY', mandatory=True)
conf.DEFINE('MIT_KDC_PATH', '"' + conf.env.MIT_KDC_BINARY + '"')
conf.DEFINE('MIT_KDC_PATH', '"' + " ".join(conf.env.MIT_KDC_BINARY) + '"')

0 comments on commit ef4b2d4

Please sign in to comment.