<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/864cdf2f295e5f547692d07e8bf00d980e9afc3f">https://github.com/macports/macports-ports/commit/864cdf2f295e5f547692d07e8bf00d980e9afc3f</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 864cdf2f295 qt6-qtbase: allow building on macOS 10.14
</span>864cdf2f295 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 864cdf2f295e5f547692d07e8bf00d980e9afc3f
</span>Author: Christopher Chavez <chrischavez@gmx.us>
AuthorDate: Thu Mar 31 13:33:42 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> qt6-qtbase: allow building on macOS 10.14
</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/64345
</span>---
aqua/qt6/Portfile | 11 ++++-------
aqua/qt6/files/patch-macos-10.14-sdk.diff | 16 ++++++++++++++++
2 files changed, 20 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt6/Portfile b/aqua/qt6/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5bd03746663..acff3a2a7be 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -492,13 +492,6 @@ if { ${os.major} < 18 } {
</span> ui_error "${subport} requires macOS 10.14 or later"
return -code error "incompatible OS version"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} elseif { ${os.major} == 18 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # https://trac.macports.org/ticket/64345
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- known_fail yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-fetch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${subport} is currently broken on macOS 10.14, see https://trac.macports.org/ticket/64345"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible OS version"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span> }
foreach {module module_info} [array get modules] {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -585,6 +578,10 @@ foreach {module module_info} [array get modules] {
</span> # see https://trac.macports.org/ticket/63805#comment:13
patchfiles-append patch-sdk-no-stderr.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Allow building with macOS 10.14 SDK
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/ticket/64345
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-macos-10.14-sdk.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #-----------------------------------------------------------------------------
# qtbase is used for:
# 1) building qtbase
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt6/files/patch-macos-10.14-sdk.diff b/aqua/qt6/files/patch-macos-10.14-sdk.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..158b9f48094
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt6/files/patch-macos-10.14-sdk.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;'>+Allow building with macOS 10.14 SDK (will still warn about
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"Instance method '-charactersByApplyingModifiers' unknown")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Upstream-Status: Inappropriate [violates DRY]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/gui/platform/darwin/qapplekeymapper.mm.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/gui/platform/darwin/qapplekeymapper.mm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -528,7 +528,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // we first run the event through the Carbon APIs and then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // compare the results to Cocoa.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ auto cocoaModifiers = toCocoaModifiers(qtModifiers);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- auto *charactersWithModifiers = [NSApp.currentEvent charactersByApplyingModifiers:cocoaModifiers];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ NSString *charactersWithModifiers = [NSApp.currentEvent charactersByApplyingModifiers:cocoaModifiers];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QChar cocoaUnicodeKey;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (charactersWithModifiers.length > 0)
</span></pre><pre style='margin:0'>
</pre>