<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/fa3a72cd60c9aed317559236f8ee1c53a50e73bc">https://github.com/macports/macports-ports/commit/fa3a72cd60c9aed317559236f8ee1c53a50e73bc</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 fa3a72cd60c qt5-qtwebkit: fix build with SDK 11+
</span>fa3a72cd60c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fa3a72cd60c9aed317559236f8ee1c53a50e73bc
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Mon Dec 14 23:11:09 2020 -0800
<span style='display:block; white-space:pre;color:#404040;'> qt5-qtwebkit: fix build with SDK 11+
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> there is a change in mach/i386/vm_param.h in the 11+ SDK
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> the older code in qt-webkit, circa 2014, does not expect this
</span><span style='display:block; white-space:pre;color:#404040;'> so we patch in the defines that are expected
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> this troublesome code block was later removed from webkit
</span><span style='display:block; white-space:pre;color:#404040;'> see https://github.com/WebKit/WebKit/commit/a8cad379ab37eb412c0b4fbd15a32db57e99fdbc
</span><span style='display:block; white-space:pre;color:#404040;'> so we can't use the official upstream fix for this
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> fixes build on BigSur+
</span>---
aqua/qt5/Portfile | 6 ++++++
aqua/qt5/files/patch-qtwebkit-FastMalloc.diff | 16 ++++++++++++++++
2 files changed, 22 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt5/Portfile b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 62aeec23edd..fc47cdb9424 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1469,6 +1469,12 @@ foreach {module module_info} [array get modules] {
</span> patchfiles-append patch-webkit_XPathGrammar.y.diff
patchfiles-append patch-webkit_makegrammar.pl.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # work around changed vm_param.h in MacOSX.sdk 11+ -- the older code in 2014-vintage qtwebkit expects
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # PAGE_SHIFT to be set to I386_PAGE_SHIFT when on x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the 11.0 + SDK defines that only if MAC_OS_X_VERSION_MIN_REQUIRED is < 101600 (to support arm64 after that)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} >= 20} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-qtwebkit-FastMalloc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# qtwebkit uses
# glx
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt5/files/patch-qtwebkit-FastMalloc.diff b/aqua/qt5/files/patch-qtwebkit-FastMalloc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b5f3fa8eacd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt5/files/patch-qtwebkit-FastMalloc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Source/WTF/wtf/FastMalloc.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/WTF/wtf/FastMalloc.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -628,7 +628,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // sense. In particular, if kMaxSize increases, you may have to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // increase kNumClasses as well.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if OS(DARWIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define K_PAGE_SHIFT PAGE_SHIFT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if CPU(X86_64)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define K_PAGE_SHIFT I386_PGSHIFT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define K_PAGE_SHIFT PAGE_SHIFT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if (K_PAGE_SHIFT == 12)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define K_NUM_CLASSES 68
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # elif (K_PAGE_SHIFT == 14)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>