forked from pool/virtualbox
- Remove file "fix_KMS_support.patch" - Fixed upstream
Add new patch file "fixes_for_4.15.patch". Modified vboxconfig.sh to issue a warning when there is a version mismatch rather than abort. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=384
This commit is contained in:
parent
f3efb31ed1
commit
fadfe8ba5d
@ -1,14 +0,0 @@
|
|||||||
Index: VirtualBox-5.1.22/src/VBox/Additions/linux/drm/vbox_fb.c
|
|
||||||
===================================================================
|
|
||||||
--- VirtualBox-5.1.22.orig/src/VBox/Additions/linux/drm/vbox_fb.c
|
|
||||||
+++ VirtualBox-5.1.22/src/VBox/Additions/linux/drm/vbox_fb.c
|
|
||||||
@@ -409,6 +409,9 @@ static void vbox_fbdev_destroy(struct dr
|
|
||||||
LogFunc(("vboxvideo: %d\n", __LINE__));
|
|
||||||
if (fbdev->helper.fbdev) {
|
|
||||||
info = fbdev->helper.fbdev;
|
|
||||||
+#ifdef CONFIG_FB_DEFERRED_IO
|
|
||||||
+ fb_deferred_io_cleanup(info);
|
|
||||||
+#endif
|
|
||||||
unregister_framebuffer(info);
|
|
||||||
if (info->cmap.len)
|
|
||||||
fb_dealloc_cmap(&info->cmap);
|
|
15
fixes_for_4.15.patch
Normal file
15
fixes_for_4.15.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Index: VirtualBox-5.1.30/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||||||
|
===================================================================
|
||||||
|
--- VirtualBox-5.1.30.orig/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||||||
|
+++ VirtualBox-5.1.30/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||||||
|
@@ -1584,7 +1584,9 @@ RTDECL(int) RTTimerCreateEx(PRTTIMER *pp
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
|
||||||
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
||||||
|
+ __init_timer(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer, TIMER_PINNED);
|
||||||
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
|
||||||
|
init_timer_pinned(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
|
||||||
|
#else
|
||||||
|
init_timer(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
|
@ -21,16 +21,14 @@ fi
|
|||||||
# Check if virtualbox-host-source is installed, quit if not
|
# Check if virtualbox-host-source is installed, quit if not
|
||||||
if ! rpm -qf "$SOURCE/Makefile" &>/dev/null ; then
|
if ! rpm -qf "$SOURCE/Makefile" &>/dev/null ; then
|
||||||
echo "Sources for building host modules are not present,"
|
echo "Sources for building host modules are not present,"
|
||||||
echo "Use 'sudo zypper install virtualbox-host-source' to install them. Quitting .."
|
echo "Use 'sudo zypper install virtualbox-host-source kernel_devel' to install them. Quitting .."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
# Check if virtualbox-host-source version matches virtualbox version
|
# Check if virtualbox-host-source version matches virtualbox version
|
||||||
if [ "$(rpm -q virtualbox virtualbox-host-source --queryformat='%{version}-%{release}\n' 2>/dev/null | sort -u | wc -l)" -ne "1" ] ; then
|
if [ "$(rpm -q virtualbox virtualbox-host-source --queryformat='%{version}-%{release}\n' 2>/dev/null | sort -u | wc -l)" -ne "1" ] ; then
|
||||||
echo "virtualbox-host-source package version doesn't match"
|
echo "virtualbox-host-source package version doesn't match the version of virtualbox package."
|
||||||
echo "the version of virtualbox package."
|
echo "This situation is probably not fatal, thus we will try to continue .."
|
||||||
echo "Reinstall virtualbox-host-source package. Quitting .."
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
# Prerequisites are available, start build
|
# Prerequisites are available, start build
|
||||||
pushd $SOURCE > /dev/null 2>&1
|
pushd $SOURCE > /dev/null 2>&1
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 22 16:39:22 UTC 2017 - Larry.Finger@lwfinger.net
|
||||||
|
|
||||||
|
- Remove file "fix_KMS_support.patch" - Fixed upstream
|
||||||
|
Add new patch file "fixes_for_4.15.patch".
|
||||||
|
Modified vboxconfig.sh to issue a warning when there is a version mismatch rather than abort.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 11 03:40:07 UTC 2017 - Larry.Finger@lwfinger.net
|
Sat Nov 11 03:40:07 UTC 2017 - Larry.Finger@lwfinger.net
|
||||||
|
|
||||||
|
@ -103,8 +103,8 @@ Patch114: fixes_for_4.14.patch
|
|||||||
Patch115: vbox_fix_for_gcc7.patch
|
Patch115: vbox_fix_for_gcc7.patch
|
||||||
# Fix for missing include needed for server 1.19
|
# Fix for missing include needed for server 1.19
|
||||||
Patch116: Fix_for_server_1.19.patch
|
Patch116: Fix_for_server_1.19.patch
|
||||||
# Fix for missing cleanup in KMS support
|
# Fix for removal of init_timer_pinned() in kernel 4.15
|
||||||
Patch117: fix_KMS_support.patch
|
Patch117: fixes_for_4.15.patch
|
||||||
# Fix invalid use of internal headers
|
# Fix invalid use of internal headers
|
||||||
Patch118: internal-headers.patch
|
Patch118: internal-headers.patch
|
||||||
# Fix kernl API change in Leap 15
|
# Fix kernl API change in Leap 15
|
||||||
@ -124,6 +124,7 @@ BuildRequires: libboost_headers-devel
|
|||||||
%else
|
%else
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: %{kernel_module_package_buildreqs}
|
||||||
BuildRequires: dev86
|
BuildRequires: dev86
|
||||||
BuildRequires: device-mapper-devel
|
BuildRequires: device-mapper-devel
|
||||||
BuildRequires: dmidecode
|
BuildRequires: dmidecode
|
||||||
@ -135,7 +136,7 @@ BuildRequires: glibc-devel-static
|
|||||||
BuildRequires: gsoap-devel
|
BuildRequires: gsoap-devel
|
||||||
BuildRequires: java-devel >= 1.6.0
|
BuildRequires: java-devel >= 1.6.0
|
||||||
BuildRequires: kbuild >= 0.1.9998svn2808
|
BuildRequires: kbuild >= 0.1.9998svn2808
|
||||||
BuildRequires: kernel-syms
|
#BuildRequires: kernel-syms
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libelf-devel
|
BuildRequires: libelf-devel
|
||||||
@ -244,9 +245,9 @@ websrv GUI part for %{name}.
|
|||||||
|
|
||||||
%package host-KMP
|
%package host-KMP
|
||||||
Summary: Host kernel module for VirtualBox
|
Summary: Host kernel module for VirtualBox
|
||||||
|
#%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE7} -n %{name}-host -f %{SOURCE5} -x kdump um xen pae xenpae pv
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE7} -n %{name}-host -f %{SOURCE5} -x kdump um xen pae xenpae pv
|
Requires: %{kernel_module_package_buildreqs}
|
||||||
Requires: kernel-devel
|
|
||||||
|
|
||||||
%description host-KMP
|
%description host-KMP
|
||||||
This package contains the kernel-module for VirtualBox.
|
This package contains the kernel-module for VirtualBox.
|
||||||
@ -256,7 +257,7 @@ This package contains the kernel-module for VirtualBox.
|
|||||||
Summary: Guest kernel modules for VirtualBox
|
Summary: Guest kernel modules for VirtualBox
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE8} -n %{name}-guest -f %{SOURCE6} -x kdump um xen pae xenpae pv
|
%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE8} -n %{name}-guest -f %{SOURCE6} -x kdump um xen pae xenpae pv
|
||||||
Requires: kernel-devel
|
Requires: %{kernel_module_package_buildreqs}
|
||||||
|
|
||||||
%description guest-KMP
|
%description guest-KMP
|
||||||
This package contains the kernel-module for VirtualBox.
|
This package contains the kernel-module for VirtualBox.
|
||||||
@ -325,6 +326,8 @@ Summary: Source files for %{name} host kernel modules
|
|||||||
Group: Development/Sources
|
Group: Development/Sources
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: gcc
|
Requires: gcc
|
||||||
|
Requires: kernel-devel
|
||||||
|
Requires: libelf-devel
|
||||||
Requires: make
|
Requires: make
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user