Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 894628 Details for
Bug 929313
app-emulation/virtualbox: needs upgrade to Python 3.12 (PythonCompatUpdate)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that duplicates Viorel Munteanu's work, but for 6.1.50-r2
python.patch (text/plain), 2.99 KB, created by
Jeff Wood
on 2024-05-29 21:02:31 UTC
(
hide
)
Description:
Patch that duplicates Viorel Munteanu's work, but for 6.1.50-r2
Filename:
MIME Type:
Creator:
Jeff Wood
Created:
2024-05-29 21:02:31 UTC
Size:
2.99 KB
patch
obsolete
>--- /var/db/repos/gentoo/app-emulation/virtualbox/virtualbox-6.1.50-r2.ebuild 2024-04-30 00:55:55.000000000 -0400 >+++ virtualbox-6.1.50-r2.ebuild 2024-05-29 16:59:50.350163779 -0400 >@@ -37,7 +37,6 @@ > unset WATCOM #856769 > > COMMON_DEPEND=" >- ${PYTHON_DEPS} > acct-group/vboxusers > ~app-emulation/virtualbox-modules-${PV} > >=dev-libs/libxslt-1.1.19 >@@ -69,6 +68,7 @@ > x11-libs/libXinerama > ) > ) >+ python? ( ${PYTHON_DEPS} ) > dev-libs/openssl:0= > virtual/libcrypt:= > lvm? ( sys-fs/lvm2 ) >@@ -161,9 +161,8 @@ > > REQUIRED_USE=" > java? ( sdk ) >- python? ( sdk ) >+ python? ( sdk ${PYTHON_REQUIRED_USE} ) > vboxwebsrv? ( java ) >- ${PYTHON_REQUIRED_USE} > " > > PATCHES=( >@@ -216,7 +215,7 @@ > > pkg_setup() { > java-pkg-opt-2_pkg_setup >- python-single-r1_pkg_setup >+ use python && python-single-r1_pkg_setup > } > > src_prepare() { >@@ -350,13 +349,13 @@ > -e '/VBOX_LIB_PYTHON.*=/d' \ > AutoConfig.kmk || die > >- cat >> AutoConfig.kmk <<-EOF || die >- VBOX_WITH_PYTHON=$(usev python 1) >- VBOX_PATH_PYTHON_INC=$(python_get_includedir) >- VBOX_LIB_PYTHON=$(python_get_library_path) >- EOF >+ if use python; then >+ cat >> AutoConfig.kmk <<-EOF || die >+ VBOX_WITH_PYTHON=$(usev python 1) >+ VBOX_PATH_PYTHON_INC=$(python_get_includedir) >+ VBOX_LIB_PYTHON=$(python_get_library_path) >+ EOF > >- if use python ; then > local mangled_python="${EPYTHON#python}" > mangled_python="${mangled_python/.}" > >@@ -373,6 +372,10 @@ > EOF > > chmod +x src/libs/xpcom18a4/python/gen_python_deps.py || die >+ else >+ cat >> AutoConfig.kmk <<-EOF || die >+ VBOX_WITH_PYTHON:= >+ EOF > fi > } > >@@ -629,17 +632,30 @@ > dodoc UserManual.pdf > fi > >- if use python ; then >- local mangled_python="${EPYTHON#python}" >- mangled_python="${mangled_python/./_}" >- >- local python_path_ext="${ED}/usr/$(get_libdir)/virtualbox/VBoxPython${mangled_python}.so" >- if [[ ! -x "${python_path_ext}" ]] ; then >+ if use python; then >+ local python_path_ext="${ED}/usr/$(get_libdir)/virtualbox/VBoxPython3.so" >+ if [[ ! -x "${python_path_ext}" ]]; then > eerror "Couldn't find ${python_path_ext}! Bindings were requested with USE=python" > eerror "but none were installed. This may happen if support for a Python target" > eerror "(listed in PYTHON_COMPAT in the ebuild) is incomplete within the Makefiles." > die "Incomplete installation of Python bindings! File a bug with Gentoo!" > fi >+ >+ # 378871 >+ local installer_dir="${ED}/usr/$(get_libdir)/virtualbox/sdk/installer" >+ pushd "${installer_dir}" &> /dev/null || die >+ sed -e "s;%VBOX_INSTALL_PATH%;${vbox_inst_path};" \ >+ -e "s;%VBOX_SDK_PATH%;${vbox_inst_path}/sdk;" \ >+ -i vboxapi/__init__.py || die >+ # insert shebang, the files come without one >+ find vboxapi -name \*.py -exec sed -e "1 i\#! ${PYTHON}" -i {} \+ || die >+ python_domodule vboxapi >+ popd &> /dev/null || die >+ sed -e "1 i\#! ${PYTHON}" -i vboxshell.py || die >+ python_doscript vboxshell.py >+ >+ # do not install the installer >+ rm -r "${installer_dir}" || die > fi > > newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 929313
:
894627
| 894628