commit ec726e4e87c7d0f260a2a21ec2087f77393fcfeb
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sun Apr 2 05:25:37 2023 +0100
Add support centos (8.8) stream
...s-Linux-vboxvideo-Additional-build-fixes-for.patch | 19 +++++--------------
VirtualBox-kmod.spec | 5 ++++-
2 files changed, 9 insertions(+), 15 deletions(-)
---
diff --git a/0001-Additions-Linux-vboxvideo-Additional-build-fixes-for.patch
b/0001-Additions-Linux-vboxvideo-Additional-build-fixes-for.patch
index 0018ff9..7683bf1 100644
--- a/0001-Additions-Linux-vboxvideo-Additional-build-fixes-for.patch
+++ b/0001-Additions-Linux-vboxvideo-Additional-build-fixes-for.patch
@@ -1,17 +1,8 @@
-From d18573c3ae3bbdff00fcedc687fa1faeb6a3b577 Mon Sep 17 00:00:00 2001
-From: vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>
-Date: Thu, 2 Feb 2023 19:50:15 +0000
Subject: [PATCH] Additions: Linux: vboxvideo: Additional build fixes for RHEL
9.1 and 9.2 kernels, bugref:10190, bugref:10237, bugref:10279,
ticketref:21446, ticketref:21450.
-git-svn-id:
http://www.virtualbox.org/svn/vbox@98455
cfe28804-0f27-0410-a406-dd0f0b0b656f
----
- trunk/src/VBox/Additions/linux/drm/vbox_drv.c | 2 +-
- trunk/src/VBox/Additions/linux/drm/vbox_drv.h | 2 +-
- trunk/src/VBox/Additions/linux/drm/vbox_mode.c | 2 +-
- trunk/src/VBox/Additions/linux/drm/vbox_ttm.c | 13 +++++++------
- 4 files changed, 10 insertions(+), 9 deletions(-)
+Added centos (8.8) stream
diff --git a/trunk/src/VBox/Additions/linux/drm/vbox_drv.c
b/trunk/src/VBox/Additions/linux/drm/vbox_drv.c
index b3f22e56e39..b85f4b9a618 100644
@@ -35,7 +26,7 @@ index 0a5a5f051d8..2902865848d 100644
#endif
-#if RTLNX_VER_MIN(6,0,0)
-+#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_MAJ_PREREQ(9,2)
++#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2)
# include <drm/drm_framebuffer.h>
#endif
@@ -48,7 +39,7 @@ index c6b7ef3143e..9f4316dd55b 100644
#endif
-#if RTLNX_VER_MIN(6,0,0)
-+#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_MAJ_PREREQ(9,2)
++#if RTLNX_VER_MIN(6,0,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2)
# include <drm/drm_edid.h>
#endif
@@ -65,9 +56,9 @@ index 5cc20cb8edd..abb027fcb88 100644
-#elif RTLNX_VER_MAX(5,11,0) && !RTLNX_RHEL_RANGE(8,5, 8,99)
- if (ttm_tt_init(tt, bo, page_flags)) {
-#elif RTLNX_VER_MAX(5,19,0)
-+#if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_MAJ_PREREQ(9,2)
++#if RTLNX_VER_MIN(5,19,0) || RTLNX_RHEL_RANGE(8,8, 8,99) || RTLNX_RHEL_MAJ_PREREQ(9,2)
+ if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined, 0)) {
-+#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,99)
++#elif RTLNX_VER_MIN(5,11,0) || RTLNX_RHEL_RANGE(8,5, 8,8)
if (ttm_tt_init(tt, bo, page_flags, ttm_write_combined)) {
+#elif RTLNX_VER_MIN(4,17,0) || RTLNX_RHEL_MAJ_PREREQ(7,6) || RTLNX_SUSE_MAJ_PREREQ(15,1)
|| RTLNX_SUSE_MAJ_PREREQ(12,5)
+ if (ttm_tt_init(tt, bo, page_flags)) {
diff --git a/VirtualBox-kmod.spec b/VirtualBox-kmod.spec
index 5939ffa..cee1f57 100644
--- a/VirtualBox-kmod.spec
+++ b/VirtualBox-kmod.spec
@@ -40,7 +40,7 @@
Name: VirtualBox-kmod
Version: 7.0.6
-Release: 2%{?dist}
+Release: 3%{?dist}
#Release: 1%%{?prerel:.%%{prerel}}%%{?dist}
Summary: Kernel module for VirtualBox
@@ -134,6 +134,9 @@ DIRS=$(ls %{name}-%{version} |wc -l)
%changelog
* Fri Mar 31 2023 Sérgio Basto <sergio(a)serjux.com> - 7.0.6-3
+- Add support to Centos Stream 8 (8.8)
+
+* Fri Mar 31 2023 Sérgio Basto <sergio(a)serjux.com> - 7.0.6-3
- apply offical patches for el 8 and 9 but we don't use at 9
* Wed Jan 18 2023 Sérgio Basto <sergio(a)serjux.com> - 7.0.6-1