Skip to content

Commit c540c4e

Browse files
committed
Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"
This reverts commit aa58050. Due to regressions found with using Tk 8.6.9.1, build the python.org macOS installers with Tcl/Tk 8.6.8 as used in previous releases.
1 parent 000b809 commit c540c4e

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

Mac/BuildScript/build-installer.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ def library_recipes():
225225
if internalTk():
226226
result.extend([
227227
dict(
228-
name="Tcl 8.6.9",
229-
url="ftp://ftp.tcl.tk/pub/tcl//tcl8_6/tcl8.6.9-src.tar.gz",
230-
checksum='aa0a121d95a0e7b73a036f26028538d4',
228+
name="Tcl 8.6.8",
229+
url="ftp://ftp.tcl.tk/pub/tcl//tcl8_6/tcl8.6.8-src.tar.gz",
230+
checksum='81656d3367af032e0ae6157eff134f89',
231231
buildDir="unix",
232232
configure_pre=[
233233
'--enable-shared',
@@ -241,9 +241,12 @@ def library_recipes():
241241
},
242242
),
243243
dict(
244-
name="Tk 8.6.9.1",
245-
url="ftp://ftp.tcl.tk/pub/tcl//tcl8_6/tk8.6.9.1-src.tar.gz",
246-
checksum='9efe3976468352dc894dae0c4e785a8e',
244+
name="Tk 8.6.8",
245+
url="ftp://ftp.tcl.tk/pub/tcl//tcl8_6/tk8.6.8-src.tar.gz",
246+
checksum='5e0faecba458ee1386078fb228d008ba',
247+
patches=[
248+
"tk868_on_10_8_10_9.patch",
249+
],
247250
buildDir="unix",
248251
configure_pre=[
249252
'--enable-aqua',
@@ -705,7 +708,6 @@ def extractArchive(builddir, archiveName):
705708
work for current Tcl and Tk source releases where the basename of
706709
the archive ends with "-src" but the uncompressed directory does not.
707710
For now, just special case Tcl and Tk tar.gz downloads.
708-
Another special case: the tk8.6.9.1 tarball extracts to tk8.6.9.
709711
"""
710712
curdir = os.getcwd()
711713
try:
@@ -715,8 +717,6 @@ def extractArchive(builddir, archiveName):
715717
if ((retval.startswith('tcl') or retval.startswith('tk'))
716718
and retval.endswith('-src')):
717719
retval = retval[:-4]
718-
if retval == 'tk8.6.9.1':
719-
retval = 'tk8.6.9'
720720
if os.path.exists(retval):
721721
shutil.rmtree(retval)
722722
fp = os.popen("tar zxf %s 2>&1"%(shellQuote(archiveName),), 'r')
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Fix build failure with +quartz variant on OS X 10.8 and 10.9.
2+
Even though Gestalt was deprecated in OS X 10.8, it should work fine
3+
through OS X 10.9, and its replacement NSOperatingSystemVersion was
4+
not introduced until OS X 10.10.
5+
6+
Patch from MacPorts project and reported upstream:
7+
https://trac.macports.org/ticket/55649
8+
--- tk8.6.8/macosx/tkMacOSXXStubs.c.orig 2017-12-06 09:25:08.000000000 -0600
9+
+++ tk8.6.8-patched/macosx/tkMacOSXXStubs.c 2018-01-06 19:34:17.000000000 -0600
10+
@@ -175,7 +175,7 @@
11+
{
12+
int major, minor, patch;
13+
14+
-#if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
15+
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 101000
16+
Gestalt(gestaltSystemVersionMajor, (SInt32*)&major);
17+
Gestalt(gestaltSystemVersionMinor, (SInt32*)&minor);
18+
Gestalt(gestaltSystemVersionBugFix, (SInt32*)&patch);

Misc/NEWS.d/next/macOS/2018-12-10-02-44-48.bpo-35402.xzn8qJ.rst

-1
This file was deleted.

0 commit comments

Comments
 (0)