Skip to content

Commit ee7fe10

Browse files
committed
downloads: upgrade CPython 3.9.7 to 3.9.9
This required refreshing a patch involving MULTIARCH. The upstream patch has been backported to other release branches but there is only a release for 3.9 so far.
1 parent 3307e39 commit ee7fe10

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

cpython-unix/build-cpython.sh

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,27 @@ if [ "${BUILD_TRIPLE}" != "${TARGET_TRIPLE}" ]; then
9595

9696
# Same patch as below. See comment there.
9797
if [ "${CC}" = "clang" ]; then
98-
patch -p1 <<"EOF"
98+
if [ "${PYTHON_MAJMIN_VERSION}" = "3.9" ]; then
99+
patch -p1 <<"EOF"
100+
diff --git a/configure b/configure
101+
index 33ecb16f71..7f21822d97 100755
102+
--- a/configure
103+
+++ b/configure
104+
@@ -5354,10 +5354,7 @@ $as_echo "none" >&6; }
105+
fi
106+
rm -f conftest.c conftest.out
107+
108+
-if test x$PLATFORM_TRIPLET != xdarwin; then
109+
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
110+
-fi
111+
-
112+
+MULTIARCH=
113+
114+
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
115+
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
116+
EOF
117+
else
118+
patch -p1 <<"EOF"
99119
diff --git a/configure b/configure
100120
index 7cad0e2f98..50212236c4 100755
101121
--- a/configure
@@ -110,6 +130,7 @@ index 7cad0e2f98..50212236c4 100755
110130
111131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
112132
EOF
133+
fi
113134
fi
114135

115136
# When cross-compiling, we need to build a host Python that has working zlib
@@ -332,7 +353,27 @@ fi
332353
# configure. This is reported as https://bugs.python.org/issue45405. We nerf the
333354
# check since we know what we're doing.
334355
if [ "${CC}" = "clang" ]; then
335-
patch -p1 <<"EOF"
356+
if [ "${PYTHON_MAJMIN_VERSION}" = "3.9" ]; then
357+
patch -p1 <<"EOF"
358+
diff --git a/configure b/configure
359+
index 33ecb16f71..7f21822d97 100755
360+
--- a/configure
361+
+++ b/configure
362+
@@ -5354,10 +5354,7 @@ $as_echo "none" >&6; }
363+
fi
364+
rm -f conftest.c conftest.out
365+
366+
-if test x$PLATFORM_TRIPLET != xdarwin; then
367+
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
368+
-fi
369+
-
370+
+MULTIARCH=
371+
372+
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
373+
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
374+
EOF
375+
else
376+
patch -p1 <<"EOF"
336377
diff --git a/configure b/configure
337378
index 7cad0e2f98..50212236c4 100755
338379
--- a/configure
@@ -347,6 +388,7 @@ index 7cad0e2f98..50212236c4 100755
347388
348389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
349390
EOF
391+
fi
350392
fi
351393

352394
# Add a make target to write the PYTHON_FOR_BUILD variable so we can

pythonbuild/downloads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
"python_tag": "cp38",
6363
},
6464
"cpython-3.9": {
65-
"url": "https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tar.xz",
66-
"size": 19123232,
67-
"sha256": "f8145616e68c00041d1a6399b76387390388f8359581abc24432bb969b5e3c57",
68-
"version": "3.9.7",
65+
"url": "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz",
66+
"size": 19144372,
67+
"sha256": "06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27",
68+
"version": "3.9.9",
6969
"licenses": ["Python-2.0", "CNRI-Python"],
7070
"license_file": "LICENSE.cpython.txt",
7171
"python_tag": "cp39",

0 commit comments

Comments
 (0)