<pre style='margin:0'>
Michael Dickens (michaelld) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5f408821a95b32e210277cc42bf84dc8d2a1abf5">https://github.com/macports/macports-ports/commit/5f408821a95b32e210277cc42bf84dc8d2a1abf5</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5f408821a95b32e210277cc42bf84dc8d2a1abf5
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Nov 23 11:03:04 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> cmake: ignore linker warnings in feature tests
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> When attempting to build a 32-bit binary on macOS 10.13, the linker
</span><span style='display:block; white-space:pre;color:#404040;'> issues a deprecation warning.
</span><span style='display:block; white-space:pre;color:#404040;'> This causes the feature test (and the build) to fail.
</span>---
devel/cmake/Portfile | 6 ++++--
devel/cmake/files/patch-fix-feature-test.devel.diff | 11 +++++++++++
devel/cmake/files/patch-fix-feature-test.release.diff | 11 +++++++++++
3 files changed, 26 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cmake/Portfile b/devel/cmake/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ed56a89..14ca9da 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/cmake/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/cmake/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -67,7 +67,8 @@ if {${subport} eq ${name}} {
</span> patch-CMakeFindFrameworks.cmake.release.diff \
patch-Source_Modules_FindLibUV.cmake.release.diff \
patch-fix_cxx14_17_checks.release.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-fix-system-prefix-path.release.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-fix-system-prefix-path.release.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-fix-feature-test.release.diff
</span>
livecheck.type regex
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -100,7 +101,8 @@ if {${subport} eq ${name}} {
</span> patch-Source_Modules_FindLibUV.cmake.devel.diff \
patch-fix_cxx14_17_checks.devel.diff \
patch-fix-system-prefix-path.devel.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-cmake-libuv.tiger.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-cmake-libuv.tiger.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-fix-feature-test.devel.diff
</span>
livecheck.type regex
livecheck.regex data-clipboard-text=\"(\[0-9a-g\]+)\"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cmake/files/patch-fix-feature-test.devel.diff b/devel/cmake/files/patch-fix-feature-test.devel.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e2feeb0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/cmake/files/patch-fix-feature-test.devel.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Source/Checks/cm_cxx_features.cmake.orig 2019-10-30 07:00:09.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/Checks/cm_cxx_features.cmake 2019-11-21 03:20:17.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,6 +26,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(REGEX REPLACE "[^\n]*warning:[^\n]*sprintf\\(\\) is often misused, please use snprintf[^\n]*" "" check_output "${check_output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Filter out xcodebuild warnings.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # Filter out ld warnings.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REGEX REPLACE "[^\n]*ld: warning: [^\n]*" "" check_output "${check_output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If using the feature causes warnings, treat it as broken/unavailable.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(check_output MATCHES "(^|[ :])[Ww][Aa][Rr][Nn][Ii][Nn][Gg]")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cmake/files/patch-fix-feature-test.release.diff b/devel/cmake/files/patch-fix-feature-test.release.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e2feeb0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/cmake/files/patch-fix-feature-test.release.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Source/Checks/cm_cxx_features.cmake.orig 2019-10-30 07:00:09.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/Checks/cm_cxx_features.cmake 2019-11-21 03:20:17.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -26,6 +26,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(REGEX REPLACE "[^\n]*warning:[^\n]*sprintf\\(\\) is often misused, please use snprintf[^\n]*" "" check_output "${check_output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Filter out xcodebuild warnings.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ # Filter out ld warnings.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ string(REGEX REPLACE "[^\n]*ld: warning: [^\n]*" "" check_output "${check_output}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If using the feature causes warnings, treat it as broken/unavailable.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(check_output MATCHES "(^|[ :])[Ww][Aa][Rr][Nn][Ii][Nn][Gg]")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE)
</span></pre><pre style='margin:0'>
</pre>