Compare commits
29 Commits
Author | SHA256 | Date | |
---|---|---|---|
1884bc52cd | |||
|
2fd8480f9b | ||
|
d15b82c929 | ||
99680a1c79 | |||
324117a110 | |||
1738776d98 | |||
6f94c78476 | |||
fad76b07e8 | |||
|
4b46adddab | ||
c69449fd8a | |||
26a839baae | |||
|
163ca1c484 | ||
c10cfbdb7c | |||
84cfb17607 | |||
98fd308b06 | |||
46dc19ce6d | |||
43167a25af | |||
222866de11 | |||
c2cd5e2e10 | |||
86fdbe5dc4 | |||
2c787c3ad3 | |||
3abb14653c | |||
4c36cc83be | |||
b439cb0a11 | |||
b5ec841bec | |||
c70a6a7740 | |||
e20690747e | |||
e025fac446 | |||
6315d773bb |
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -15,6 +15,7 @@
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tpxz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5717b94fb45dc973c932c784bef311e1c605766489e8a40b498cd8dd2789480b
|
||||
size 151174176
|
BIN
VirtualBox-7.1.8-patched.tpxz
(Stored with Git LFS)
Normal file
BIN
VirtualBox-7.1.8-patched.tpxz
(Stored with Git LFS)
Normal file
Binary file not shown.
108
cxx17.patch
Normal file
108
cxx17.patch
Normal file
@ -0,0 +1,108 @@
|
||||
From: Jan Engelhardt <ej@inai.de>
|
||||
Date: 2024-09-20 22:48:58.758026690 +0200
|
||||
|
||||
The code uses <filesystem>, so ensure we always use -std=c++17 at the
|
||||
very least.
|
||||
|
||||
Prior to C++17, noexcept cannot be part of a type alias, and so is
|
||||
not part of the function signature, and so is not part of the ABI.
|
||||
|
||||
In C++17, noexcept is significant. There is a compile error because
|
||||
the FNCONSUMER alias as defined in a .h file does not match the
|
||||
function body in a .cpp file.
|
||||
|
||||
The def file is also wrong, but no one at virtualbox.org noticed for
|
||||
some reason, even though the def mismatch also caused a link/build
|
||||
failure in its own right.
|
||||
|
||||
To resolve the mismatch between .cpp/.h, the function signature is
|
||||
augmented by RT_NOEXCEPT, based upon the function head being the
|
||||
authoritative source as to whether something was meant to be noexcept
|
||||
or not.
|
||||
|
||||
In turn, adding RT_NOEXCEPT causes a change in the ABI of VBoxRT.so.
|
||||
The closed-source VirtualBox extension pack does not expect that and
|
||||
is unable to load [LD_BIND_NOW=1]. To resolve _that_, we add extra
|
||||
symbol aliases.
|
||||
|
||||
---
|
||||
Config.kmk | 3 +++
|
||||
include/iprt/cpp/restclient.h | 12 ++++++++++--
|
||||
src/VBox/Runtime/VBox/VBoxRTImp-gcc.def | 2 +-
|
||||
src/VBox/Runtime/common/rest/rest-binary.cpp | 9 +++++++++
|
||||
4 files changed, 23 insertions(+), 3 deletions(-)
|
||||
|
||||
Index: VirtualBox-7.1.0/Config.kmk
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.0.orig/Config.kmk
|
||||
+++ VirtualBox-7.1.0/Config.kmk
|
||||
@@ -3093,6 +3093,9 @@ ifeq ($(KBUILD_TARGET),darwin)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
+ifndef VBOX_GCC_std
|
||||
+ VBOX_GCC_std := -std=c++17
|
||||
+endif
|
||||
|
||||
#
|
||||
# Check for incompatible rpath combinations.
|
||||
Index: VirtualBox-7.1.0/include/iprt/cpp/restclient.h
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.0.orig/include/iprt/cpp/restclient.h
|
||||
+++ VirtualBox-7.1.0/include/iprt/cpp/restclient.h
|
||||
@@ -130,7 +130,11 @@ public:
|
||||
* is the sum of the previously returned @a *pcbActual values.
|
||||
*/
|
||||
typedef DECLCALLBACKTYPE(int, FNPRODUCER,(RTCRestBinaryParameter *a_pThis, void *a_pvDst, size_t a_cbDst,
|
||||
- uint64_t a_offContent, size_t *a_pcbActual)) /*RT_NOEXCEPT*/;
|
||||
+ uint64_t a_offContent, size_t *a_pcbActual))
|
||||
+#if defined(__cplusplus) && __cplusplus >= 201700L
|
||||
+RT_NOEXCEPT
|
||||
+#endif
|
||||
+;
|
||||
/** Pointer to a byte producer callback. */
|
||||
typedef FNPRODUCER *PFNPRODUCER;
|
||||
|
||||
@@ -268,7 +272,11 @@ public:
|
||||
* is the sum of the previous @a a_cbSrc values.
|
||||
*/
|
||||
typedef DECLCALLBACKTYPE(int, FNCONSUMER,(RTCRestBinaryResponse *a_pThis, const void *a_pvSrc, size_t a_cbSrc,
|
||||
- uint32_t a_uHttpStatus, uint64_t a_offContent, uint64_t a_cbContent)) /*RT_NOEXCEPT*/;
|
||||
+ uint32_t a_uHttpStatus, uint64_t a_offContent, uint64_t a_cbContent))
|
||||
+#if defined(__cplusplus) && __cplusplus >= 201700L
|
||||
+RT_NOEXCEPT
|
||||
+#endif
|
||||
+;
|
||||
/** Pointer to a byte consumer callback. */
|
||||
typedef FNCONSUMER *PFNCONSUMER;
|
||||
|
||||
Index: VirtualBox-7.1.0/src/VBox/Runtime/VBox/VBoxRTImp-gcc.def
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.0.orig/src/VBox/Runtime/VBox/VBoxRTImp-gcc.def
|
||||
+++ VirtualBox-7.1.0/src/VBox/Runtime/VBox/VBoxRTImp-gcc.def
|
||||
@@ -379,7 +379,7 @@ EXPORTS
|
||||
_ZN22RTCRestBinaryParameter16xmitHttpCallbackEP14RTHTTPINTERNALPvmyPmS2_ ; int64=llong
|
||||
_ZN22RTCRestBinaryParameter19setProducerCallbackEPFiPS_PvmmPmES1_m ; before-noexcept int64=long
|
||||
_ZN22RTCRestBinaryParameter19setProducerCallbackEPFiPS_PvmyPmES1_y ; before-noexcept int64=llong
|
||||
- _ZN22RTCRestBinaryParameter19setProducerCallbackEPDoFiPS_PvmyPmES1_m ; after-noexcept int64=long
|
||||
+ _ZN22RTCRestBinaryParameter19setProducerCallbackEPDoFiPS_PvmmPmES1_m ; after-noexcept int64=long
|
||||
_ZN22RTCRestBinaryParameter19setProducerCallbackEPDoFiPS_PvmyPmES1_y ; after-noexcept int64=llong
|
||||
_ZN22RTCRestBinaryParameterC1Ev
|
||||
_ZN22RTCRestBinaryParameterC2Ev
|
||||
Index: VirtualBox-7.1.0/src/VBox/Runtime/common/rest/rest-binary.cpp
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.0.orig/src/VBox/Runtime/common/rest/rest-binary.cpp
|
||||
+++ VirtualBox-7.1.0/src/VBox/Runtime/common/rest/rest-binary.cpp
|
||||
@@ -706,3 +706,12 @@ void RTCRestBinaryResponse::receiveCompl
|
||||
AssertRC(rc);
|
||||
}
|
||||
|
||||
+// extpack was built with wrong -std=, add a redirect
|
||||
+extern "C" void DECLEXPORT_CLASS __attribute__((weak,
|
||||
+alias("_ZN21RTCRestBinaryResponse19setConsumerCallbackEPDoFiPS_PKvmjmmEPv"))) // T symbol that exists
|
||||
+ _ZN21RTCRestBinaryResponse19setConsumerCallbackEPFiPS_PKvmjmmEPv( // W symbol to make
|
||||
+ RTCRestBinaryResponse::PFNCONSUMER, void *);
|
||||
+extern "C" void DECLEXPORT_CLASS __attribute__((weak,
|
||||
+alias("_ZN22RTCRestBinaryParameter19setProducerCallbackEPDoFiPS_PvmmPmES1_m"))) // T
|
||||
+ _ZN22RTCRestBinaryParameter19setProducerCallbackEPFiPS_PvmmPmES1_m( // W
|
||||
+ RTCRestBinaryParameter::PFNPRODUCER, void *, uint64_t);
|
0
fix_usb_rules.sh
Normal file → Executable file
0
fix_usb_rules.sh
Normal file → Executable file
@ -1,19 +1,11 @@
|
||||
Index: VirtualBox-7.0.20/src/libs/dxvk-native-1.9.2a/src/util/util_bit.h
|
||||
---
|
||||
src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
Index: VirtualBox-7.1.0/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h
|
||||
===================================================================
|
||||
--- VirtualBox-7.0.20.orig/src/libs/dxvk-native-1.9.2a/src/util/util_bit.h
|
||||
+++ VirtualBox-7.0.20/src/libs/dxvk-native-1.9.2a/src/util/util_bit.h
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
+#include <cstdint>
|
||||
#include "util_likely.h"
|
||||
#include "util_math.h"
|
||||
|
||||
Index: VirtualBox-7.0.20/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h
|
||||
===================================================================
|
||||
--- VirtualBox-7.0.20.orig/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h
|
||||
+++ VirtualBox-7.0.20/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h
|
||||
--- VirtualBox-7.1.0.orig/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h
|
||||
+++ VirtualBox-7.1.0/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h
|
||||
@@ -66,6 +66,9 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CO
|
||||
OF THIS SOFTWARE.
|
||||
|
||||
|
48
host-source.patch
Normal file
48
host-source.patch
Normal file
@ -0,0 +1,48 @@
|
||||
From: Jan Engelhardt <ej@inai.de>
|
||||
Date: 2024-11-14 15:11:28.216506193 +0100
|
||||
References: https://bugzilla.suse.com/1231346
|
||||
|
||||
Stop overriding INSTALL_MOD_DIR, stop using a non-standard path.
|
||||
[MODULE_DIR is a 2.4ism and irrelevant here;
|
||||
but INSTALL_MOD_DIR affects the 2.6+ install alike.]
|
||||
|
||||
---
|
||||
src/VBox/Installer/linux/Makefile-footer.gmk | 2 +-
|
||||
src/VBox/Installer/linux/Makefile-header.gmk | 4 +---
|
||||
2 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
Index: VirtualBox-7.1.4/src/VBox/Installer/linux/Makefile-footer.gmk
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.4.orig/src/VBox/Installer/linux/Makefile-footer.gmk
|
||||
+++ VirtualBox-7.1.4/src/VBox/Installer/linux/Makefile-footer.gmk
|
||||
@@ -145,7 +145,7 @@ $(VBOXMOD_0_TARGET):
|
||||
$(MAKE) V=$(VBOX_LNX_VERBOSE) $(VBOX_DISABLE_SIGN) -C $(KERN_DIR) $(VBOX_SUBDIR_VAR)=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules
|
||||
|
||||
install: $(VBOXMOD_0_TARGET)
|
||||
- $(MAKE) V=$(VBOX_LNX_VERBOSE) $(VBOX_DISABLE_SIGN) -C $(KERN_DIR) $(VBOX_SUBDIR_VAR)=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install
|
||||
+ $(MAKE) V=$(VBOX_LNX_VERBOSE) $(VBOX_DISABLE_SIGN) -C $(KERN_DIR) $(VBOX_SUBDIR_VAR)=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install
|
||||
|
||||
modules_install: install
|
||||
|
||||
Index: VirtualBox-7.1.4/src/VBox/Installer/linux/Makefile-header.gmk
|
||||
===================================================================
|
||||
--- VirtualBox-7.1.4.orig/src/VBox/Installer/linux/Makefile-header.gmk
|
||||
+++ VirtualBox-7.1.4/src/VBox/Installer/linux/Makefile-header.gmk
|
||||
@@ -261,8 +261,7 @@ endif
|
||||
# Kernel include folder
|
||||
KERN_INCL := $(KERN_DIR)/include
|
||||
# module install folder
|
||||
-INSTALL_MOD_DIR ?= misc
|
||||
-MODULE_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KERN_VER)/$(INSTALL_MOD_DIR)
|
||||
+MODULE_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KERN_VER)/updates
|
||||
|
||||
# For VBOX_GCC_CHECK_CC
|
||||
VBOX_CLOSEPAR := )
|
||||
@@ -298,7 +297,6 @@ endif
|
||||
ifdef DEBUG
|
||||
ifndef VBOX_KERN_QUIET
|
||||
$(warning dbg: INSTALL_MOD_PATH = $(INSTALL_MOD_PATH))
|
||||
-$(warning dbg: INSTALL_MOD_DIR = $(INSTALL_MOD_DIR))
|
||||
$(warning dbg: KERN_DIR = $(KERN_DIR))
|
||||
$(warning dbg: KERN_INCL = $(KERN_INCL))
|
||||
$(warning dbg: KERN_VERSION = $(KERN_VERSION))
|
23
kernel-6-15-EXTRA_CFLAGS.patch
Normal file
23
kernel-6-15-EXTRA_CFLAGS.patch
Normal file
@ -0,0 +1,23 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Subject: Use ccflags-y instead of EXTRA_CFLAGS
|
||||
References: kernel-6.15 build fix
|
||||
Patch-mainline: no
|
||||
|
||||
EXTRA_CFLAGS were removed in:
|
||||
e966ad0edd00 kbuild: remove EXTRA_*FLAGS support
|
||||
|
||||
So set ccflags-y (supported in new kernels) too (support also old kernels).
|
||||
---
|
||||
src/VBox/Installer/linux/Makefile-footer.gmk | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/src/VBox/Installer/linux/Makefile-footer.gmk
|
||||
+++ b/src/VBox/Installer/linux/Makefile-footer.gmk
|
||||
@@ -115,6 +115,7 @@ VBOXMOD_EXT := ko
|
||||
|
||||
# build defs
|
||||
EXTRA_CFLAGS += $(VBOXMOD_CFLAGS) $(addprefix -I,$(KERN_INCL) $(VBOXMOD_INCL)) $(VBOXMOD_0_KFLAGS) $(KDEBUG)
|
||||
+ccflags-y += $(EXTRA_CFLAGS)
|
||||
$(VBOXMOD_0_TARGET)-y := $(VBOXMOD_OBJS)
|
||||
obj-m += $(VBOXMOD_0_TARGET).o
|
||||
|
39
kernel-6-15-fb_probe.patch
Normal file
39
kernel-6-15-fb_probe.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Subject: drm_fb_helper_funcs::fb_probe is gone
|
||||
References: kernel-6.15 build fix
|
||||
Patch-mainline: no
|
||||
|
||||
drm_fb_helper_funcs::fb_probe was dropped in:
|
||||
41ff0b424d81 drm/fb-helper: Remove struct drm_fb_helper.fb_probe
|
||||
|
||||
This patch is incomplete -- it only makes the code to compile. So it
|
||||
needs a rewrite similar to:
|
||||
9fa154f40eb6 drm/{i915,xe}: Run DRM default client setup
|
||||
|
||||
---
|
||||
src/VBox/Additions/linux/drm/vbox_fb.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- a/src/VBox/Additions/linux/drm/vbox_fb.c
|
||||
+++ b/src/VBox/Additions/linux/drm/vbox_fb.c
|
||||
@@ -56,6 +56,7 @@
|
||||
# define VBOX_FBDEV_INFO(_helper) _helper.fbdev
|
||||
#endif
|
||||
|
||||
+#if RTLNX_VER_MAX(6,15,0)
|
||||
#if RTLNX_VER_MAX(4,7,0) && !RTLNX_RHEL_MAJ_PREREQ(7,4)
|
||||
/**
|
||||
* Tell the host about dirty rectangles to update.
|
||||
@@ -412,9 +413,12 @@ static int vboxfb_create(struct drm_fb_h
|
||||
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
static struct drm_fb_helper_funcs vbox_fb_helper_funcs = {
|
||||
+#if RTLNX_VER_MAX(6,15,0)
|
||||
.fb_probe = vboxfb_create,
|
||||
+#endif
|
||||
};
|
||||
|
||||
#if RTLNX_VER_MAX(4,3,0) && !RTLNX_RHEL_MAJ_PREREQ(7,3)
|
49
kernel-6-15-mkdir.patch
Normal file
49
kernel-6-15-mkdir.patch
Normal file
@ -0,0 +1,49 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Subject: inode_operations::mkdir returns struct dentry *
|
||||
References: kernel-6.15 build fix
|
||||
Patch-mainline: no
|
||||
|
||||
inode_operations::mkdir returns struct dentry * (and not int) since:
|
||||
88d5baf69082 Change inode_operations.mkdir to return struct dentry *
|
||||
|
||||
Adapt.
|
||||
---
|
||||
src/VBox/Additions/linux/sharedfolders/dirops.c | 13 +++++++++++--
|
||||
1 file changed, 11 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/src/VBox/Additions/linux/sharedfolders/dirops.c
|
||||
+++ b/src/VBox/Additions/linux/sharedfolders/dirops.c
|
||||
@@ -1088,7 +1088,9 @@ static int vbsf_inode_create(struct inod
|
||||
* @param mode file mode
|
||||
* @returns 0 on success, Linux error code otherwise
|
||||
*/
|
||||
-#if RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(9,6, 9,99) || defined(DOXYGEN_RUNNING)
|
||||
+#if RTLNX_VER_MIN(6,15,0)
|
||||
+static struct dentry *vbsf_inode_mkdir(struct mnt_idmap *idmap, struct inode *parent, struct dentry *dentry, umode_t mode)
|
||||
+#elif RTLNX_VER_MIN(6,3,0) || RTLNX_RHEL_RANGE(9,6, 9,99) || defined(DOXYGEN_RUNNING)
|
||||
static int vbsf_inode_mkdir(struct mnt_idmap *idmap, struct inode *parent, struct dentry *dentry, umode_t mode)
|
||||
#elif RTLNX_VER_MIN(5,12,0)
|
||||
static int vbsf_inode_mkdir(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode)
|
||||
@@ -1098,14 +1100,21 @@ static int vbsf_inode_mkdir(struct inode
|
||||
static int vbsf_inode_mkdir(struct inode *parent, struct dentry *dentry, int mode)
|
||||
#endif
|
||||
{
|
||||
+ int ret;
|
||||
TRACE();
|
||||
AssertMsg(!(mode & S_IFMT) || (mode & S_IFMT) == S_IFDIR, ("0%o\n", mode));
|
||||
- return vbsf_create_worker(parent, dentry, (mode & ~S_IFMT) | S_IFDIR,
|
||||
+
|
||||
+ ret = vbsf_create_worker(parent, dentry, (mode & ~S_IFMT) | S_IFDIR,
|
||||
SHFL_CF_ACT_CREATE_IF_NEW
|
||||
| SHFL_CF_ACT_FAIL_IF_EXISTS
|
||||
| SHFL_CF_ACCESS_READWRITE
|
||||
| SHFL_CF_DIRECTORY,
|
||||
false /*fStashHandle*/, false /*fDoLookup*/, NULL /*phHandle*/, NULL /*fCreated*/);
|
||||
+#if RTLNX_VER_MIN(6,15,0)
|
||||
+ return ERR_PTR(ret);
|
||||
+#else
|
||||
+ return ret;
|
||||
+#endif
|
||||
}
|
||||
|
||||
|
27
kernel-6-15-mode_valid.patch
Normal file
27
kernel-6-15-mode_valid.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Subject: drm_connector_helper_funcs::mode_valid() takes const mode
|
||||
References: kernel-6.15 build fix
|
||||
Patch-mainline: no
|
||||
|
||||
Since:
|
||||
26d6fd81916e drm/connector: make mode_valid take a const struct drm_display_mode
|
||||
|
||||
Adapt.
|
||||
---
|
||||
src/VBox/Additions/linux/drm/vbox_mode.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- a/src/VBox/Additions/linux/drm/vbox_mode.c
|
||||
+++ b/src/VBox/Additions/linux/drm/vbox_mode.c
|
||||
@@ -665,7 +665,11 @@ static int vbox_mode_valid(struct drm_co
|
||||
#else
|
||||
static enum drm_mode_status vbox_mode_valid(struct drm_connector *connector,
|
||||
#endif
|
||||
+#if RTLNX_VER_MIN(6,15,0)
|
||||
+ const struct drm_display_mode *mode)
|
||||
+#else
|
||||
struct drm_display_mode *mode)
|
||||
+#endif
|
||||
{
|
||||
return MODE_OK;
|
||||
}
|
65
kernel-6-15-timer.patch
Normal file
65
kernel-6-15-timer.patch
Normal file
@ -0,0 +1,65 @@
|
||||
From: Jiri Slaby <jslaby@suse.cz>
|
||||
Subject: Adapt to new timer interfaces
|
||||
References: kernel-6.15 build fix
|
||||
Patch-mainline: no
|
||||
|
||||
New interface must be used since:
|
||||
8fa7292fee5c treewide: Switch/rename to timer_delete[_sync]()
|
||||
|
||||
So:
|
||||
s/del_timer/timer_delete/
|
||||
s/del_timer_sync/timer_delete_sync/
|
||||
|
||||
(new interfaces available since 6.2 -- bb663f0f3c39 and 9b13df3fb64e)
|
||||
|
||||
|
||||
hrtimer_init() unavailable since:
|
||||
9779489a31d7 hrtimers: Delete hrtimer_init()
|
||||
|
||||
So:
|
||||
hrtimer_init() + .function set ---> hrtimer_setup()
|
||||
|
||||
(hrtimer_setup() available since 6.13 -- 908a1d775422)
|
||||
---
|
||||
src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
--- a/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||||
+++ b/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
|
||||
@@ -422,7 +422,11 @@ static void rtTimerLnxStopSubTimer(PRTTI
|
||||
}
|
||||
else
|
||||
#endif
|
||||
+#if RTLNX_VER_MIN(6,2,0)
|
||||
+ timer_delete(&pSubTimer->u.Std.LnxTimer);
|
||||
+#else
|
||||
del_timer(&pSubTimer->u.Std.LnxTimer);
|
||||
+#endif
|
||||
|
||||
rtTimerLnxSetState(&pSubTimer->enmState, RTTIMERLNXSTATE_STOPPED);
|
||||
}
|
||||
@@ -470,7 +474,11 @@ static void rtTimerLnxDestroyIt(PRTTIMER
|
||||
hrtimer_cancel(&pTimer->aSubTimers[iCpu].u.Hr.LnxTimer);
|
||||
else
|
||||
#endif
|
||||
+#if RTLNX_VER_MIN(6,2,0)
|
||||
+ timer_delete_sync(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
|
||||
+#else
|
||||
del_timer_sync(&pTimer->aSubTimers[iCpu].u.Std.LnxTimer);
|
||||
+#endif
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1626,8 +1634,12 @@ RTDECL(int) RTTimerCreateEx(PRTTIMER *pp
|
||||
#ifdef RTTIMER_LINUX_WITH_HRTIMER
|
||||
if (pTimer->fHighRes)
|
||||
{
|
||||
+#if RTLNX_VER_MIN(6,13,0)
|
||||
+ hrtimer_setup(&pTimer->aSubTimers[iCpu].u.Hr.LnxTimer, rtTimerLinuxHrCallback, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
|
||||
+#else
|
||||
hrtimer_init(&pTimer->aSubTimers[iCpu].u.Hr.LnxTimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
|
||||
pTimer->aSubTimers[iCpu].u.Hr.LnxTimer.function = rtTimerLinuxHrCallback;
|
||||
+#endif
|
||||
}
|
||||
else
|
||||
#endif
|
0
update-extpack.sh
Normal file → Executable file
0
update-extpack.sh
Normal file → Executable file
@ -1,7 +1,11 @@
|
||||
Index: VirtualBox-7.0.20/src/VBox/Installer/linux/vboxdrv.sh
|
||||
---
|
||||
src/VBox/Installer/linux/vboxdrv.sh | 42 ++++++------------------------------
|
||||
1 file changed, 7 insertions(+), 35 deletions(-)
|
||||
|
||||
Index: VirtualBox-7.1.0/src/VBox/Installer/linux/vboxdrv.sh
|
||||
===================================================================
|
||||
--- VirtualBox-7.0.20.orig/src/VBox/Installer/linux/vboxdrv.sh
|
||||
+++ VirtualBox-7.0.20/src/VBox/Installer/linux/vboxdrv.sh
|
||||
--- VirtualBox-7.1.0.orig/src/VBox/Installer/linux/vboxdrv.sh
|
||||
+++ VirtualBox-7.1.0/src/VBox/Installer/linux/vboxdrv.sh
|
||||
@@ -29,11 +29,12 @@
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
@ -66,17 +70,3 @@ Index: VirtualBox-7.0.20/src/VBox/Installer/linux/vboxdrv.sh
|
||||
|
||||
# Sign kernel modules if kernel configuration requires it.
|
||||
if test "$(kernel_requires_module_signature)" = "1"; then
|
||||
Index: VirtualBox-7.0.20/Config.kmk
|
||||
===================================================================
|
||||
--- VirtualBox-7.0.20.orig/Config.kmk
|
||||
+++ VirtualBox-7.0.20/Config.kmk
|
||||
@@ -3087,6 +3087,9 @@ else
|
||||
endif
|
||||
VBOX_MACOSX_ICON_FILE ?= $(PATH_ROOT)/src/VBox/Artwork/darwin/NonOSE/VirtualBox.icns
|
||||
endif
|
||||
+ifndef VBOX_GCC_std
|
||||
+ VBOX_GCC_std := -std=c++17
|
||||
+endif
|
||||
|
||||
|
||||
ifndef VBOX_NOINC_DYNAMIC_CONFIG_KMK
|
||||
|
0
vboxautostart-service.sh
Normal file → Executable file
0
vboxautostart-service.sh
Normal file → Executable file
@ -1,7 +1,6 @@
|
||||
[Unit]
|
||||
Description=VirtualBox guest VMSVGA resize client
|
||||
ConditionVirtualization=|oracle
|
||||
ExecCondition=sh -c '[[ "$XDG_SESSION_TYPE" == "wayland" ]] || exit -1'
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@ -10,4 +9,4 @@ Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# also Wanted by 90-vboxguest.rules
|
||||
|
0
vboxconfig.sh
Normal file → Executable file
0
vboxconfig.sh
Normal file → Executable file
0
vboxdrv.sh
Normal file → Executable file
0
vboxdrv.sh
Normal file → Executable file
0
vboxguestconfig.sh
Normal file → Executable file
0
vboxguestconfig.sh
Normal file → Executable file
0
vboxweb-service.sh
Normal file → Executable file
0
vboxweb-service.sh
Normal file → Executable file
@ -1,4 +1,3 @@
|
||||
KERNEL=="vboxguest", NAME="vboxguest", OWNER="root", MODE="0660" ENV{ID_INPUT}="1", ENV{ID_INPUT_MOUSE}="1"
|
||||
KERNEL=="vboxuser", NAME="vboxuser", OWNER="root", MODE="0660", TAG+="uaccess"
|
||||
ACTION=="add|change", SUBSYSTEM=="drm", KERNEL=="card[0-9]", SUBSYSTEMS=="pci", ATTRS{vendor}=="0x15ad", ATTRS{device}=="0x0405", TAG+="systemd", ENV{SYSTEMD_WANTS}="vboxclient.service"
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
%defattr (-,root,root)
|
||||
%dir %{kernel_module_directory}/%2-%1/
|
||||
%dir %{kernel_module_directory}/%2-%1/extra
|
||||
%{kernel_module_directory}/%2-%1/extra/vboxdrv.ko
|
||||
%{kernel_module_directory}/%2-%1/extra/vboxnetadp.ko
|
||||
%{kernel_module_directory}/%2-%1/extra/vboxnetflt.ko
|
||||
%{kernel_module_directory}/%2-%1/extra/vboxguest.ko
|
||||
%{kernel_module_directory}/%2-%1/extra/vboxsf.ko
|
||||
%{kernel_module_directory}/%2-%1/extra/vboxvideo.ko
|
@ -1,4 +1,3 @@
|
||||
Requires: kernel-%1
|
||||
Provides: virtualbox-kmp = %version
|
||||
Enhances: kernel-%1
|
||||
Supplements: (virtualbox-guest-tools and kernel-%1)
|
||||
|
||||
|
7
virtualbox-patch-source.sh
Normal file → Executable file
7
virtualbox-patch-source.sh
Normal file → Executable file
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "You need to pass the filename VirtualBox-x.y.z.tar.bz2 as first argument."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REMOVE_DIRS=(
|
||||
src/VBox/Additions/WINNT
|
||||
src/VBox/Additions/os2
|
||||
@ -54,4 +59,4 @@ fi
|
||||
cp -a "$BASENAME.tar.bz2" "$BASENAME-patched.tar.bz2"
|
||||
bunzip2 "$BASENAME-patched.tar.bz2"
|
||||
tar --wildcards --delete -f "$BASENAME-patched.tar" "${REMOVE_DIRS[@]}"
|
||||
bzip2 "$BASENAME-patched.tar"
|
||||
pixz -9 "$BASENAME-patched.tar"
|
||||
|
2
virtualbox-wrapper.sh
Normal file → Executable file
2
virtualbox-wrapper.sh
Normal file → Executable file
@ -67,4 +67,4 @@ then
|
||||
exit 1
|
||||
fi
|
||||
# Now run the VB GUI
|
||||
LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" /usr/lib/virtualbox/VirtualBox6 $@
|
||||
LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" exec /usr/lib/virtualbox/VirtualBoxQt "$@"
|
||||
|
@ -1,3 +1,124 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 16 13:59:59 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 7.1.8
|
||||
* VMM: Fixed issue when VM clock went backwards in rare
|
||||
circumstances.
|
||||
* Graphics: Fixed issue when assertion was triggered on
|
||||
restoring VM state if VMSVGA graphics adapter was used
|
||||
without 3D acceleration.
|
||||
* Linux Guest Additions: Fixed issue when VBoxClient could
|
||||
crash in XWayland guest.
|
||||
- Delete kernel-6-14.patch (obsolete)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 9 09:02:26 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
- build with kernel 6.15, add:
|
||||
* kernel-6-15-EXTRA_CFLAGS.patch
|
||||
* kernel-6-15-fb_probe.patch -- this disables fb_probe and needs
|
||||
a rewrite similar to "9fa154f40eb6 drm/{i915,xe}: Run DRM default
|
||||
client setup". Good luck.
|
||||
* kernel-6-15-mkdir.patch
|
||||
* kernel-6-15-mode_valid.patch
|
||||
* kernel-6-15-timer.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 28 10:06:19 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 7.1.6a
|
||||
* VirtioNet: Fixed issue with re-negotiation of features
|
||||
after reset
|
||||
* Graphics: Fixed issue with Linux guest screen flickering when
|
||||
guest was using VMSVGA graphics adapter
|
||||
* Linux Guest Additions: Introduced initial support for
|
||||
kernel 6.13
|
||||
- Delete kernel-6-13.patch (merged)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 28 06:42:00 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
- add: kernel-6-14.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 21 11:17:17 UTC 2025 - Jiri Slaby <jslaby@suse.cz>
|
||||
|
||||
- add: kernel-6-13.patch (bsc#1235146)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 4 01:40:37 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Remove bogus ExecCondition= from vboxclient.service.
|
||||
[boo#1234870]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 29 22:25:33 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Set kvm.enable_virt_at_load=0 via a modprobe file when virtualbox
|
||||
is installed, to workaround kvm.ko stealing VMX mode.
|
||||
<https://lore.kernel.org/kvm/ZwQjUSOle6sWARsr@google.com/T/ >
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 14 16:03:49 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Use distro-default INSTALL_MOD_DIR for both kmp
|
||||
and for local-built files. Add host-source.patch [boo#1233251].
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 16 23:37:43 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 7.1.4
|
||||
* NAT: Fixed DHCP problems with certain guests when domain is
|
||||
empty
|
||||
* VMSVGA: Improved flickering, black screen and other screen
|
||||
update issues with recent Linux kernels
|
||||
* Linux Guest Additions: Introduce initial support for kernel 6.12
|
||||
* EFI: Added missing LsiLogic MPT SCSI driver again to fix
|
||||
booting from devices attached to this device if the EFI
|
||||
firmware is used (7.1.0 regression)
|
||||
* EFI: Restored broken network boot support (7.1.0 regression)
|
||||
* Adressed CVE-2024-21248 [boo#1231735],
|
||||
CVE-2024-21273 [boo#1231736], CVE-2024-21259 [boo#1231737],
|
||||
CVE-2024-21263 [boo#1231738]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 1 23:30:00 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Edit cxx17.patch to make the Extension Pack work with our
|
||||
compiler flags and RT_NOEXCEPT choices. [boo#1231225]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 29 12:00:17 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Set BuildRequire on glslang to 11.5; this is when it starts to
|
||||
recognize GL_EXT_spirv_intrinsics.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 20 22:33:49 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 7.1
|
||||
* The GUI now offers a selection between Basic and Experienced
|
||||
user level with reduced or full UI functionality.
|
||||
* VRDE: If user does not set up TLS with custom certificates,
|
||||
enable it with self-signed certificate, including issuing a
|
||||
new one before the old one expires
|
||||
* NAT: New engine with IPv6 support.
|
||||
* Linux host and guest: Added Wayland support for Clipboard
|
||||
sharing.
|
||||
- Add cxx17.patch to workaround "new" build failures
|
||||
with gcc14/C++17
|
||||
- Move the C++17 command line switch from vbox-vboxadd-init-script.diff
|
||||
to cxx17.patch
|
||||
- Add Conflict markers to prevent the situation {virtualbox-7.1
|
||||
combined with virtualbox-qt-7.0}; old VBQT did not have the right
|
||||
(strong enough) Requires lines.
|
||||
|
||||
---------------------------------------------------------------------
|
||||
Wed Aug 12 20:12:00 UTC 2024 - Larry Rainey <llrainey15@gmail.com>
|
||||
|
||||
|
415
virtualbox.spec
415
virtualbox.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package virtualbox
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,42 +17,53 @@
|
||||
|
||||
|
||||
%if "@BUILD_FLAVOR@" == "kmp"
|
||||
### macros for virtualbox-kmp ###
|
||||
%define main_package 0
|
||||
%define kmp_package 1
|
||||
%if 0%{?suse_version} > 1600
|
||||
%define kmp_longterm 1
|
||||
%endif
|
||||
%define name_suffix kmp
|
||||
%define dash -
|
||||
%define package_summary Kernel modules for VirtualBox
|
||||
%if %{undefined kernel_module_directory}
|
||||
%define kernel_module_directory /lib/modules
|
||||
%endif
|
||||
# macros for virtualbox-kmp
|
||||
%define main_package 0
|
||||
%define kmp_package 1
|
||||
%if 0%{?suse_version} > 1600
|
||||
%define kmp_longterm 1
|
||||
%endif
|
||||
%define name_suffix kmp
|
||||
%define dash -
|
||||
%define package_summary Kernel modules for VirtualBox
|
||||
%if %{undefined kernel_module_directory}
|
||||
%define kernel_module_directory /lib/modules
|
||||
%endif
|
||||
%else
|
||||
### macros for virtualbox main package ###
|
||||
%define main_package 1
|
||||
%define kmp_package 0
|
||||
%define package_summary VirtualBox is an Emulator
|
||||
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
|
||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||
%if ! %{defined _fillupdir}
|
||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||
# macros for virtualbox main package ###
|
||||
%define main_package 1
|
||||
%define kmp_package 0
|
||||
%define package_summary VirtualBox is an Emulator
|
||||
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
|
||||
# Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||
%if !%{defined _fillupdir}
|
||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||
%endif
|
||||
%if ! %{defined _distconfdir}
|
||||
%define _distconfdir %{_sysconfdir}
|
||||
%endif
|
||||
# Do not provide libGL.so symbols - they are owned by Mesa already and
|
||||
# this could potentially confuse rpm/zypp
|
||||
%global __provides_exclude ^libE?GL.so.1.*$
|
||||
# With 32-bit builds, the job limit cannot be larger than 2, otherwise
|
||||
# the build runs out of memory.
|
||||
# For 64-bit builds, no memory limit is reached when more jobs are run,
|
||||
# but the builds crash with strange errors.
|
||||
# For the above reasons, limit the number of jobs to 2.
|
||||
%define _vbox_instdir %{_prefix}/lib/virtualbox
|
||||
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
|
||||
%endif
|
||||
%if ! %{defined _distconfdir}
|
||||
%define _distconfdir %{_sysconfdir}
|
||||
|
||||
# If you want to disable building Python parts, just set this to %%nil
|
||||
%global mypython python311
|
||||
%if "%mypython" != ""
|
||||
%global __mypython %{expand:%%__%{mypython}}
|
||||
%global mypython_sitelib %{expand:%%%{mypython}_sitelib}
|
||||
%endif
|
||||
# Do not provide libGL.so symbols - they are owned by Mesa already and this could potentially confuse rpm/zypp
|
||||
%global __provides_exclude ^libE?GL.so.1.*$
|
||||
# With 32-bit builds, the job limit cannot be larger than 2, otherwise the build runs out of memory.
|
||||
# For 64-bit builds, no memory limit is reached when more jobs are run, but the builds crash with strange errors.
|
||||
# For the above reasons, limit the number of jobs to 2.
|
||||
%define _vbox_instdir %{_prefix}/lib/virtualbox
|
||||
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
|
||||
%endif
|
||||
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
|
||||
|
||||
Name: virtualbox%{?dash}%{?name_suffix}
|
||||
Version: 7.0.20
|
||||
Version: 7.1.8
|
||||
%define rversion %version
|
||||
Release: 0
|
||||
Summary: %{package_summary}
|
||||
License: GPL-3.0-or-later
|
||||
@ -67,11 +78,11 @@ URL: https://www.virtualbox.org/
|
||||
# script virtualbox-patch-source.sh will do the job :)
|
||||
# WARNING: This is not a comment, but the real command to repack source
|
||||
#%%(bash %%{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%%{version}.tar.bz2)
|
||||
Source0: VirtualBox-%{version}-patched.tar.bz2
|
||||
#Source: https://download.virtualbox.org/virtualbox/7.1.8/VirtualBox-7.1.8.tar.bz2
|
||||
Source0: VirtualBox-%{version}-patched.tpxz
|
||||
Source1: UserManual.pdf
|
||||
Source3: virtualbox-60-vboxguest.rules
|
||||
Source4: virtualbox-default.virtualbox
|
||||
Source5: virtualbox-kmp-files
|
||||
Source7: virtualbox-kmp-preamble
|
||||
Source8: update-extpack.sh
|
||||
Source9: virtualbox-wrapper.sh
|
||||
@ -113,6 +124,13 @@ Patch8: turn_off_cloud_net.patch
|
||||
Patch9: vbox-usb-warning.diff
|
||||
# Patch for 15.5
|
||||
Patch10: fix_for_leap15.5.patch
|
||||
Patch11: cxx17.patch
|
||||
Patch12: host-source.patch
|
||||
Patch15: kernel-6-15-EXTRA_CFLAGS.patch
|
||||
Patch16: kernel-6-15-timer.patch
|
||||
Patch17: kernel-6-15-mkdir.patch
|
||||
Patch18: kernel-6-15-mode_valid.patch
|
||||
Patch19: kernel-6-15-fb_probe.patch
|
||||
#
|
||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||
BuildRequires: %{kernel_module_package_buildreqs}
|
||||
@ -122,9 +140,14 @@ BuildRequires: kernel-syms-longterm
|
||||
BuildRequires: acpica
|
||||
BuildRequires: cmake-full
|
||||
BuildRequires: dwarves
|
||||
%if 0%{?suse_version} && 0%{?suse_version} >= 1600
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: kbuild >= 0.1.9998svn3101
|
||||
%else
|
||||
BuildRequires: gcc12
|
||||
BuildRequires: gcc12-c++
|
||||
%endif
|
||||
BuildRequires: kbuild >= 0.1.9998+svn3613
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
@ -140,36 +163,22 @@ Source2: VirtualBox.appdata.xml
|
||||
%endif
|
||||
### Requirements for virtualbox main package ###
|
||||
%if %{main_package}
|
||||
BuildRequires: LibVNCServer-devel
|
||||
BuildRequires: SDL2-devel
|
||||
BuildRequires: alsa-devel
|
||||
BuildRequires: device-mapper-devel
|
||||
BuildRequires: dmidecode
|
||||
BuildRequires: e2fsprogs-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glibc-devel-static
|
||||
BuildRequires: glslang-devel
|
||||
BuildRequires: gsoap-devel >= 2.8.50
|
||||
BuildRequires: glslang-devel >= 11.5
|
||||
BuildRequires: java-devel >= 1.6.0
|
||||
#BuildRequires: libSDL2-2_0-0
|
||||
BuildRequires: libelf-devel
|
||||
BuildRequires: libidl-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libopus-devel
|
||||
BuildRequires: libqt5-linguist
|
||||
BuildRequires: libqt5-linguist-devel
|
||||
BuildRequires: libqt5-qtbase-devel
|
||||
BuildRequires: libqt5-qttools-devel
|
||||
BuildRequires: libqt5-qtx11extras-devel
|
||||
BuildRequires: libtpms-devel
|
||||
BuildRequires: libvpx-devel
|
||||
BuildRequires: libxslt-devel
|
||||
BuildRequires: libzio-devel
|
||||
BuildRequires: lzfse
|
||||
BuildRequires: lzfse-devel
|
||||
BuildRequires: pulseaudio-devel
|
||||
%if "%mypython" != ""
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: %{mypython}-devel
|
||||
BuildRequires: %{mypython}-setuptools
|
||||
BuildRequires: %{mypython}-pip
|
||||
%endif
|
||||
BuildRequires: qt6-tools-linguist
|
||||
BuildRequires: rpm
|
||||
BuildRequires: sed
|
||||
BuildRequires: systemd-rpm-macros
|
||||
@ -177,16 +186,39 @@ BuildRequires: sysuser-tools
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: which
|
||||
BuildRequires: xorg-x11-server
|
||||
BuildRequires: pkgconfig(Qt6Core)
|
||||
BuildRequires: pkgconfig(Qt6DBus)
|
||||
BuildRequires: pkgconfig(Qt6Gui)
|
||||
BuildRequires: pkgconfig(Qt6Help)
|
||||
BuildRequires: pkgconfig(Qt6Network)
|
||||
BuildRequires: pkgconfig(Qt6PrintSupport)
|
||||
BuildRequires: pkgconfig(Qt6Sql)
|
||||
BuildRequires: pkgconfig(Qt6StateMachine)
|
||||
BuildRequires: pkgconfig(Qt6Widgets)
|
||||
BuildRequires: pkgconfig(Qt6Xml)
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: pkgconfig(devmapper)
|
||||
BuildRequires: pkgconfig(fontsproto)
|
||||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(glx)
|
||||
BuildRequires: pkgconfig(gsoap) >= 2.8.50
|
||||
BuildRequires: pkgconfig(libIDL-2.0)
|
||||
BuildRequires: pkgconfig(libelf)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(libssl)
|
||||
BuildRequires: pkgconfig(libtpms)
|
||||
BuildRequires: pkgconfig(libvncserver)
|
||||
BuildRequires: pkgconfig(libxslt)
|
||||
BuildRequires: pkgconfig(opus)
|
||||
BuildRequires: pkgconfig(randrproto)
|
||||
BuildRequires: pkgconfig(renderproto)
|
||||
BuildRequires: pkgconfig(resourceproto)
|
||||
BuildRequires: pkgconfig(scrnsaverproto)
|
||||
BuildRequires: pkgconfig(sdl)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
BuildRequires: pkgconfig(vpx)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xau)
|
||||
BuildRequires: pkgconfig(xcomposite)
|
||||
@ -203,7 +235,12 @@ BuildRequires: pkgconfig(xproto)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
Requires: %{name}-kmp = %{version}
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): permissions
|
||||
Requires(post): permissions
|
||||
Requires(verify): permissions
|
||||
Conflicts: %{name}-qt < %{version}
|
||||
Conflicts: %{name}-qt > %{version}
|
||||
Conflicts: %{name}-websrv < %{version}
|
||||
Conflicts: %{name}-websrv > %{version}
|
||||
Recommends: %{name}-gui = %{version}
|
||||
# package i4l-vbox from source package i4l-base shares the directory /etc/vbox
|
||||
# with us, but with different owner.
|
||||
@ -219,8 +256,13 @@ BuildRequires: libboost_headers-devel
|
||||
BuildRequires: boost-devel
|
||||
%endif
|
||||
%ifarch amd64 x86_64 ia32e em64t
|
||||
%if 0%{?suse_version} && 0%{?suse_version} >= 1600
|
||||
BuildRequires: gcc-32bit
|
||||
BuildRequires: gcc-c++-32bit
|
||||
%else
|
||||
BuildRequires: gcc12-32bit
|
||||
BuildRequires: gcc12-c++-32bit
|
||||
%endif
|
||||
BuildRequires: xorg-x11-libX11-devel-32bit
|
||||
BuildRequires: xorg-x11-libXext-devel-32bit
|
||||
BuildRequires: xorg-x11-libXmu-devel-32bit
|
||||
@ -239,7 +281,7 @@ BuildRequires: libpulse-devel
|
||||
BuildRequires: libxml2-devel
|
||||
Requires: ca-certificates
|
||||
Requires: openSUSE-signkey-cert
|
||||
%kernel_module_package -p %{SOURCE7} -n virtualbox -f %{SOURCE5} -x kdump um xen pae xenpae pv
|
||||
%kernel_module_package -p %{SOURCE7} -n virtualbox -x kdump um xen pae xenpae pv
|
||||
# end of kmp_package
|
||||
%endif
|
||||
### Description and subpackages of virtualbox main package ###
|
||||
@ -256,7 +298,9 @@ the terms of the GNU Public License (GPL).
|
||||
Summary: Qt GUI part for %{name}
|
||||
Group: System/Emulators/PC
|
||||
Requires(pre): %{name} = %{version}
|
||||
Requires(pre): permissions
|
||||
Requires: %{name} = %{version}
|
||||
Requires(post): permissions
|
||||
Requires(verify): permissions
|
||||
Provides: %{name}-gui = %{version}
|
||||
#this is needed during update to trigger installing qt subpackage
|
||||
#http://en.opensuse.org/openSUSE:Upgrade_dependencies_explanation#Splitting_and_Merging
|
||||
@ -299,28 +343,32 @@ Requires(pre): net-tools-deprecated
|
||||
%description guest-tools
|
||||
VirtualBox guest addition tools.
|
||||
|
||||
%package -n python3-%{name}
|
||||
%if "%mypython" != ""
|
||||
%package -n %{mypython}-%{name}
|
||||
Summary: Python bindings for %{name}
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
#rename from "ose" version:
|
||||
Provides: python3-%{name} = %{version}-%{release}
|
||||
Provides: %{mypython}-%{name} = %{version}-%{release}
|
||||
Obsoletes: python-%{name} < %{version}-%{release}
|
||||
Obsoletes: python2-%{name} < %{version}-%{release}
|
||||
Obsoletes: python3-%{name} < %{version}-%{release}
|
||||
Provides: python3-%{name}-ose = %{version}
|
||||
Provides: %{mypython}-%{name}-ose = %{version}
|
||||
Obsoletes: python-%{name}-ose < %{version}
|
||||
Obsoletes: python2-%{name}-ose < %{version}
|
||||
Obsoletes: python3-%{name}-ose < %{version}
|
||||
|
||||
%description -n python3-%{name}
|
||||
%description -n %{mypython}-%{name}
|
||||
Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
||||
%endif
|
||||
|
||||
%package devel
|
||||
Summary: Devel files for %{name}
|
||||
Group: Development/Libraries/Other
|
||||
Requires: %{name} = %{version}
|
||||
Requires: python3-%{name} = %{version}
|
||||
%if "%mypython" != ""
|
||||
Requires: %{mypython}-%{name} = %{version}
|
||||
%endif
|
||||
#rename from "ose" version:
|
||||
Provides: %{name}-ose-devel = %{version}
|
||||
Obsoletes: %{name}-ose-devel < %{version}
|
||||
@ -376,11 +424,9 @@ Requires: %{name} = %{version}
|
||||
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer
|
||||
protocol (RFB) to remotely control another computer. When this optional feature is desired, it is installed
|
||||
as an "extpack" for VirtualBox. The implementation is licensed under GPL.
|
||||
###########################################
|
||||
# main_package
|
||||
%endif
|
||||
|
||||
### Description of virtualbox-kmp ###
|
||||
%if %{kmp_package}
|
||||
%description
|
||||
This package contains the kernel-modules that VirtualBox uses to create or run virtual machines.
|
||||
@ -388,17 +434,7 @@ This package contains the kernel-modules that VirtualBox uses to create or run v
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n VirtualBox-%{version}
|
||||
%patch -P 1 -p1
|
||||
%patch -P 2 -p1
|
||||
%patch -P 3 -p1
|
||||
%patch -P 4 -p1
|
||||
%patch -P 5 -p1
|
||||
%patch -P 6 -p1
|
||||
%patch -P 7 -p1
|
||||
%patch -P 8 -p1
|
||||
%patch -P 9 -p1
|
||||
%patch -P 10 -p1
|
||||
%autosetup -n VirtualBox-%{rversion} -p1
|
||||
|
||||
### Documents for virtualbox main package ###
|
||||
%if %{main_package}
|
||||
@ -419,13 +455,20 @@ sed -i 's:include/drm:%{_prefix}/src/linux/include/drm:' src/VBox/Additions/linu
|
||||
### %%build, %%install, and %%file sections for virtualbox ###
|
||||
%if %{main_package}
|
||||
%build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
||||
# kmk is annoying, does not respond to CXX=g++-12 ...
|
||||
mkdir tc
|
||||
export PATH="$PWD/tc:$PATH"
|
||||
ln -s /usr/bin/gcc-12 tc/gcc
|
||||
ln -s /usr/bin/g++-12 tc/g++
|
||||
%endif
|
||||
# Disable LTO - Link Time Optimization
|
||||
%define _lto_cflags %{nil}
|
||||
#ensure we don't ever use them
|
||||
rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}
|
||||
|
||||
# --disable-kmods don't build Linux kernel modules - but use SUSE specific way see few lines under
|
||||
# NOT an autoconf ceonfigure macro
|
||||
# NOT an autoconf configure script
|
||||
./configure \
|
||||
--enable-vnc \
|
||||
--enable-vde \
|
||||
@ -434,6 +477,9 @@ rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}
|
||||
--disable-java \
|
||||
--disable-docs \
|
||||
--enable-webservice \
|
||||
%if "%mypython" == ""
|
||||
--disable-python \
|
||||
%endif
|
||||
--with-makeself=%{_bindir}/true
|
||||
|
||||
# configure actually warns we should source env.sh (which seems like it could influence the build...)
|
||||
@ -475,41 +521,39 @@ EOF
|
||||
%sysusers_generate_pre vbox-guest-tools.conf vbox-guest-tools vbox-guest-tools.conf
|
||||
|
||||
%install
|
||||
#################################
|
||||
echo "create directory structure"
|
||||
#################################
|
||||
install -d -m 755 %{buildroot}%{_sbindir}
|
||||
install -d -m 755 %{buildroot}%{_prefix}/lib
|
||||
install -d -m 755 %{buildroot}%{_bindir}
|
||||
install -d -m 755 %{buildroot}%{_sbindir}
|
||||
install -d -m 755 %{buildroot}%{_datadir}/virtualbox/nls
|
||||
install -d -m 755 %{buildroot}%{_datadir}/virtualbox/UnattendedTemplates
|
||||
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
|
||||
install -d -m 755 %{buildroot}%{_datadir}/applications
|
||||
install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
||||
install -d -m 755 %{buildroot}%{_vbox_instdir}/components
|
||||
install -d -m 755 %{buildroot}%{_libdir}/dri
|
||||
install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/drivers
|
||||
install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/input
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/default
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/init.d
|
||||
install -d %{buildroot}%{_unitdir}
|
||||
install -d %{buildroot}%{_unitdir}/multi-user.target.wants
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/vbox
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/vbox/autostart.d
|
||||
install -d -m 755 %{buildroot}%{_udevrulesdir}
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
|
||||
mkdir -p \
|
||||
%{buildroot}%{_sbindir} \
|
||||
%{buildroot}%{_prefix}/lib \
|
||||
%{buildroot}%{_bindir} \
|
||||
%{buildroot}%{_sbindir} \
|
||||
%{buildroot}%{_datadir}/virtualbox/nls \
|
||||
%{buildroot}%{_datadir}/virtualbox/UnattendedTemplates \
|
||||
%{buildroot}%{_datadir}/pixmaps \
|
||||
%{buildroot}%{_datadir}/applications \
|
||||
%{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom \
|
||||
%{buildroot}%{_vbox_instdir}/components \
|
||||
%{buildroot}%{_libdir}/dri \
|
||||
%{buildroot}%{_libdir}/xorg/modules/drivers \
|
||||
%{buildroot}%{_libdir}/xorg/modules/input \
|
||||
%{buildroot}%{_sysconfdir}/default \
|
||||
%{buildroot}%{_sysconfdir}/init.d \
|
||||
%{buildroot}%{_unitdir} \
|
||||
%{buildroot}%{_unitdir}/multi-user.target.wants \
|
||||
%{buildroot}%{_sysconfdir}/vbox \
|
||||
%{buildroot}%{_sysconfdir}/vbox/autostart.d \
|
||||
%{buildroot}%{_udevrulesdir} \
|
||||
%{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d \
|
||||
%{buildroot}%{_modprobedir}
|
||||
|
||||
###########################################
|
||||
echo "entering guest-tools install section"
|
||||
###########################################
|
||||
install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}
|
||||
install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_sbindir}/VBoxService
|
||||
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}%{_sbindir}/mount.vboxsf
|
||||
install -m 744 src/VBox/Additions/linux/installer/vboxadd-service.sh %{buildroot}%{_vbox_instdir}/vboxadd-service
|
||||
install -d %{buildroot}%{_userunitdir}
|
||||
# udev rule for guest (virtualbox-guest-tools)
|
||||
install -m 644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/90-vboxguest.rules
|
||||
install -m 644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/90-vboxguest.rules
|
||||
install -p -m 0644 -D %{SOURCE12} %{buildroot}%{_unitdir}/vboxclient.service
|
||||
install -p -m 0644 -D %{SOURCE13} %{buildroot}%{_unitdir}/vboxservice.service
|
||||
# /media is used for auto-mounting of shared folders
|
||||
@ -524,64 +568,52 @@ install -m 644 %{SOURCE25} %{buildroot}%{_sysconfdir}/xdg/autostart/vboxclient.d
|
||||
install -d -m 755 %{buildroot}/media
|
||||
%endif
|
||||
|
||||
###########################################
|
||||
echo "entering VNC extension install section"
|
||||
###########################################
|
||||
pushd out/linux.*/release/packages/
|
||||
mkdir -p "%{buildroot}%{_datadir}/virtualbox/extensions/"
|
||||
install -D -m 644 VNC-*.vbox-extpack "%{buildroot}%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
||||
install -D -m 644 VNC-*.vbox-extpack "%{buildroot}%{_datadir}/virtualbox/extensions/VNC-%{rversion}.vbox-extpack"
|
||||
popd
|
||||
|
||||
##############################################
|
||||
echo "entering virtualbox(-qt) install section"
|
||||
##############################################
|
||||
# copy the main files to %%{_vbox_instdir}
|
||||
pushd out/linux.*/release/bin
|
||||
install -m 755 VBoxManage %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxHeadless %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxSDL %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxNetNAT %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxAutostart %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxVolInfo %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 vboxshell.py %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxBalloonCtrl %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxDTrace %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxDbg.so %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxDbg.so %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxDxVk.so %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 UICommon.so %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 vboximg-mount %{buildroot}%{_vbox_instdir}
|
||||
cp -a VBoxManage VBoxHeadless VBoxSDL VBoxNetNAT VBoxAutostart VBoxVolInfo \
|
||||
VBoxBalloonCtrl webtest VBoxDTrace VBoxDbg.so \
|
||||
VBoxDxVk.so UICommon.so vboximg-mount %{buildroot}%{_vbox_instdir}
|
||||
%if "%mypython" != ""
|
||||
cp -a vboxshell.py %{buildroot}/%{_vbox_instdir}
|
||||
%endif
|
||||
# create links to vbox tools in PATH - they could be usefull for controlling vbox from command line
|
||||
ln -s %{_vbox_instdir}/VBoxManage %{buildroot}%{_bindir}/VBoxManage
|
||||
ln -s %{_vbox_instdir}/VBoxHeadless %{buildroot}%{_bindir}/VBoxHeadless
|
||||
ln -s %{_vbox_instdir}/VBoxSDL %{buildroot}%{_bindir}/VBoxSDL
|
||||
ln -s %{_vbox_instdir}/vboximg-mount %{buildroot}%{_bindir}/vboximg-mount
|
||||
install -m 755 VBoxSVC %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxXPCOMIPCD %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxExtPackHelperApp %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxTestOGL %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxPermissionMessage %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxSUIDMessage %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxUSB_DevRules %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxNetDHCP %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxNetAdpCtl %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VirtualBox %{buildroot}%{_vbox_instdir}/VirtualBox6
|
||||
install -m 755 VirtualBoxVM %{buildroot}%{_vbox_instdir}
|
||||
cp -a VBoxSVC VBoxExtPackHelperApp VBoxPermissionMessage VBoxSUIDMessage \
|
||||
VBoxUSB_DevRules VBoxNetDHCP VBoxNetAdpCtl VirtualBoxVM \
|
||||
%{buildroot}%{_vbox_instdir}/
|
||||
ls -al VBoxSVC VBoxExtPackHelperApp VBoxPermissionMessage VBoxSUIDMessage \
|
||||
VBoxUSB_DevRules VBoxNetDHCP VBoxNetAdpCtl VirtualBoxVM 0755 || :
|
||||
install -m 755 VirtualBox %{buildroot}%{_vbox_instdir}/VirtualBoxQt
|
||||
# compatibility symlink in order to keep old desktop links functional
|
||||
ln -s %{_vbox_instdir}/VirtualBoxVM %{buildroot}%{_vbox_instdir}/VirtualBox
|
||||
install -m 755 VBoxEFI*.fd %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 VBoxSysInfo.sh %{buildroot}%{_vbox_instdir}
|
||||
cp -a VBoxEFI*.fd VBoxSysInfo.sh %{buildroot}%{_vbox_instdir}/
|
||||
ls -al VBoxEFI*.fd VBoxSysInfo.sh 0755 || :
|
||||
install -m 644 *.so %{buildroot}%{_vbox_instdir}
|
||||
install -m 644 *.r0 %{buildroot}%{_vbox_instdir}
|
||||
install -m 644 components/* %{buildroot}%{_vbox_instdir}/components/
|
||||
# install languages
|
||||
install -m 644 nls/* %{buildroot}%{_datadir}/virtualbox/nls/
|
||||
install -m 644 UnattendedTemplates/* %{buildroot}%{_datadir}/virtualbox/UnattendedTemplates/
|
||||
|
||||
# Workaround kvm.ko usurping VMX.
|
||||
# (Linux kernel commit b4886fab6fb620b96ad7eeefb9801c42dfa91741 is the culprit.
|
||||
# See also https://lore.kernel.org/kvm/ZwQjUSOle6sWARsr@google.com/T/ )
|
||||
echo options kvm enable_virt_at_load=0 >"%buildroot/%_modprobedir/50-virtualbox.conf"
|
||||
|
||||
# install kmp src
|
||||
mkdir -p %{buildroot}%{_usrsrc}/kernel-modules/virtualbox
|
||||
mkdir -p %{buildroot}%{_usrsrc}/kernel-modules/additions
|
||||
tar jcf %{buildroot}%{_usrsrc}/kernel-modules/additions/guest_src.tar.bz2 additions/src
|
||||
tar -jcf %{buildroot}%{_usrsrc}/kernel-modules/additions/guest_src.tar.bz2 additions/src
|
||||
cp -a src %{buildroot}%{_usrsrc}/kernel-modules/virtualbox
|
||||
install -m 644 %{SOURCE11} %{buildroot}%{_udevrulesdir}/60-vboxdrv.rules
|
||||
popd
|
||||
@ -636,19 +668,18 @@ allow = true
|
||||
EOF
|
||||
# install udev helper script for creating usb devices
|
||||
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
||||
######################################################
|
||||
|
||||
%if "%mypython" != ""
|
||||
echo "entering python-virtualbox install section"
|
||||
######################################################
|
||||
pushd out/linux.*/release/bin/sdk/installer
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
pushd out/linux.*/release/bin/sdk/installer/python
|
||||
VBOX_INSTALL_PATH=%{_vbox_instdir} %{__mypython} 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
|
||||
%py3_compile %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom/python
|
||||
%endif
|
||||
|
||||
######################################################
|
||||
echo "entering virtualbox-devel install section"
|
||||
######################################################
|
||||
cp -r out/linux.*/release/bin/sdk/bindings/auth %{buildroot}%{_vbox_instdir}/sdk/bindings
|
||||
|
||||
pushd out/linux.*/release/bin/sdk/bindings/xpcom
|
||||
@ -659,19 +690,14 @@ popd
|
||||
|
||||
cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot}%{_vbox_instdir}/sdk/bindings
|
||||
|
||||
######################################################
|
||||
echo "entering virtualbox-websrv install section"
|
||||
######################################################
|
||||
pushd out/linux.*/release/bin
|
||||
install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir}
|
||||
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
||||
popd
|
||||
ln -sf %{_unitdir}/vboxweb-service.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
||||
|
||||
#
|
||||
######################################################
|
||||
echo "entering virtualbox-guest-desktop-icons install section"
|
||||
######################################################
|
||||
install -d -m 755 %{buildroot}%{_datadir}/pixmaps/virtualbox
|
||||
|
||||
pushd src/VBox/Frontends/VirtualBox/images
|
||||
@ -679,31 +705,15 @@ for icon in os_*.png; do
|
||||
install -m 644 "$icon" %{buildroot}%{_datadir}/pixmaps/virtualbox/"$icon";
|
||||
done
|
||||
popd
|
||||
#
|
||||
######################################################
|
||||
# system users and groups
|
||||
|
||||
install -Dm0644 vbox.conf %{buildroot}%{_sysusersdir}/vbox.conf
|
||||
install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-tools.conf
|
||||
######################################################
|
||||
# run fdupes
|
||||
######################################################
|
||||
#run fdupes because we lost link for virtualbox/components directory
|
||||
%fdupes %{buildroot}/%{_vbox_instdir}
|
||||
#also some translation files are duplicated
|
||||
%fdupes %{buildroot}/%{_datadir}/virtualbox/nls
|
||||
#also some icon files are duplicated
|
||||
%fdupes %{buildroot}/%{_datadir}/pixmaps/virtualbox
|
||||
|
||||
#
|
||||
#
|
||||
######################################################
|
||||
# scriptlets - pre
|
||||
######################################################
|
||||
|
||||
%pre -f vbox.pre
|
||||
%service_add_pre vboxdrv.service
|
||||
%service_add_pre vboxautostart-service.service
|
||||
%service_add_pre vboxdrv.service vboxautostart-service.service
|
||||
|
||||
%pre guest-tools -f vbox-guest-tools.pre
|
||||
%service_add_pre vboxadd-service.service
|
||||
@ -711,10 +721,6 @@ install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-too
|
||||
%pre websrv
|
||||
%service_add_pre vboxweb-service.service
|
||||
|
||||
#######################################################
|
||||
# scriptlets - post
|
||||
#######################################################
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
#setup our sysconfig file /etc/sysconfig/vbox
|
||||
@ -722,8 +728,7 @@ install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-too
|
||||
%set_permissions %{_vbox_instdir}/VBoxNetDHCP
|
||||
%set_permissions %{_vbox_instdir}/VBoxNetAdpCtl
|
||||
%set_permissions %{_vbox_instdir}/VBoxHeadless
|
||||
%service_add_post vboxdrv.service
|
||||
%service_add_post vboxautostart-service.service
|
||||
%service_add_post vboxdrv.service vboxautostart-service.service
|
||||
# add new autostart stuff to the existing default config, if missing
|
||||
grep -q VBOXAUTOSTART %{_sysconfdir}/default/virtualbox || {
|
||||
cat >> %{_sysconfdir}/default/virtualbox << EOF
|
||||
@ -758,72 +763,43 @@ done
|
||||
%verify_permissions -e %{_vbox_instdir}/VBoxSDL
|
||||
|
||||
%post guest-tools
|
||||
%service_add_post vboxadd-service.service
|
||||
%service_add_post vboxclient.service
|
||||
%service_add_post vboxservice.service
|
||||
%service_add_post vboxadd-service.service vboxclient.service vboxservice.service
|
||||
|
||||
%post websrv
|
||||
%service_add_post vboxweb-service.service
|
||||
|
||||
%post vnc
|
||||
EXTPACK="%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
||||
EXTPACK="%{_datadir}/virtualbox/extensions/VNC-%{rversion}.vbox-extpack"
|
||||
ACCEPT="$(tar --to-stdout -xf "${EXTPACK}" ./ExtPack-license.txt | sha256sum | head --bytes=64)"
|
||||
VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" > /dev/null
|
||||
|
||||
#######################################################
|
||||
# scriptlets preun
|
||||
#######################################################
|
||||
|
||||
%preun
|
||||
%stop_on_removal vboxautostart-service
|
||||
%stop_on_removal vboxdrv
|
||||
%service_del_preun vboxautostart-service.service
|
||||
%service_del_preun vboxdrv.service
|
||||
exit 0
|
||||
%service_del_preun vboxautostart-service.service vboxdrv.service
|
||||
|
||||
%preun guest-tools
|
||||
%stop_on_removal vboxadd-service
|
||||
%stop_on_removal vboxadd
|
||||
%service_del_preun vboxadd-service.service
|
||||
%systemd_preun vboxclient.service
|
||||
%systemd_preun vboxservice.service
|
||||
exit 0
|
||||
%systemd_preun vboxclient.service vboxservice.service
|
||||
|
||||
%preun websrv
|
||||
%stop_on_removal vboxweb-service
|
||||
%service_del_preun vboxweb-service.service
|
||||
exit 0
|
||||
|
||||
#######################################################
|
||||
# scriptlets postun
|
||||
#######################################################
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
%restart_on_update vboxdrv
|
||||
%restart_on_update vboxautostart-service
|
||||
# immediately restarting virtualbox may not work. As such wait for the next reboot to restart
|
||||
%if ! %{defined service_del_postun_without_restart}
|
||||
export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%service_del_postun vboxautostart-service.service
|
||||
%service_del_postun vboxdrv.service
|
||||
%service_del_postun vboxautostart-service.service vboxdrv.service
|
||||
%else
|
||||
%service_del_postun_without_restart vboxautostart-service.service
|
||||
%service_del_postun_without_restart vboxdrv.service
|
||||
%service_del_postun_without_restart vboxautostart-service.service vboxdrv.service
|
||||
%endif
|
||||
|
||||
%postun guest-tools
|
||||
%restart_on_update vboxadd
|
||||
%restart_on_update vboxadd-service
|
||||
%service_del_postun vboxadd-service.service
|
||||
%service_del_postun vboxclient.service
|
||||
%service_del_postun vboxservice.service
|
||||
%service_del_postun vboxadd-service.service vboxclient.service vboxservice.service
|
||||
|
||||
%postun websrv
|
||||
%restart_on_update vboxweb-service
|
||||
%service_del_postun vboxweb-service.service
|
||||
#
|
||||
#######################################################
|
||||
|
||||
%files
|
||||
%doc README.autostart UserManual.pdf README.build
|
||||
@ -837,7 +813,9 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%{_vbox_instdir}/VBoxDTrace
|
||||
%{_vbox_instdir}/VBoxNetNAT
|
||||
%{_vbox_instdir}/VBoxVolInfo
|
||||
%if "%mypython" != ""
|
||||
%{_vbox_instdir}/vboxshell.py
|
||||
%endif
|
||||
%{_vbox_instdir}/VBoxSysInfo.sh
|
||||
%{_vbox_instdir}/VBoxDD2.so
|
||||
%{_vbox_instdir}/VBoxDD.so
|
||||
@ -857,7 +835,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%{_vbox_instdir}/VBoxEFI*.fd
|
||||
%{_vbox_instdir}/VBoxManage
|
||||
%{_vbox_instdir}/VBoxSVC
|
||||
%{_vbox_instdir}/VBoxXPCOMIPCD
|
||||
%{_vbox_instdir}/VBoxXPCOMIPCD.so
|
||||
%{_vbox_instdir}/VBoxExtPackHelperApp
|
||||
%{_vbox_instdir}/vboximg-mount
|
||||
%{_vbox_instdir}/DbgPlugInDiggers.so
|
||||
@ -869,6 +847,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%{_vbox_instdir}/VBoxDxVk.so
|
||||
%{_vbox_instdir}/UICommon.so
|
||||
%{_vbox_instdir}/VBoxHostChannel.so
|
||||
%{_vbox_instdir}/VBoxTraceLogDecoders.so
|
||||
%dir %{_vbox_instdir}/components
|
||||
%{_vbox_instdir}/components/*.so
|
||||
%{_vbox_instdir}/components/*.xpt
|
||||
@ -879,6 +858,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%dir %{_unitdir}/multi-user.target.wants
|
||||
%{_prefix}/lib/virtualbox/vboxdrv.sh
|
||||
%{_prefix}/lib/virtualbox/vboxautostart-service.sh
|
||||
%{_modprobedir}/
|
||||
%{_unitdir}/vboxdrv.service
|
||||
%{_unitdir}/vboxautostart-service.service
|
||||
%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
||||
@ -907,15 +887,13 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxPermissionMessage
|
||||
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSUIDMessage
|
||||
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxUSB_DevRules
|
||||
%attr(0755,root,vboxusers) %{_vbox_instdir}/VirtualBox6
|
||||
%attr(0755,root,vboxusers) %{_vbox_instdir}/VirtualBoxQt
|
||||
%verify(not mode) %attr(0750,root,vboxusers) %{_vbox_instdir}/VirtualBoxVM
|
||||
%verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSDL
|
||||
%{_vbox_instdir}/VirtualBox
|
||||
#wrapper script is in bindir
|
||||
%attr(0755,root,root) %{_bindir}/VirtualBox
|
||||
%attr(0755,root,root) %{_bindir}/update-extpack.sh
|
||||
#ldd shows libQt* dependency
|
||||
%{_vbox_instdir}/VBoxTestOGL
|
||||
#qm's translations
|
||||
%{_datadir}/virtualbox/nls
|
||||
%{_vbox_instdir}/VBoxSVGA3D.so
|
||||
@ -960,14 +938,16 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%dir /media
|
||||
%endif
|
||||
|
||||
%files -n python3-%{name}
|
||||
%if "%mypython" != ""
|
||||
%files -n %{mypython}-%{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
|
||||
%{python3_sitelib}/vboxapi-1.0-*.egg-info
|
||||
%{python3_sitelib}/vboxapi/
|
||||
%{mypython_sitelib}/vboxapi-*.egg-info
|
||||
%{mypython_sitelib}/vboxapi/
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%dir %{_vbox_instdir}/sdk
|
||||
@ -1001,7 +981,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
||||
%files vnc
|
||||
%license COPYING
|
||||
%dir %{_datadir}/virtualbox/extensions
|
||||
%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack
|
||||
%{_datadir}/virtualbox/extensions/VNC-%{rversion}.vbox-extpack
|
||||
|
||||
# main_package
|
||||
%endif
|
||||
@ -1063,7 +1043,6 @@ done
|
||||
|
||||
%install
|
||||
export INSTALL_MOD_PATH=%{buildroot}
|
||||
export INSTALL_MOD_DIR=extra
|
||||
#to install modules we use here similar steps like in build phase, go through all the modules :
|
||||
for module_name in vbox{drv,netflt,netadp,guest,sf,video}
|
||||
do
|
||||
|
Loading…
x
Reference in New Issue
Block a user