Commit 227fcbf
authored
Stop compiling Python using
The upstream Python test suite (which gets run when compiling with PGO
enabled) fails with the `libexpat` in Ubuntu 22.04.
In #1661, I previously added what I hoped would be a temporarily
workaround until the failures were fixed upstream, however, the Python
maintainers say they don't guarantee compatibility with distro `expat`,
and that it's up to us to test for compatibility and patch if we want
to use the distro version. However, this isn't viable given that we're
neither a Linux distro maintainer, a CPython maintainer or an expat
maintainer.
Instead, like the upstream Docker Hub Python images (who were also
affected by this issue), we will switch the `expat` bundled within the
CPython sources, which is actually what the upstream CPython project
tests in its CI. This means users won't get security updates for free
via the base image, and will instead need to update their Python patch
versions instead as newer versions are vendored in CPython. However,
this is the least worst alternative for now.
I'm doing this now, since otherwise I'll need to generate another patch
series for the soon to be released Python 3.14.
Note: This change only affects Python versions compiled/released after
this merges. Existing Python versions on S3 are unaffected for now
(unless they ever get recompiled in the future).
For more details, see:
python/cpython#125067 (comment)
GUS-W-17414073.--with-system-expat (#1925)1 parent 5f8ddb6 commit 227fcbf
4 files changed
Lines changed: 2 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
| |||
110 | 102 | | |
111 | 103 | | |
112 | 104 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 105 | | |
117 | 106 | | |
118 | 107 | | |
| |||
Lines changed: 0 additions & 24 deletions
This file was deleted.
0 commit comments