https://github.com/python/cpython/commit/46545d3244f341fb341a8b0bbc39583a7a6a16ee
commit: 46545d3244f341fb341a8b0bbc39583a7a6a16ee
branch: 3.12
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: ned-deily <n...@python.org>
date: 2024-06-01T20:23:05Z
summary:

[3.12] gh-116145: Update macOS installer to Tcl/Tk 8.6.14 (GH-116151) 
(GH-119922)

(cherry picked from commit 4fa95c6ec392b9fc80ad720cc4a8bd2786fc2835)
Co-authored-by: Christopher Chavez <chrischa...@gmx.us>

files:
A Misc/NEWS.d/next/macOS/2024-02-29-20-52-23.gh-issue-116145.ygafim.rst
D Mac/BuildScript/backport_gh92603_fix.patch
M Mac/BuildScript/build-installer.py

diff --git a/Mac/BuildScript/backport_gh92603_fix.patch 
b/Mac/BuildScript/backport_gh92603_fix.patch
deleted file mode 100644
index 9a37b029650340..00000000000000
--- a/Mac/BuildScript/backport_gh92603_fix.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-Accepted upstream for release in Tk 8.6.14:
-https://core.tcl-lang.org/tk/info/cf3830280b
-
---- tk8.6.13/macosx/tkMacOSXWindowEvent.c.orig
-+++ tk8.6.13-patched/macosx/tkMacOSXWindowEvent.c
-@@ -239,8 +239,8 @@ extern NSString *NSWindowDidOrderOffScreenNotification;
-     if (winPtr) {
-       TKContentView *view = [window contentView];
- 
--#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101500
--      if (@available(macOS 10.15, *)) {
-+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
-+      if (@available(macOS 10.14, *)) {
-           [view viewDidChangeEffectiveAppearance];
-       }
- #endif
-@@ -1237,29 +1237,8 @@ static const char *const accentNames[] = {
-     } else if (effectiveAppearanceName == NSAppearanceNameDarkAqua) {
-       TkSendVirtualEvent(tkwin, "DarkAqua", NULL);
-     }
--    if ([NSApp macOSVersion] < 101500) {
--
--      /*
--       * Mojave cannot handle the KVO shenanigans that we need for the
--       * highlight and accent color notifications.
--       */
--
--      return;
--    }
-     if (!defaultColor) {
-       defaultColor = [NSApp macOSVersion] < 110000 ? "Blue" : "Multicolor";
--      preferences = [[NSUserDefaults standardUserDefaults] retain];
--
--      /*
--       * AppKit calls this method when the user changes the Accent Color
--       * but not when the user changes the Highlight Color.  So we register
--       * to receive KVO notifications for Highlight Color as well.
--       */
--
--      [preferences addObserver:self
--                    forKeyPath:@"AppleHighlightColor"
--                       options:NSKeyValueObservingOptionNew
--                       context:NULL];
-     }
-     NSString *accent = [preferences stringForKey:@"AppleAccentColor"];
-     NSArray *words = [[preferences stringForKey:@"AppleHighlightColor"]
---- tk8.6.13/macosx/tkMacOSXWm.c.orig
-+++ tk8.6.13-patched/macosx/tkMacOSXWm.c
-@@ -1289,6 +1289,11 @@ TkWmDeadWindow(
-           [NSApp _setMainWindow:nil];
-       }
-       [deadNSWindow close];
-+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
-+      NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults];
-+      [preferences removeObserver:deadNSWindow.contentView
-+                    forKeyPath:@"AppleHighlightColor"];
-+#endif
-       [deadNSWindow release];
- 
- #if DEBUG_ZOMBIES > 1
-@@ -6763,6 +6768,21 @@ TkMacOSXMakeRealWindowExist(
-     }
-     TKContentView *contentView = [[TKContentView alloc]
-                                    initWithFrame:NSZeroRect];
-+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
-+    NSUserDefaults *preferences = [NSUserDefaults standardUserDefaults];
-+
-+    /*
-+     * AppKit calls the viewDidChangeEffectiveAppearance method when the
-+     * user changes the Accent Color but not when the user changes the
-+     * Highlight Color.  So we register to receive KVO notifications for
-+     * Highlight Color as well.
-+     */
-+
-+    [preferences addObserver:contentView
-+                forKeyPath:@"AppleHighlightColor"
-+                   options:NSKeyValueObservingOptionNew
-+                   context:NULL];
-+#endif
-     [window setContentView:contentView];
-     [contentView release];
-     [window setDelegate:NSApp];
diff --git a/Mac/BuildScript/build-installer.py 
b/Mac/BuildScript/build-installer.py
index e907e9b7f5e9d5..d24cb76fd48045 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -264,11 +264,11 @@ def library_recipes():
             tk_patches = ['backport_gh71383_fix.patch', 
'tk868_on_10_8_10_9.patch', 'backport_gh110950_fix.patch']
 
         else:
-            tcl_tk_ver='8.6.13'
-            
tcl_checksum='43a1fae7412f61ff11de2cfd05d28cfc3a73762f354a417c62370a54e2caf066'
+            tcl_tk_ver='8.6.14'
+            
tcl_checksum='5880225babf7954c58d4fb0f5cf6279104ce1cd6aa9b71e9a6322540e1c4de66'
 
-            
tk_checksum='2e65fa069a23365440a3c56c556b8673b5e32a283800d8d9b257e3f584ce0675'
-            tk_patches = ['backport_gh92603_fix.patch', 
'backport_gh71383_fix.patch', 'backport_gh110950_fix.patch']
+            
tk_checksum='8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94'
+            tk_patches = []
 
 
         base_url = 
"https://prdownloads.sourceforge.net/tcl/{what}{version}-src.tar.gz";
diff --git 
a/Misc/NEWS.d/next/macOS/2024-02-29-20-52-23.gh-issue-116145.ygafim.rst 
b/Misc/NEWS.d/next/macOS/2024-02-29-20-52-23.gh-issue-116145.ygafim.rst
new file mode 100644
index 00000000000000..bc0a2e09dde1bb
--- /dev/null
+++ b/Misc/NEWS.d/next/macOS/2024-02-29-20-52-23.gh-issue-116145.ygafim.rst
@@ -0,0 +1 @@
+Update macOS installer to Tcl/Tk 8.6.14.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to