<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dc647d37dfcc3ec4c502e498d95660127a67d2d7">https://github.com/macports/macports-ports/commit/dc647d37dfcc3ec4c502e498d95660127a67d2d7</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 dc647d37dfc lib2geom: blacklist xcode clang 10.x
</span>dc647d37dfc is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dc647d37dfcc3ec4c502e498d95660127a67d2d7
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Fri Aug 25 12:16:02 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> lib2geom: blacklist xcode clang 10.x
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes: https://trac.macports.org/ticket/68036
</span>---
graphics/lib2geom/Portfile | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/lib2geom/Portfile b/graphics/lib2geom/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 028fb7b5591..d7c58683525 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/lib2geom/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/lib2geom/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span> PortGroup gitlab 1.0
PortGroup cmake 1.1
PortGroup boost 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span>
gitlab.setup inkscape lib2geom 1.3
revision 1
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,6 +49,27 @@ depends_lib-append \
</span> # C++17 is required
compiler.cxx_standard 2017
<span style='display:block; white-space:pre;background:#e0ffe0;'>+#--------------------------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Xcode Clang 10.x is based on LLVM 6.x. And it does not include an upstream fix, for the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# following (valid) scenario involving templates:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# MyTemplate(some_arg);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# It can be sidestepped, by explicitly declaring a variable of that template type:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# MyTemplate myVar(some_arg);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# But since this is an LLVM 6.x bug - and one that was ultimately fixed, after Xcode 10.x was
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# released - it arguably shouldn't be necessary.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The specific compilation error for this scenario is:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# error: cannot use parentheses when declaring variable with deduced class template specialization type
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# See: https://trac.macports.org/ticket/68036
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#--------------------------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {clang >= 1000 < 1100}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Need no-invalid-constexpr for v1.3. Remove if/when fixed in future.
if { [string match *clang* ${configure.compiler}] } {
configure.cxxflags-append \
</pre><pre style='margin:0'>
</pre>