forked from jengelh/virtualbox
Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
493311615b |
26
python313.patch
Normal file
26
python313.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: VirtualBox-7.1.4/configure
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.4.orig/configure
|
||||
+++ VirtualBox-7.1.4/configure
|
||||
@@ -2185,7 +2185,7 @@ extern "C" int main(void)
|
||||
}
|
||||
EOF
|
||||
found=
|
||||
- SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.9 python3.10 python3.11 python3.12"
|
||||
+ SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m python3.6 python3.6m python3.7 python3.7m python3.8 python3.9 python3.10 python3.11 python3.12 python3.13"
|
||||
for p in $PYTHONDIR; do
|
||||
for d in $SUPPYTHONLIBS; do
|
||||
for b in lib/x86_64-linux-gnu lib/i386-linux-gnu lib64 lib/64 lib; do
|
||||
Index: VirtualBox-7.1.4/src/libs/xpcom18a4/python/gen_python_deps.py
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.4.orig/src/libs/xpcom18a4/python/gen_python_deps.py
|
||||
+++ VirtualBox-7.1.4/src/libs/xpcom18a4/python/gen_python_deps.py
|
||||
@@ -29,7 +29,7 @@ if sys.version_info >= (3, 10):
|
||||
else:
|
||||
from distutils.version import StrictVersion as Version
|
||||
|
||||
-versions = ["2.6", "2.7", "3.1", "3.2", "3.2m", "3.3", "3.3m", "3.4", "3.4m", "3.5", "3.5m", "3.6", "3.6m", "3.7", "3.7m", "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
||||
+versions = ["2.6", "2.7", "3.1", "3.2", "3.2m", "3.3", "3.3m", "3.4", "3.4m", "3.5", "3.5m", "3.6", "3.6m", "3.7", "3.7m", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
|
||||
prefixes = ["/usr", "/usr/local", "/opt", "/opt/local"]
|
||||
known = {}
|
||||
|
@@ -1,8 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 12 10:00:50 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Build python bindings for python311, do not use python3 since
|
||||
virtualbox doesn't support python3.13 yet.
|
||||
- add python313.patch to make it work with python 3.13
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 21 11:17:17 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
@@ -53,11 +53,6 @@
|
||||
%define _vbox_instdir %{_prefix}/lib/virtualbox
|
||||
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
|
||||
%endif
|
||||
|
||||
%global mypython python311
|
||||
%global __mypython %{expand:%%__%{mypython}}
|
||||
%global mypython_sitelib %{expand:%%%{mypython}_sitelib}
|
||||
|
||||
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
|
||||
Name: virtualbox%{?dash}%{?name_suffix}
|
||||
Version: 7.1.4
|
||||
@@ -123,6 +118,8 @@ Patch10: fix_for_leap15.5.patch
|
||||
Patch11: cxx17.patch
|
||||
Patch12: host-source.patch
|
||||
Patch13: kernel-6-13.patch
|
||||
# PATCH-FIX-OPENSUSE python313.patch
|
||||
Patch14: python313.patch
|
||||
#
|
||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||
BuildRequires: %{kernel_module_package_buildreqs}
|
||||
@@ -179,9 +176,9 @@ BuildRequires: lzfse
|
||||
BuildRequires: lzfse-devel
|
||||
BuildRequires: pulseaudio-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{mypython}-devel
|
||||
BuildRequires: %{mypython}-setuptools
|
||||
BuildRequires: %{mypython}-pip
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: qt6-tools-linguist
|
||||
BuildRequires: rpm
|
||||
BuildRequires: sed
|
||||
@@ -334,28 +331,28 @@ Requires(pre): net-tools-deprecated
|
||||
%description guest-tools
|
||||
VirtualBox guest addition tools.
|
||||
|
||||
%package -n %{mypython}-%{name}
|
||||
%package -n python3-%{name}
|
||||
Summary: Python bindings for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
#rename from "ose" version:
|
||||
Provides: %{mypython}-%{name} = %{version}-%{release}
|
||||
Provides: python3-%{name} = %{version}-%{release}
|
||||
Obsoletes: python-%{name} < %{version}-%{release}
|
||||
Obsoletes: python2-%{name} < %{version}-%{release}
|
||||
Obsoletes: python3-%{name} < %{version}-%{release}
|
||||
Provides: %{mypython}-%{name}-ose = %{version}
|
||||
Provides: python3-%{name}-ose = %{version}
|
||||
Obsoletes: python-%{name}-ose < %{version}
|
||||
Obsoletes: python2-%{name}-ose < %{version}
|
||||
Obsoletes: python3-%{name}-ose < %{version}
|
||||
|
||||
%description -n %{mypython}-%{name}
|
||||
%description -n python3-%{name}
|
||||
Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
||||
|
||||
%package devel
|
||||
Summary: Devel files for %{name}
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{mypython}-%{name} = %{version}
|
||||
Requires: python3-%{name} = %{version}
|
||||
#rename from "ose" version:
|
||||
Provides: %{name}-ose-devel = %{version}
|
||||
Obsoletes: %{name}-ose-devel < %{version}
|
||||
@@ -654,7 +651,7 @@ EOF
|
||||
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
||||
echo "entering python-virtualbox install section"
|
||||
pushd out/linux.*/release/bin/sdk/installer/python
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} %{__mypython} vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
popd
|
||||
install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
||||
cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
||||
@@ -917,14 +914,14 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%dir /media
|
||||
%endif
|
||||
|
||||
%files -n %{mypython}-%{name}
|
||||
%files -n python3-%{name}
|
||||
%dir %{_vbox_instdir}/sdk
|
||||
%dir %{_vbox_instdir}/sdk/bindings
|
||||
%dir %{_vbox_instdir}/sdk/bindings/xpcom
|
||||
%{_vbox_instdir}/sdk/bindings/xpcom/python
|
||||
%{_vbox_instdir}/VBoxPython*.so
|
||||
%{mypython_sitelib}/vboxapi-*.egg-info
|
||||
%{mypython_sitelib}/vboxapi/
|
||||
%{python3_sitelib}/vboxapi-*.egg-info
|
||||
%{python3_sitelib}/vboxapi/
|
||||
|
||||
%files devel
|
||||
%dir %{_vbox_instdir}/sdk
|
||||
|
Reference in New Issue
Block a user