Skip to content

Commit a26543c

Browse files
committed
Bumped Python version to 3.9.4.
1 parent a0cbd67 commit a26543c

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ BUILD_NUMBER=custom
3333
MACOSX_DEPLOYMENT_TARGET=10.8
3434

3535
# Version of packages that will be compiled by this meta-package
36-
PYTHON_VERSION=3.9.2
36+
PYTHON_VERSION=3.9.4
3737
PYTHON_VER=$(basename $(PYTHON_VERSION))
3838

3939
OPENSSL_VERSION_NUMBER=1.1.1

patch/Python/Python.patch

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ index 9e617afb00..41305298d3 100644
753753
return f'{userbase}/lib/python{version[0]}.{version[1]}/site-packages'
754754

755755
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
756-
index ddf1128fdd..a8ade2456d 100644
756+
index 0311e3a1f8..ca01e9aa16 100644
757757
--- a/Lib/subprocess.py
758758
+++ b/Lib/subprocess.py
759759
@@ -762,6 +762,9 @@
@@ -766,7 +766,7 @@ index ddf1128fdd..a8ade2456d 100644
766766
_cleanup()
767767
# Held while anything is calling waitpid before returncode has been
768768
# updated to prevent clobbering returncode if wait() or poll() are
769-
@@ -1836,7 +1839,7 @@
769+
@@ -1834,7 +1837,7 @@
770770
else:
771771
self.returncode = waitstatus_to_exitcode(sts)
772772

@@ -775,7 +775,7 @@ index ddf1128fdd..a8ade2456d 100644
775775
_WNOHANG=os.WNOHANG, _ECHILD=errno.ECHILD):
776776
"""Check if child process has terminated. Returns returncode
777777
attribute.
778-
@@ -1845,6 +1848,8 @@
778+
@@ -1843,6 +1846,8 @@
779779
outside of the local scope (nor can any methods it calls).
780780

781781
"""
@@ -1123,7 +1123,7 @@ index 5150d5770f..6e0f0bfd5e 100644
11231123

11241124
@support.reap_threads
11251125
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
1126-
index 051c092eb6..e69bf09c93 100644
1126+
index a3560b4b1f..082f74ce76 100644
11271127
--- a/Lib/test/test_cmd_line.py
11281128
+++ b/Lib/test/test_cmd_line.py
11291129
@@ -67,6 +67,7 @@
@@ -1150,31 +1150,31 @@ index 051c092eb6..e69bf09c93 100644
11501150
def test_undecodable_code(self):
11511151
undecodable = b"\xff"
11521152
env = os.environ.copy()
1153-
@@ -239,6 +242,7 @@
1153+
@@ -273,6 +276,7 @@
11541154
'False False False\n'
11551155
'False False True\n')
11561156

11571157
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
11581158
def test_unbuffered_output(self):
11591159
# Test expected operation of the '-u' switch
11601160
for stream in ('stdout', 'stderr'):
1161-
@@ -297,6 +301,7 @@
1161+
@@ -331,6 +335,7 @@
11621162
# for empty and unset PYTHONPATH
11631163
self.assertEqual(out1, out2)
11641164

11651165
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
11661166
def test_displayhook_unencodable(self):
11671167
for encoding in ('ascii', 'latin-1', 'utf-8'):
11681168
env = os.environ.copy()
1169-
@@ -315,6 +320,7 @@
1169+
@@ -349,6 +354,7 @@
11701170
escaped = repr(text).encode(encoding, 'backslashreplace')
11711171
self.assertIn(escaped, data)
11721172

