Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2018 21:11:34 +0000 (UTC)
From:      "Bradley T. Hughes" <bhughes@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r476200 - head/security/py-gssapi/files
Message-ID:  <201808012111.w71LBYNp099389@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bhughes
Date: Wed Aug  1 21:11:34 2018
New Revision: 476200
URL: https://svnweb.freebsd.org/changeset/ports/476200

Log:
  security/py-gssapi: Fix builds against non-base GSSAPI
  
  Patch setup.py so location of krb5-config is configurable
  
  PR:		229639
  Submitted by:	john@saltant.com (maintainer)
  MFH:		2018Q3
  Sponsored by:	Miles AS

Added:
  head/security/py-gssapi/files/
  head/security/py-gssapi/files/patch-setup.py   (contents, props changed)

Added: head/security/py-gssapi/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/py-gssapi/files/patch-setup.py	Wed Aug  1 21:11:34 2018	(r476200)
@@ -0,0 +1,28 @@
+--- setup.py.orig	2018-04-06 18:43:07 UTC
++++ setup.py
+@@ -55,7 +55,7 @@ if link_args is None:
+     elif os.environ.get('MINGW_PREFIX'):
+         link_args = '-lgss'
+     else:
+-        link_args = get_output('krb5-config --libs gssapi')
++        link_args = get_output('%%KRB5CONFIG%% --libs gssapi')
+ 
+ if compile_args is None:
+     if osx_has_gss_framework:
+@@ -63,14 +63,14 @@ if compile_args is None:
+     elif os.environ.get('MINGW_PREFIX'):
+         compile_args = '-fPIC'
+     else:
+-        compile_args = get_output('krb5-config --cflags gssapi')
++        compile_args = get_output('%%KRB5CONFIG%% --cflags gssapi')
+ 
+ link_args = link_args.split()
+ compile_args = compile_args.split()
+ 
+ # add in the extra workarounds for different include structures
+ try:
+-    prefix = get_output('krb5-config gssapi --prefix')
++    prefix = get_output('%%KRB5CONFIG%% gssapi --prefix')
+ except Exception:
+     print("WARNING: couldn't find krb5-config; assuming prefix of %s"
+           % str(sys.prefix))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808012111.w71LBYNp099389>