<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1cd87b5e3190bbf12e86a66bd678a6d1811eb8ab">https://github.com/macports/macports-ports/commit/1cd87b5e3190bbf12e86a66bd678a6d1811eb8ab</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 1cd87b5 mongodb: Fix build failure on OS X 10.11
</span>1cd87b5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 1cd87b5e3190bbf12e86a66bd678a6d1811eb8ab
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Oct 25 23:40:20 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> mongodb: Fix build failure on OS X 10.11
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Use the 10.12 SDK on OS X 10.11 to get the prototypes of some security
</span><span style='display:block; white-space:pre;color:#404040;'> framework functions that are part of 10.11 but which were not in the
</span><span style='display:block; white-space:pre;color:#404040;'> 10.11 SDK headers.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/57348
</span>---
databases/mongodb/Portfile | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mongodb/Portfile b/databases/mongodb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8308f4c..39f2efb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/mongodb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mongodb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,7 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup active_variants 1.1
</span> PortGroup compiler_blacklist_versions 1.0
PortGroup conflicts_build 1.0
PortGroup xcodeversion 1.0
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,7 +46,7 @@ patchfiles-append case-sensitive.patch
</span> use_configure no
# mongodb 3.0.5 and later requires C++11. Forcing the use of libc++ is
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# acceptable because mongodb already requires OS X 10.7 or later, so we
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# acceptable because mongodb already requires Mac OS X 10.7 or later, so we
</span> # know libc++ is available; mongodb doesn't provide any libraries for
# other ports to use; and the only C++ libraries mongodb uses (boost,
# pcre, snappy) are bundled.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,12 +59,27 @@ compiler.blacklist-append *gcc* {clang < 802.0.42} macports-clang-3.3 macports-c
</span> # TODO: fix me
conflicts_build libbson mongo-c-driver mongo-cxx-driver
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# When targeting Mac OS X 10.7, mongodb needs at least the 10.8 SDK, which is in Xcode 4.4:
</span> # https://jira.mongodb.org/browse/SERVER-20320
<span style='display:block; white-space:pre;background:#ffe0e0;'>-minimum_xcodeversions {11 4.4}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+minimum_xcodeversions-append {11 4.4}
</span> if {[vercmp ${configure.sdk_version} 10.8] < 0} {
configure.sdk_version 10.8
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# When targeting OS X 10.11, mongodb needs at least the 10.12 SDK, which is in Xcode 8:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://jira.mongodb.org/browse/SERVER-37640
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+minimum_xcodeversions-append {15 8}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[vercmp ${macosx_deployment_target} 10.11] >= 0 && [vercmp ${configure.sdk_version} 10.12] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.sdk_version 10.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # We don't require the ld64 port, but if it is installed, it must defer to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Xcode to be new enough to understand the newer SDK, otherwise:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ld: unexpected token: !tapi-tbd-v2 file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # See https://trac.macports.org/ticket/53784
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # And require_active_variants doesn't work unless a dependency is declared.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:ld64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ require_active_variants ld64 ld64_xcode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.cflags {*}${configure.cc_archflags}
configure.ldflags {*}${configure.ld_archflags}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -120,8 +136,8 @@ if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span> depends_build
depends_lib
pre-fetch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} @${version} requires OS X 10.7 or greater."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible OS X version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} @${version} requires Mac OS X 10.7 or greater."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "incompatible Mac OS X version"
</span> }
}
</pre><pre style='margin:0'>
</pre>