Skip to content

Commit

Permalink
py-gssapi: use kerberos5 on 10.8 and earlier, fixes https://trac.macp…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobypeterson committed Jun 28, 2020
1 parent ab91419 commit 90a5ad1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/py-gssapi/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
11 changes: 11 additions & 0 deletions python/py-gssapi/files/patch-setup.py.diff
Original file line number Diff line number Diff line change
@@ -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.