<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/4862ed3d5c5634a964e1289e3e3822ebf0b46ebf">https://github.com/macports/macports-ports/commit/4862ed3d5c5634a964e1289e3e3822ebf0b46ebf</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4862ed3d5c5634a964e1289e3e3822ebf0b46ebf
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Nov 17 12:40:07 2019 -0600

<span style='display:block; white-space:pre;color:#404040;'>    mongo-c-driver: Prevent overlinking to libmongoc
</span>---
 devel/mongo-c-driver/Portfile                |  5 ++++-
 devel/mongo-c-driver/files/overlinking.patch | 28 ++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mongo-c-driver/Portfile b/devel/mongo-c-driver/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3e25d4a..89e4a09 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/mongo-c-driver/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/mongo-c-driver/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,7 @@ configure.args-append \
</span>                     -DENABLE_UNINSTALL=OFF
 
 if {${subport} eq ${name}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    revision        0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    revision        1
</span> 
     categories-append \
                     databases
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,6 +45,9 @@ if {${subport} eq ${name}} {
</span>                     port:snappy \
                     port:zlib
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    overlinking.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     configure.args-append \
                     -DENABLE_BSON=SYSTEM \
                     -DENABLE_ICU=ON \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mongo-c-driver/files/overlinking.patch b/devel/mongo-c-driver/files/overlinking.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..d9d56f8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/mongo-c-driver/files/overlinking.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Prevent libraries that use cmake to find libmongoc from being overlinked.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://jira.mongodb.org/browse/CDRIVER-3431
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/libmongoc/build/cmake/libmongoc-1.0-config.cmake.in.orig   2019-11-06 17:21:28.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/libmongoc/build/cmake/libmongoc-1.0-config.cmake.in        2019-11-17 12:10:45.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,23 +31,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_library (MONGOC_LIBRARY mongoc-1.0 PATHS "@PACKAGE_LIBRARY_INSTALL_DIRS@" NO_DEFAULT_PATH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (MONGOC_LIBRARIES ${MONGOC_LIBRARY} ${BSON_LIBRARIES})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# If this file is generated by the Autotools on Mac, SSL_LIBRARIES might be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# "-framework CoreFoundation -framework Security". Split into a CMake array
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# like "-framework CoreFoundation;-framework Security".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set (IS_FRAMEWORK_VAR 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-foreach (LIB
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-   @SASL_LIBRARIES@ @SSL_LIBRARIES@ @SHM_LIBRARIES@ @RESOLV_LIBRARIES@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-   @SNAPPY_LIBRARIES@ @ICU_LIBRARIES@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-   if (LIB STREQUAL "-framework")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-      set (IS_FRAMEWORK_VAR 1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-      continue ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-   elseif (IS_FRAMEWORK_VAR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-      list (APPEND MONGOC_LIBRARIES "-framework ${LIB}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-      set (IS_FRAMEWORK_VAR 0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-   else ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-      list (APPEND MONGOC_LIBRARIES ${LIB})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-   endif ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endforeach ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set (MONGOC_DEFINITIONS ${BSON_DEFINITIONS})
</span></pre><pre style='margin:0'>

</pre>