<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fc7096823a2b439c9176d41aabb62c99a291a90f">https://github.com/macports/macports-ports/commit/fc7096823a2b439c9176d41aabb62c99a291a90f</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 fc7096823a2 KeePassXC: fix patch to compile on 10.7-10.9
</span>fc7096823a2 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit fc7096823a2b439c9176d41aabb62c99a291a90f
</span>Author: tenzap <fabstz-it@yahoo.fr>
AuthorDate: Mon Nov 15 17:46:43 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    KeePassXC: fix patch to compile on 10.7-10.9
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    For now, on the official builders of 10.7 to 10.9 it still didn't build.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    I noticed the official builder of 10.9 has SDK=10.9 but it seems to
</span><span style='display:block; white-space:pre;color:#404040;'>    actually use 10.10 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    replace `defined MAC_OS_X_VERSION_*` by `MAC_OS_X_VERSION_MIN_REQUIRED >=`
</span>---
 security/KeePassXC/files/patch-old-mac.diff | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/KeePassXC/files/patch-old-mac.diff b/security/KeePassXC/files/patch-old-mac.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 7321039acda..757ef8b5a1f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/KeePassXC/files/patch-old-mac.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/KeePassXC/files/patch-old-mac.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,7 +33,7 @@ error: property 'button' not found on object of type 'NSStatusItem *'
</span>  //
  - (bool) isStatusBarDark
  {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if __clang_major__ >= 9 && defined MAC_OS_X_VERSION_10_10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __clang_major__ >= 9 && MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
</span>      if (@available(macOS 10.17, *)) {
          // This is an ugly hack, but I couldn't find a way to access QTrayIcon's NSStatusItem.
          NSStatusItem* dummy = [[NSStatusBar systemStatusBar] statusItemWithLength:0];
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,7 +62,7 @@ error: use of undeclared identifier 'AXIsProcessTrustedWithOptions'
</span> -    // Request accessibility permissions for Auto-Type type on behalf of the user
 -    NSDictionary* opts = @{static_cast<id>(kAXTrustedCheckOptionPrompt): @YES};
 -    return AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef>(opts));
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if __clang_major__ >= 9 && defined MAC_OS_X_VERSION_10_9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __clang_major__ >= 9 && MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
</span> +    if (@available(macOS 10.15, *)) {
 +        // Request accessibility permissions for Auto-Type type on behalf of the user
 +        NSDictionary* opts = @{static_cast<id>(kAXTrustedCheckOptionPrompt): @YES};
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -91,7 +91,7 @@ error: unknown type name 'CGDisplayStreamRef'
</span>  //
  - (bool) enableScreenRecording
  {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if __clang_major__ >= 9 && defined MAC_OS_X_VERSION_10_8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if __clang_major__ >= 9 && MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
</span>      if (@available(macOS 10.15, *)) {
          // Request screen recording permission on macOS 10.15+
          // This is necessary to get the current window title
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -164,7 +164,7 @@ Subject: [PATCH] Fix compilation when osx <= 10.7
</span>  #include <QStandardPaths>
  #include <QTimer>
  
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if defined MAC_OS_X_VERSION_10_8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
</span>  #include <CoreGraphics/CGEventSource.h>
 -
 +#endif
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -175,7 +175,7 @@ Subject: [PATCH] Fix compilation when osx <= 10.7
</span>  
  bool MacUtils::isCapslockEnabled()
  {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if defined MAC_OS_X_VERSION_10_8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
</span>      return (CGEventSourceFlagsState(kCGEventSourceStateHIDSystemState) & kCGEventFlagMaskAlphaShift) != 0;
 +#else
 +      return false;
</pre><pre style='margin:0'>

</pre>