11731173
+ @unittest.skipUnless(os.allows_subprocesses, 'Test requires support for subprocesses.')
11741174
def check_input(self, code, expected):
11751175
with tempfile.NamedTemporaryFile("wb+") as stdin:
11761176
sep = os.linesep.encode('ASCII')
1177-
@@ -390,6 +396,7 @@
1177+
@@ -424,6 +430,7 @@
11781178
@unittest.skipIf(os.name != 'posix', "test needs POSIX semantics")
11791179
@unittest.skipIf(sys.platform == "vxworks",
11801180
"test needs preexec support in subprocess.Popen")
@@ -1415,7 +1415,7 @@ index abd612fcd9..ebf7bc9aa5 100644
14151415
"""Test loading extension modules with multi-phase initialization (PEP 489)
14161416
"""
14171417
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
1418-
index d2e387728b..e261c971e1 100644
1418+
index 1f0210f857..3c689d7493 100644
14191419
--- a/Lib/test/test_io.py
14201420
+++ b/Lib/test/test_io.py
14211421
@@ -602,7 +602,7 @@
@@ -1664,7 +1664,7 @@ index 35933e9c8c..c0c902162f 100644
16641664
"""Check if stty returns the same results
16651665

16661666
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
1667-
index 6c4eaf318e..5a492215d0 100644
1667+
index 0da449e33e..212930ec25 100644
16681668
--- a/Lib/test/test_pdb.py
16691669
+++ b/Lib/test/test_pdb.py
16701670
@@ -1231,6 +1231,7 @@
@@ -1933,10 +1933,10 @@ index 458998a62f..577cf5f385 100644
19331933
cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done'
19341934
with os.popen(cmd) as p:
19351935
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
1936-
index e19af64be0..3be0625aff 100644
1936+
index e378033acd..6b77a61a20 100644
19371937
--- a/Lib/test/test_shutil.py
19381938
+++ b/Lib/test/test_shutil.py
1939-
@@ -1679,6 +1679,8 @@
1939+
@@ -1681,6 +1681,8 @@
19401940
check_chown(dirname, uid, gid)
19411941

19421942

@@ -1945,7 +1945,7 @@ index e19af64be0..3be0625aff 100644
19451945
class TestWhich(BaseTest, unittest.TestCase):
19461946

19471947
def setUp(self):
1948-
@@ -2511,6 +2513,7 @@
1948+
@@ -2548,6 +2550,7 @@
19491949
self.assertGreaterEqual(size.lines, 0)
19501950

19511951
@unittest.skipUnless(os.isatty(sys.__stdout__.fileno()), "not on tty")
@@ -2097,7 +2097,7 @@ index aefba4f397..fd3f1108cf 100755
20972097
class RecvmsgIntoSCMRightsStreamTest(RecvmsgIntoMixin, SCMRightsTest,
20982098
SendrecvmsgUnixStreamTestBase):
20992099
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
2100-
index c663cc9588..8d5a936f04 100644
2100+
index c9455adfd8..3ada09dcba 100644
21012101
--- a/Lib/test/test_socketserver.py
21022102
+++ b/Lib/test/test_socketserver.py
21032103
@@ -8,6 +8,7 @@
@@ -2175,7 +2175,7 @@ index 2accad1aee..4824b6c8d0 100644
21752175
import distutils.text_file
21762176
import distutils.unixccompiler
21772177
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
2178-
index d79151355e..68e2a27f52 100644
2178+
index ed9b1770ab..ec3157d230 100644
21792179
--- a/Lib/test/test_sys.py
21802180
+++ b/Lib/test/test_sys.py
21812181
@@ -108,6 +108,7 @@
@@ -2302,7 +2302,7 @@ index 5bb3a58b2a..47f9b5e8f9 100644
23022302
# Test that tracebacks are correctly printed for encoded source files:
23032303
# - correct line number (Issue2384)
23042304
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
2305-
index b552d2bd17..6471bbc39e 100644
2305+
index edfd860fd5..edbc8ce641 100644
23062306
--- a/Lib/test/test_unicodedata.py
23072307
+++ b/Lib/test/test_unicodedata.py
23082308
@@ -8,6 +8,7 @@
@@ -2543,10 +2543,10 @@ index 6023c1e138..ae5803c4c8 100755
25432543
#
25442544
# Platform support for Windows
25452545
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
2546-
index f2506de544..707347b622 100644
2546+
index 18984d15ab..5ce47c4b0a 100644
25472547
--- a/Modules/_ctypes/callproc.c
25482548
+++ b/Modules/_ctypes/callproc.c
2549-
@@ -1458,14 +1458,14 @@
2549+
@@ -1461,14 +1461,14 @@
25502550

25512551
if (!PyArg_ParseTuple(args, "O", &name))
25522552
return NULL;
@@ -2681,7 +2681,7 @@ index 4aa7e6559a..511d77024c 100644
26812681
sin(pi*x), giving accurate results for all finite x (especially x
26822682
integral or close to an integer). This is here for use in the
26832683
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
2684-
index 5e33502721..61875c8c7f 100644
2684+
index f83150f1ef..e696c09cb1 100644
26852685
--- a/Modules/posixmodule.c
26862686
+++ b/Modules/posixmodule.c
26872687
@@ -56,6 +56,8 @@
@@ -2783,7 +2783,7 @@ index 5e33502721..61875c8c7f 100644
27832783
}
27842784

27852785

2786-
@@ -1515,7 +1542,9 @@
2786+
@@ -1521,7 +1548,9 @@
27872787
*/
27882788
#include <crt_externs.h>
27892789
#elif !defined(_MSC_VER) && (!defined(__WATCOMC__) || defined(__QNX__) || defined(__VXWORKS__))
@@ -2793,23 +2793,23 @@ index 5e33502721..61875c8c7f 100644
27932793
#endif /* !_MSC_VER */
27942794

27952795
static PyObject *
2796-
@@ -1531,6 +1560,7 @@
2796+
@@ -1537,6 +1566,7 @@
27972797
d = PyDict_New();
27982798
if (d == NULL)
27992799
return NULL;
28002800
+#if !TARGET_OS_TV && !TARGET_OS_WATCH
28012801
#ifdef MS_WINDOWS
28022802
/* _wenviron must be initialized in this way if the program is started
28032803
through main() instead of wmain(). */
2804-
@@ -1586,6 +1616,7 @@
2804+
@@ -1592,6 +1622,7 @@
28052805
Py_DECREF(k);
28062806
Py_DECREF(v);
28072807
}
28082808
+#endif
28092809
return d;
28102810
}
28112811

2812-
@@ -4745,7 +4776,12 @@
2812+
@@ -4751,7 +4782,12 @@
28132813
}
28142814

28152815
Py_BEGIN_ALLOW_THREADS
@@ -2822,15 +2822,15 @@ index 5e33502721..61875c8c7f 100644
28222822
Py_END_ALLOW_THREADS
28232823
return result;
28242824
}
2825-
@@ -13338,6 +13374,7 @@
2825+
@@ -13347,6 +13383,7 @@
28262826
int is_symlink;
28272827
int need_stat;
28282828
#endif
28292829
+#if !TARGET_OS_TV && !TARGET_OS_WATCH
28302830
#ifdef MS_WINDOWS
28312831
unsigned long dir_bits;
28322832
#endif
2833-
@@ -13398,6 +13435,7 @@
2833+
@@ -13407,6 +13444,7 @@
28342834
#endif
28352835

28362836
return result;
@@ -4615,10 +4615,10 @@ index c4538bd373..c385a04ea3 100644
46154615
+ return ret;
46164616
+}
46174617
diff --git a/aclocal.m4 b/aclocal.m4
4618-
index b5f9cb0e8d..c0f0e031eb 100644
4618+
index 04342a4982..b027647376 100644
46194619
--- a/aclocal.m4
46204620
+++ b/aclocal.m4
4621-
@@ -156,7 +156,7 @@
4621+
@@ -365,7 +365,7 @@
46224622
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
46234623

46244624
pkg_failed=no
@@ -4627,7 +4627,7 @@ index b5f9cb0e8d..c0f0e031eb 100644
46274627

46284628
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
46294629
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
4630-
@@ -166,11 +166,11 @@
4630+
@@ -375,11 +375,11 @@
46314631
See the pkg-config man page for more details.])
46324632

46334633
if test $pkg_failed = yes; then
@@ -4641,7 +4641,7 @@ index b5f9cb0e8d..c0f0e031eb 100644
46414641
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
46424642
fi
46434643
# Put the nasty error message in config.log where it belongs
4644-
@@ -187,7 +187,7 @@
4644+
@@ -396,7 +396,7 @@
46454645
_PKG_TEXT])[]dnl
46464646
])
46474647
elif test $pkg_failed = untried; then
@@ -4677,7 +4677,7 @@ index ba37cf99e2..9815c16a5c 100755
46774677
;;
46784678
*)
46794679
diff --git a/configure b/configure
4680-
index 1252335472..06a463641d 100755
4680+
index c7a7291fea..c7bd520c96 100755
46814681
--- a/configure
46824682
+++ b/configure
46834683
@@ -3301,6 +3301,15 @@
@@ -4769,7 +4769,7 @@ index 1252335472..06a463641d 100755
47694769
*)
47704770
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
47714771
# out any dynamic loading
4772-
@@ -18960,7 +18993,7 @@
4772+
@@ -18961,7 +18994,7 @@
47734773
echo "creating Modules/Setup.local" >&6
47744774
if test ! -f Modules/Setup.local
47754775
then
@@ -4778,16 +4778,16 @@ index 1252335472..06a463641d 100755
47784778
fi
47794779

47804780
echo "creating Makefile" >&6
4781-
@@ -18977,4 +19010,3 @@
4781+
@@ -18978,4 +19011,3 @@
47824782
echo "" >&6
47834783
echo "" >&6
47844784
fi
47854785
-
47864786
diff --git a/configure.ac b/configure.ac
4787-
index 972287a9c4..b989796488 100644
4787+
index 45e0af4493..2701b68cc3 100644
47884788
--- a/configure.ac
47894789
+++ b/configure.ac
4790-
@@ -391,6 +391,15 @@
4790+
@@ -398,6 +398,15 @@
47914791
*-*-cygwin*)
47924792
ac_sys_system=Cygwin
47934793
;;
@@ -4803,7 +4803,7 @@ index 972287a9c4..b989796488 100644
48034803
*-*-vxworks*)
48044804
ac_sys_system=VxWorks
48054805
;;
4806-
@@ -440,6 +449,15 @@
4806+
@@ -447,6 +456,15 @@
48074807
*-*-cygwin*)
48084808
_host_cpu=
48094809
;;
@@ -4819,7 +4819,7 @@ index 972287a9c4..b989796488 100644
48194819
*-*-vxworks*)
48204820
_host_cpu=$host_cpu
48214821
;;
4822-
@@ -512,6 +530,13 @@
4822+
@@ -519,6 +537,13 @@
48234823
define_xopen_source=no;;
48244824
Darwin/@<:@[12]@:>@@<:@0-9@:>@.*)
48254825
define_xopen_source=no;;
@@ -4833,7 +4833,7 @@ index 972287a9c4..b989796488 100644
48334833
# On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
48344834
# used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
48354835
# or has another value. By not (re)defining it, the defaults come in place.
4836-
@@ -1207,11 +1232,17 @@
4836+
@@ -1214,11 +1239,17 @@
48374837

48384838
AC_CHECK_TOOLS([READELF], [readelf], [:])
48394839
if test "$cross_compiling" = yes; then
@@ -4856,7 +4856,7 @@ index 972287a9c4..b989796488 100644
48564856
fi
48574857
AC_SUBST(READELF)
48584858

4859-
@@ -1594,8 +1625,6 @@
4859+
@@ -1601,8 +1632,6 @@
48604860
# tweak BASECFLAGS based on compiler and platform
48614861
case $GCC in
48624862
yes)
@@ -4865,7 +4865,7 @@ index 972287a9c4..b989796488 100644
48654865
AC_MSG_CHECKING(for -Wextra)
48664866
ac_save_cc="$CC"
48674867
CC="$CC -Wextra -Werror"
4868-
@@ -3644,6 +3673,10 @@
4868+
@@ -3651,6 +3680,10 @@
48694869
fi
48704870
;;
48714871
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
@@ -4876,7 +4876,7 @@ index 972287a9c4..b989796488 100644
48764876
*)
48774877
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
48784878
# out any dynamic loading
4879-
@@ -5821,7 +5854,7 @@
4879+
@@ -5828,7 +5861,7 @@
48804880
echo "creating Modules/Setup.local" >&AS_MESSAGE_FD
48814881
if test ! -f Modules/Setup.local
48824882
then
@@ -4885,7 +4885,7 @@ index 972287a9c4..b989796488 100644
48854885
fi
48864886

48874887
echo "creating Makefile" >&AS_MESSAGE_FD
4888-
@@ -5838,4 +5871,3 @@
4888+
@@ -5845,4 +5878,3 @@
48894889
echo "" >&AS_MESSAGE_FD
48904890
echo "" >&AS_MESSAGE_FD
48914891
fi

0 commit comments

Comments
 (0)