Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 929313

Summary: app-emulation/virtualbox: needs upgrade to Python 3.12 (PythonCompatUpdate)
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Viorel Munteanu <ceamac>
Status: CONFIRMED ---    
Severity: normal CC: amano.kenji, andrewammerlaan, b.buschinski,, bugzilla, ceamac, chris, dflogeras2, gentoo, gentoo, hyedad, igor.s.krivenko, jnerin, kripton, Lolo.Gentoo, mr_byte2000, nethershaw, orodruinlair, powerman-asdf, ralfglauberman, vityokster, whilom.chime
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: All   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 921826, 929314    
Attachments: patch duplicates the changes made to 7.0.18-r2
Patch that duplicates Viorel Munteanu's work, but for 6.1.50-r2

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-13 08:29:03 UTC
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:  Please check the information provided in the tracker.  Ask in #gentoo-python on IRC if need any help.
Comment 1 Larry the Git Cow gentoo-dev 2024-05-25 09:53:11 UTC
The bug has been referenced in the following commit(s):

commit 4d068d135757ec370cd2fd8c8c707891cc135241
Author:     Viorel Munteanu <>
AuthorDate: 2024-05-25 07:10:47 +0000
Commit:     Viorel Munteanu <>
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
    Signed-off-by: Viorel Munteanu <>

 .../virtualbox/virtualbox-7.0.18-r1.ebuild         | 740 +++++++++++++++++++++
 1 file changed, 740 insertions(+)
Comment 2 Jeff Wood 2024-05-29 19:13:19 UTC
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: 

                cat >> AutoConfig.kmk <<-EOF || die

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.
Comment 3 Jeff Wood 2024-05-29 20:39:37 UTC
Created attachment 894627 [details, diff]
patch duplicates the changes made to 7.0.18-r2
Comment 4 Jeff Wood 2024-05-29 21:02:31 UTC
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.
Comment 5 Viorel Munteanu gentoo-dev 2024-05-30 05:06:14 UTC
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.
Comment 6 Jeff Wood 2024-05-30 09:37:01 UTC
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.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-03 03:44:57 UTC
ceamac, could you stable a version w/ the Python detangling done?