summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/0001-fix-bool-reserved-word-error-in-gcc-15.patch28
-rw-r--r--meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.1.8.bb5
2 files changed, 31 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/0001-fix-bool-reserved-word-error-in-gcc-15.patch b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/0001-fix-bool-reserved-word-error-in-gcc-15.patch
new file mode 100644
index 0000000000..ec75d5a423
--- /dev/null
+++ b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers/0001-fix-bool-reserved-word-error-in-gcc-15.patch
@@ -0,0 +1,28 @@
1From 76c443dfd209ddbed3ed4102596a568670d4c59f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 May 2025 20:16:11 -0700
4Subject: [PATCH] fix bool reserved word error in gcc 15
5
6gcc-15 switched to -std=c23 by default. https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
7
8Upstream-Status: Submitted [https://www.virtualbox.org/pipermail/vbox-dev/2025-May/010316.html]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 vboxsf/include/iprt/types.h | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/vboxsf/include/iprt/types.h b/vboxsf/include/iprt/types.h
15index 3bcc4146..33b46ef6 100644
16--- a/vboxsf/include/iprt/types.h
17+++ b/vboxsf/include/iprt/types.h
18@@ -282,7 +282,9 @@ typedef _Bool bool;
19 # endif
20 # else
21 # undef bool /* see above netbsd explanation */
22-typedef _Bool bool;
23+# if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L
24+ typedef _Bool bool;
25+# endif
26 # endif
27 # else
28 # if RT_MSC_PREREQ(RT_MSC_VER_VC120)
diff --git a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.1.8.bb b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.1.8.bb
index 1560c8094f..c894a61617 100644
--- a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.1.8.bb
+++ b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.1.8.bb
@@ -13,13 +13,14 @@ VBOX_NAME = "VirtualBox-${PV}"
13 13
14SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/${VBOX_NAME}.tar.bz2 \ 14SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/${VBOX_NAME}.tar.bz2 \
15 file://Makefile.utils \ 15 file://Makefile.utils \
16 file://0001-fix-bool-reserved-word-error-in-gcc-15.patch \
16" 17"
17 18
18SRC_URI[sha256sum] = "3f7132c55ac6c5f50585bfaa115d29e30b47ccf535cb0a12ff50214ddae2f63d" 19SRC_URI[sha256sum] = "3f7132c55ac6c5f50585bfaa115d29e30b47ccf535cb0a12ff50214ddae2f63d"
19 20
20S ?= "${WORKDIR}/vbox_module" 21S ?= "${WORKDIR}/vbox_module"
21S:task-unpack = "${UNPACKDIR}/${VBOX_NAME}" 22S:task-unpack = "${UNPACKDIR}/${VBOX_NAME}"
22S:task-patch = "${WORKDIR}/${VBOX_NAME}" 23S:task-patch = "${WORKDIR}/${BP}"
23 24
24export VBOX_KBUILD_TARGET_ARCH = "${ARCH}" 25export VBOX_KBUILD_TARGET_ARCH = "${ARCH}"
25export VBOX_KBUILD_TARGET_ARCH:x86-64 = "amd64" 26export VBOX_KBUILD_TARGET_ARCH:x86-64 = "amd64"
@@ -29,7 +30,7 @@ EXTRA_OEMAKE += "KERN_DIR='${WORKDIR}/${KERNEL_VERSION}/build' KBUILD_VERBOSE=1
29# otherwise 5.2.22 builds just vboxguest 30# otherwise 5.2.22 builds just vboxguest
30MAKE_TARGETS = "all" 31MAKE_TARGETS = "all"
31 32
32addtask export_sources after do_patch before do_configure 33addtask export_sources before do_patch after do_unpack
33do_export_sources[depends] += "virtual/kernel:do_shared_workdir" 34do_export_sources[depends] += "virtual/kernel:do_shared_workdir"
34 35
35do_export_sources() { 36do_export_sources() {