1
0
forked from pool/virtualbox

Accepting request 632362 from Virtualization

- Fix 2 API changes for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added.

-VirtualBox 5.2.18 (released August 14 2018)
This is a maintenance release. The following items were fixed and/or added:
VMM: See user manual.
VMM: fix loading with recent binutils and self-built versions of VirtualBox (bug #17851)
NAT: fix --nataliasmode sameports which is a valid setting (bug #13000)
VRDP: fixed VM process termination on RDP client disconnect if 3D is enabled for the virtual machine

OBS-URL: https://build.opensuse.org/request/show/632362
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=168
This commit is contained in:
Dominique Leuenberger 2018-09-05 11:44:13 +00:00 committed by Git OBS Bridge
commit 6c21975e24
6 changed files with 54 additions and 6 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:323dd5790a2d2e03a9ab8523332b3166084a8ffbe67dbeafa95bc500974b2a9e
size 4442634
oid sha256:dcf37730537c761fbe96fb063015d8126055a635bc531cb2ecdfb56aa0f1913c
size 4454881

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:087e20460ea01c9d529cbcec2ea229c2c7b743a0d1b3b41ee55a607da46263ba
size 83360299

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:240cec92e7198d2f55f68943f8440567c5f416ad88d16008d26f796b0263a623
size 83375805

28
fixes_for_4.19.patch Normal file
View File

@ -0,0 +1,28 @@
Index: VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
===================================================================
--- VirtualBox-5.2.18.orig/src/VBox/Additions/linux/drm/vbox_mode.c
+++ VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
@@ -536,7 +536,11 @@ static void vbox_set_edid(struct drm_con
for (i = 0; i < EDID_SIZE - 1; ++i)
sum += edid[i];
edid[EDID_SIZE - 1] = (0x100 - (sum & 0xFF)) & 0xFF;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+ drm_connector_update_edid_property(connector, (struct edid *)edid);
+#else
drm_mode_connector_update_edid_property(connector, (struct edid *)edid);
+#endif
}
static int vbox_get_modes(struct drm_connector *connector)
@@ -703,7 +707,11 @@ static int vbox_connector_init(struct dr
drm_connector_register(connector);
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+ drm_connector_attach_encoder(connector, encoder);
+#else
drm_mode_connector_attach_encoder(connector, encoder);
+#endif
return 0;
}

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Aug 30 16:54:26 UTC 2018 - Larry Finger <Larry.Finger@gmail.com>
- Fix 2 API changes for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added.
-------------------------------------------------------------------
Wed Aug 15 16:06:01 UTC 2018 - Larry.Finger@gmail.com
-VirtualBox 5.2.18 (released August 14 2018)
This is a maintenance release. The following items were fixed and/or added:
VMM: See user manual.
VMM: fix loading with recent binutils and self-built versions of VirtualBox (bug #17851)
NAT: fix --nataliasmode sameports which is a valid setting (bug #13000)
VRDP: fixed VM process termination on RDP client disconnect if 3D is enabled for the virtual machine
-------------------------------------------------------------------
Sat Aug 4 14:48:02 UTC 2018 - Larry.Finger@gmail.com

View File

@ -40,7 +40,7 @@ python3 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile
%define _udevrulesdir %{_sysconfdir}/udev/rules.d
Name: virtualbox
# ********* If the VB version exceeds 5.2.x, notify the libvirt maintainer!!
Version: 5.2.16
Version: 5.2.18
Release: 0
Summary: VirtualBox is an Emulator
License: GPL-2.0-or-later
@ -134,6 +134,8 @@ Patch125: fixes_for_Qt5.11.patch
Patch126: switch_to_python3.6.patch
# Fix 32-bit builds
Patch127: fix_32_bit_builds.patch
# Fix API changes for kernel 4.19+
Patch128: fixes_for_4.19.patch
#
BuildRequires: LibVNCServer-devel
BuildRequires: SDL-devel
@ -435,6 +437,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL.
%patch125 -p1
%patch126 -p1
%patch127 -p1
%patch128 -p1
#copy user manual
cp %{SOURCE1} UserManual.pdf