1 |
commit: fd1c9f9b6b838173e6f7df0cb8cc5114e55f6c56 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 5 06:32:34 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 5 06:32:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=fd1c9f9b |
7 |
|
8 |
scripts/bootstrap-prefix: bump bootstrap python to 3.10 to match tree |
9 |
|
10 |
There is a problem which makes it hard to upgrade Python without |
11 |
transition in place (addressed by |
12 |
c310e44692ad91777c71394dda97cd1f33f72589?), so just use a bootstrap |
13 |
Python that's equal to the version installed by the tree to avoid this |
14 |
problem. |
15 |
|
16 |
While at it, drop arm64-macos hack, since it's no longer necessary. |
17 |
|
18 |
Bug: https://bugs.gentoo.org/778014 |
19 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
20 |
|
21 |
scripts/bootstrap-prefix.sh | 12 +++--------- |
22 |
1 file changed, 3 insertions(+), 9 deletions(-) |
23 |
|
24 |
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
25 |
index 0653ec9a74..4466831868 100755 |
26 |
--- a/scripts/bootstrap-prefix.sh |
27 |
+++ b/scripts/bootstrap-prefix.sh |
28 |
@@ -746,7 +746,7 @@ bootstrap_portage() { |
29 |
|
30 |
local tmpportdir=${ROOT}/tmp/${PORTDIR#${ROOT}} |
31 |
[[ -e "${tmpportdir}" ]] || ln -s "${PORTDIR}" "${tmpportdir}" |
32 |
- for d in "${ROOT}"/tmp/usr/lib/python?.?; do |
33 |
+ for d in "${ROOT}"/tmp/usr/lib/python${PYTHONMAJMIN}; do |
34 |
[[ -e ${d}/portage ]] || ln -s "${ROOT}"/tmp/usr/lib/portage/lib/portage ${d}/portage |
35 |
[[ -e ${d}/_emerge ]] || ln -s "${ROOT}"/tmp/usr/lib/portage/lib/_emerge ${d}/_emerge |
36 |
done |
37 |
@@ -1028,9 +1028,9 @@ bootstrap_gnu() { |
38 |
einfo "${A%.tar.*} successfully bootstrapped" |
39 |
} |
40 |
|
41 |
-PYTHONMAJMIN=3.9 # keep this number in line with PV below for stage1,2 |
42 |
+PYTHONMAJMIN=3.10 # keep this number in line with PV below for stage1,2 |
43 |
bootstrap_python() { |
44 |
- PV=3.9.13 |
45 |
+ PV=3.10.4 |
46 |
A=Python-${PV}.tar.xz |
47 |
einfo "Bootstrapping ${A%.tar.*}" |
48 |
|
49 |
@@ -1119,12 +1119,6 @@ bootstrap_python() { |
50 |
efetch "https://dev.gentoo.org/~sam/distfiles/dev-lang/python/python-3.9.6-darwin9_pthreadid.patch" |
51 |
patch -p1 < "${DISTDIR}"/python-3.9.6-darwin9_pthreadid.patch |
52 |
;; |
53 |
- (arm64-*-darwin*) |
54 |
- # Teach Python a new trick (arm64) |
55 |
- sed -i \ |
56 |
- -e "/Unexpected output of 'arch' on OSX/d" \ |
57 |
- configure |
58 |
- ;; |
59 |
(*-openbsd*) |
60 |
# OpenBSD is not a multilib system |
61 |
sed -i \ |