<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/14b99fa3f3f547f41d182a009746ae9237c7107d">https://github.com/macports/macports-ports/commit/14b99fa3f3f547f41d182a009746ae9237c7107d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 14b99fa3f3f547f41d182a009746ae9237c7107d
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Oct 26 20:44:55 2019 -0700

<span style='display:block; white-space:pre;color:#404040;'>    webkit2-gtk: fix build with clang-9.0
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    patch a name collision with Handle that manifests
</span><span style='display:block; white-space:pre;color:#404040;'>    against MacTypes.h but only with clang-9.0
</span>---
 www/webkit2-gtk/Portfile                                    |  9 +++------
 ...t2gtk-source-javascriptcore-tools-jsdollarvm-handle.diff | 13 +++++++++++++
 2 files changed, 16 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/webkit2-gtk/Portfile b/www/webkit2-gtk/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 80ffa4d..b011fbd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/webkit2-gtk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/webkit2-gtk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -79,6 +79,9 @@ depends_lib-append  port:atk \
</span> # 5. change some int64_t to gint64 to stop typedef errors in gstreamer
 patchfiles-append   patch-webkit2gtk-macports.diff
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# fix name collision that breaks build with clang-9.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   patch-webkit2gtk-source-javascriptcore-tools-jsdollarvm-handle.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # enable Netscape plugin architecture on macOS
 # or can be explicitly disabled with the following addition if preferred
 # configure.args-append -DENABLE_NETSCAPE_PLUGIN_API=OFF
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -152,12 +155,6 @@ variant minibrowser description {Build and install MiniBrowser (for testing)} {
</span> # the above code presently builds as-in on 10.13 and up
 if {${os.platform} eq "darwin" && ${os.major} <= 16} {
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # the only compiler I know that works here is macports-clang-5.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # macports-clang-9.0 does not work. There may be others in between that work.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # to be discovered as time allows. Input appreciated from interested parties.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # the first generated error is a name collision with MacTypes.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    compiler.whitelist      macports-clang-5.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span>     # build of bmalloc fails up to 10.12 https://trac.macports.org/ticket/59447
     configure.args-replace -DUSE_SYSTEM_MALLOC=OFF -DUSE_SYSTEM_MALLOC=ON
     patchfiles-append       patch-ramsize.diff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/webkit2-gtk/files/patch-webkit2gtk-source-javascriptcore-tools-jsdollarvm-handle.diff b/www/webkit2-gtk/files/patch-webkit2gtk-source-javascriptcore-tools-jsdollarvm-handle.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..d4dffb6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/webkit2-gtk/files/patch-webkit2gtk-source-javascriptcore-tools-jsdollarvm-handle.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git Source/JavaScriptCore/tools/JSDollarVM.cpp Source/JavaScriptCore/tools/JSDollarVM.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 92ffb85b..481763fa 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Source/JavaScriptCore/tools/JSDollarVM.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/JavaScriptCore/tools/JSDollarVM.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -179,7 +179,7 @@ private:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class ElementHandleOwner : public WeakHandleOwner {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     WTF_MAKE_FAST_ALLOCATED;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    bool isReachableFromOpaqueRoots(Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor, const char** reason) override
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor, const char** reason) override
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         if (UNLIKELY(reason))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             *reason = "JSC::Element is opaque root";
</span></pre><pre style='margin:0'>

</pre>