Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2026 12:40:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 292189] emulators/virtualbox-ose: require python 3.11 (fail on 3.12)
Message-ID:  <bug-292189-7788-ob2vehxmNO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-292189-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292189

--- Comment #11 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=8a712f40160ee5090c5029d7f184541558830d2b

commit 8a712f40160ee5090c5029d7f184541558830d2b
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-01-12 12:25:34 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-01-12 12:25:34 +0000

    emulators/virtualbox-ose{,-legacy}: Limit python to 3.10-3.11

    This is temporary workaround for build error:

   
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.50/src/libs/xpcom18a4/python/src/VariantUtils.cpp:197:7:
error: use of undeclared identifier 'PyUnicode_GET_SIZE'; did you mean
'PyDict_GET_SIZE'?
                    if (PyUnicode_GET_SIZE(val_use) == 0) {
                        ^~~~~~~~~~~~~~~~~~
                        PyDict_GET_SIZE
    /usr/local/include/python3.12/cpython/dictobject.h:53:26: note:
'PyDict_GET_SIZE' declared here
    static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) {
                             ^
   
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.50/src/libs/xpcom18a4/python/src/VariantUtils.cpp:501:38:
error: use of undeclared identifier 'PyUnicode_AS_UNICODE'
                                    FILL_SIMPLE_POINTER( PRUnichar,
*PyUnicode_AS_UNICODE(val_use) );
                                                                     ^
   
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.50/src/libs/xpcom18a4/python/src/VariantUtils.cpp:829:8:
error: use of undeclared identifier 'PyUnicode_GetSize'
                            if (PyUnicode_GetSize(ob) == 0) {
                                ^

    Support for the python 3.12+ was added in the VirtualBox 7.0.
    Maybe I'll partially port this in older VirtualBox ports later.

    PR:     292189 285957

 emulators/virtualbox-ose-legacy/Makefile | 2 +-
 emulators/virtualbox-ose/Makefile        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292189-7788-ob2vehxmNO>