This package does not support Python 3.12. Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d068d135757ec370cd2fd8c8c707891cc135241 commit 4d068d135757ec370cd2fd8c8c707891cc135241 Author: Viorel Munteanu <ceamac@gentoo.org> AuthorDate: 2024-05-25 07:10:47 +0000 Commit: Viorel Munteanu <ceamac@gentoo.org> CommitDate: 2024-05-25 09:52:42 +0000 app-emulation/virtualbox: make python dependency optional Do not depend on python if built with USE=-python. This should make the upgrade less annoying when python 3.12 becomes the default. Bug: https://bugs.gentoo.org/929313 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org> .../virtualbox/virtualbox-7.0.18-r1.ebuild | 740 +++++++++++++++++++++ 1 file changed, 740 insertions(+)
Can you do this with 6.1.50-r2? I tried, but I know zilch about how portage actually works internally. I *think* I copied all your changes to make python go away with the -python flag, but when I added: else cat >> AutoConfig.kmk <<-EOF || die VBOX_WITH_PYTHON:= EOF fi down around line 376 in the 6.1.50-r2 ebuild, it fails. Sorry if this is formatted incorrectly. Ultimately, I kludged around by just changing the 11 to 12 in the "PYTHON_COMPAT=( python3_{10..12} )" line, I know it says it'll silently fail, but I'm not even sure where/how Python gets used, I'm not doing any scripting with VBox.
Created attachment 894627 [details, diff] patch duplicates the changes made to 7.0.18-r2
Created attachment 894628 [details, diff] Patch that duplicates Viorel Munteanu's work, but for 6.1.50-r2 Messed up first time, this one has all of the changes to make the package compile with Python 3.12. Works locally.
The 6.1 branch is no longer supported upstream. I'll keep 6.1.50 in the tree as long as it is practical, but it will go away eventually (sooner or later it will no longer compile on newer kernels, or someone will find security issues), so it's better to try to migrate to the 7.0 branch. This being said, I'll try to find some time in the weekend to decouple it from python.
Thank You. 7 has a weird bug, on multiple monitors, in full screen, the drop-down bar will be in a different screen unless I flip from full screen to windowed and back. It's why I'm clinging to 6.
ceamac, could you stable a version w/ the Python detangling done?
In arch they are applying this python 3.12 patch: https://gitlab.archlinux.org/archlinux/packaging/packages/virtualbox/-/blob/main/020-python-3-12.patch?ref_type=heads