Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929313 - app-emulation/virtualbox: needs upgrade to Python 3.12 (PythonCompatUpdate)
Summary: app-emulation/virtualbox: needs upgrade to Python 3.12 (PythonCompatUpdate)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal with 3 votes (vote)
Assignee: Viorel Munteanu
URL: https://www.virtualbox.org/ticket/22017
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: 921826 929314
  Show dependency tree
 
Reported: 2024-04-13 08:29 UTC by Michał Górny
Modified: 2024-06-19 13:13 UTC (History)
23 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch duplicates the changes made to 7.0.18-r2 (python.patch,2.84 KB, patch)
2024-05-29 20:39 UTC, Jeff Wood
Details | Diff
Patch that duplicates Viorel Munteanu's work, but for 6.1.50-r2 (python.patch,2.99 KB, patch)
2024-05-29 21:02 UTC, Jeff Wood
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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: 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.
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):

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(+)
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: 

        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.
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?