[info=4c36cc83be5d6e1240ac6cf08a2bdb3ff67b9ef1654da45716e02028e8a9d109]
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=754
This commit is contained in:
parent
3558be706c
commit
76f29f0942
@ -1,4 +1,4 @@
|
|||||||
mtime: 1731544481
|
mtime: 1731600272
|
||||||
commit: b439cb0a114003735dc2cf4761decb52100d329c2a1c17de20cc397a9aaf7b09
|
commit: 4c36cc83be5d6e1240ac6cf08a2bdb3ff67b9ef1654da45716e02028e8a9d109
|
||||||
url: https://src.opensuse.org/jengelh/virtualbox
|
url: https://src.opensuse.org/jengelh/virtualbox
|
||||||
revision: master
|
revision: master
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:9b44d0c1f665b7fea364e1d57efec8a589146ad8401fa6ce2a940a9e1cdfa26c
|
oid sha256:168936ad6e1ac96b14a0b35b73922d80c6c4c3fc19f08374db48e8cd86bcd902
|
||||||
size 256
|
size 256
|
||||||
|
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))
|
@ -1,7 +1,8 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 14 00:33:23 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Thu Nov 14 16:03:49 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
- Use distro-default INSTALL_MOD_DIR.
|
- Use distro-default INSTALL_MOD_DIR for both kmp
|
||||||
|
and for local-built files. Add host-source.patch [boo#1231346].
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 16 23:37:43 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
Wed Oct 16 23:37:43 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
@ -113,6 +113,7 @@ Patch9: vbox-usb-warning.diff
|
|||||||
# Patch for 15.5
|
# Patch for 15.5
|
||||||
Patch10: fix_for_leap15.5.patch
|
Patch10: fix_for_leap15.5.patch
|
||||||
Patch11: cxx17.patch
|
Patch11: cxx17.patch
|
||||||
|
Patch12: host-source.patch
|
||||||
#
|
#
|
||||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||||
BuildRequires: %{kernel_module_package_buildreqs}
|
BuildRequires: %{kernel_module_package_buildreqs}
|
||||||
@ -126,8 +127,8 @@ BuildRequires: dwarves
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc11
|
BuildRequires: gcc12
|
||||||
BuildRequires: gcc11-c++
|
BuildRequires: gcc12-c++
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: kbuild >= 0.1.9998+svn3613
|
BuildRequires: kbuild >= 0.1.9998+svn3613
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
@ -239,8 +240,8 @@ BuildRequires: boost-devel
|
|||||||
BuildRequires: gcc-32bit
|
BuildRequires: gcc-32bit
|
||||||
BuildRequires: gcc-c++-32bit
|
BuildRequires: gcc-c++-32bit
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc11-32bit
|
BuildRequires: gcc12-32bit
|
||||||
BuildRequires: gcc11-c++-32bit
|
BuildRequires: gcc12-c++-32bit
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: xorg-x11-libX11-devel-32bit
|
BuildRequires: xorg-x11-libX11-devel-32bit
|
||||||
BuildRequires: xorg-x11-libXext-devel-32bit
|
BuildRequires: xorg-x11-libXext-devel-32bit
|
||||||
@ -433,11 +434,11 @@ sed -i 's:include/drm:%{_prefix}/src/linux/include/drm:' src/VBox/Additions/linu
|
|||||||
%if %{main_package}
|
%if %{main_package}
|
||||||
%build
|
%build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
||||||
# kmk is annoying, does not respond to CXX=g++-11 ...
|
# kmk is annoying, does not respond to CXX=g++-12 ...
|
||||||
mkdir tc
|
mkdir tc
|
||||||
export PATH="$PWD/tc:$PATH"
|
export PATH="$PWD/tc:$PATH"
|
||||||
ln -s /usr/bin/gcc-11 tc/gcc
|
ln -s /usr/bin/gcc-12 tc/gcc
|
||||||
ln -s /usr/bin/g++-11 tc/g++
|
ln -s /usr/bin/g++-12 tc/g++
|
||||||
%endif
|
%endif
|
||||||
# Disable LTO - Link Time Optimization
|
# Disable LTO - Link Time Optimization
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
Loading…
Reference in New Issue
Block a user