Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from python3.10 to python3.11 in profile #970

Merged
merged 17 commits into from
Jul 7, 2023

Conversation

krishjainx
Copy link
Contributor

Bump from python3.10 to python3.11 in profile

We switch to newer version of python mostly because older versions get obsoleted in Gentoo. 3.10 is not yet obsolete, but eventually we will want to switch to python 3.11.

How to use

Already spoke with @krnowak

@krnowak
Copy link
Member

krnowak commented Jul 4, 2023

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

@krnowak
Copy link
Member

krnowak commented Jul 5, 2023

Build failed because python 3.11.3 requires app-crypt/libb2 which isn't available. Could you pull that in into portage-stable please? Thanks!

@krishjainx
Copy link
Contributor Author

Done @krnowak. You can start the CI again

@krnowak
Copy link
Member

krnowak commented Jul 5, 2023

@jepio
Copy link
Member

jepio commented Jul 5, 2023

12:46:36  emerge: there are no ebuilds to satisfy "dev-lang/python-exec[python_targets_python3_10(-)]".
12:46:36  (dependency required by "dev-lang/python-3.10.12::portage-stable" [ebuild])
12:46:36  (dependency required by "app-misc/ca-certificates-3.91::coreos" [ebuild])
12:46:36  (dependency required by "dev-libs/openssl-3.0.9::coreos" [ebuild])
12:46:36  (dependency required by "net-misc/curl-8.1.2::portage-stable" [ebuild])
12:46:36  (dependency required by "app-crypt/gnupg-2.2.35-r1::coreos" [ebuild])
12:46:36  (dependency required by "dev-vcs/git-2.39.3::portage-stable[gpg]" [ebuild])
12:46:36  (dependency required by "sys-libs/nss-usrfiles-2.30-r1::coreos" [ebuild])
12:46:36  (dependency required by "@system" [argument])

@krnowak
Copy link
Member

krnowak commented Jul 5, 2023

12:46:36  emerge: there are no ebuilds to satisfy "dev-lang/python-exec[python_targets_python3_10(-)]".
12:46:36  (dependency required by "dev-lang/python-3.10.12::portage-stable" [ebuild])
12:46:36  (dependency required by "app-misc/ca-certificates-3.91::coreos" [ebuild])
12:46:36  (dependency required by "dev-libs/openssl-3.0.9::coreos" [ebuild])
12:46:36  (dependency required by "net-misc/curl-8.1.2::portage-stable" [ebuild])
12:46:36  (dependency required by "app-crypt/gnupg-2.2.35-r1::coreos" [ebuild])
12:46:36  (dependency required by "dev-vcs/git-2.39.3::portage-stable[gpg]" [ebuild])
12:46:36  (dependency required by "sys-libs/nss-usrfiles-2.30-r1::coreos" [ebuild])
12:46:36  (dependency required by "@system" [argument])

There are still packages that had no python 3.11 in python_compat. Those will just need an update. I think Krish already managed to do it for most of them.

@krishjainx
Copy link
Contributor Author

12:46:36  emerge: there are no ebuilds to satisfy "dev-lang/python-exec[python_targets_python3_10(-)]".
12:46:36  (dependency required by "dev-lang/python-3.10.12::portage-stable" [ebuild])
12:46:36  (dependency required by "app-misc/ca-certificates-3.91::coreos" [ebuild])
12:46:36  (dependency required by "dev-libs/openssl-3.0.9::coreos" [ebuild])
12:46:36  (dependency required by "net-misc/curl-8.1.2::portage-stable" [ebuild])
12:46:36  (dependency required by "app-crypt/gnupg-2.2.35-r1::coreos" [ebuild])
12:46:36  (dependency required by "dev-vcs/git-2.39.3::portage-stable[gpg]" [ebuild])
12:46:36  (dependency required by "sys-libs/nss-usrfiles-2.30-r1::coreos" [ebuild])
12:46:36  (dependency required by "@system" [argument])

There are still packages that had no python 3.11 in python_compat. Those will just need an update. I think Krish already managed to do it for most of them.

Done for all in coreos-overlay

@krishjainx krishjainx force-pushed the update-python3.11 branch 2 times, most recently from 85396f7 to aeb163a Compare July 5, 2023 12:54
@krnowak
Copy link
Member

krnowak commented Jul 5, 2023

@krishjainx
Copy link
Contributor Author

Fixed botched revision bump - I bumped grub-2.02-r9.ebuild to grub-2.02-r9-r1.ebuild instead of grub-2.02-r10.ebuild accidentally. @krnowak

@krnowak
Copy link
Member

krnowak commented Jul 5, 2023

Fixed grub on my end and kicked off the CI: http://jenkins.infra.kinvolk.io:8080/job/container/job/sdk/907/cldsv

@krnowak
Copy link
Member

krnowak commented Jul 6, 2023

Needed to refresh our gentoolkit patch, CI: http://jenkins.infra.kinvolk.io:8080/job/container/job/sdk/915/cldsv

@krnowak
Copy link
Member

krnowak commented Jul 6, 2023

@krishjainx : Please cherry pick commits 39ddc95 and c57ba8e from my krnowak/python-3.11 branch.

Changes in portage-stable packages:

--

--

@krishjainx
Copy link
Contributor Author

Will do once the build finished @krnowak

krishjainx and others added 13 commits July 7, 2023 16:46
Python 3.11 does not have the xml USE flag any more, so some older
packages needs to be updated to assume that xml USE flag is enabled if
it's missing from python.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
The /usr/lib/python*/test directory grew from 70mb in python3.10 to
118mb in python 3.11. Kill this directory - this hopefully will make
the ACI image small enough to fit into the OEM partition again.
Copy link
Member

@krnowak krnowak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants