Skip to content
Permalink
Browse files

py-gssapi: use kerberos5 on 10.8 and earlier, fixes https://trac.macp…

  • Loading branch information
tobypeterson committed Jun 28, 2020
1 parent ab91419 commit 90a5ad1ed001099d9f65179c18c420f0497d8cc9
Showing with 15 additions and 2 deletions.
  1. +4 −2 python/py-gssapi/Portfile
  2. +11 −0 python/py-gssapi/files/patch-setup.py.diff
@@ -23,14 +23,16 @@ checksums rmd160 687119622b3813fad7c26f8bd22a8e8bb3ccc4ed \

python.versions 38

patchfiles patch-setup.py.diff

if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools \
port:py${python.version}-cython
depends_lib-append port:py${python.version}-decorator \
port:py${python.version}-six

# Uses GSS.framework on macOS >= 10.7
if {${os.platform} eq "darwin" && ${os.major} < 11} {
# Uses GSS.framework on macOS >= 10.9
if {${os.platform} eq "darwin" && ${os.major} < 13} {
depends_lib-append port:kerberos5
}

@@ -0,0 +1,11 @@
--- setup.py.orig 2020-06-28 02:08:48.000000000 -0700
+++ setup.py 2020-06-28 02:08:59.000000000 -0700
@@ -45,7 +45,7 @@
osx_has_gss_framework = False
if sys.platform == 'darwin':
mac_ver = [int(v) for v in platform.mac_ver()[0].split('.')]
- osx_has_gss_framework = (mac_ver >= [10, 7, 0])
+ osx_has_gss_framework = (mac_ver >= [10, 9, 0])

winkrb_path = None
if os.name == 'nt':

0 comments on commit 90a5ad1

Please sign in to comment.
You can’t perform that action at this time.