From 55b005b5e1d12f31cb601e6dbe5894513409eb9626abe54faecaa40c4dc56e20 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Tue, 27 May 2025 17:24:09 +0200 Subject: [PATCH] Fix building with GCC 15 [boo#1242085] --- gentoo-C23.patch | 14 ++++++++++++++ virtualbox.changes | 7 +++++++ virtualbox.spec | 1 + 3 files changed, 22 insertions(+) create mode 100644 gentoo-C23.patch diff --git a/gentoo-C23.patch b/gentoo-C23.patch new file mode 100644 index 0000000..bcccb45 --- /dev/null +++ b/gentoo-C23.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/946955 + +--- a/include/iprt/types.h ++++ b/include/iprt/types.h +@@ -281,8 +281,7 @@ + typedef _Bool bool; + # endif + # else +-# undef bool /* see above netbsd explanation */ +-typedef _Bool bool; ++# include + # endif + # else + # if RT_MSC_PREREQ(RT_MSC_VER_VC120) diff --git a/virtualbox.changes b/virtualbox.changes index 88b34c6..74d5113 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 27 15:19:29 UTC 2025 - Martin Jambor + +- Add gentoo-C23.patch, taken from the corresponding gentoo + package, to fix building with GCC 15 where the C language + defaults to standard C23. [boo#1242085] + ------------------------------------------------------------------- Wed Apr 16 13:59:59 UTC 2025 - Jan Engelhardt diff --git a/virtualbox.spec b/virtualbox.spec index bc1e960..40fb43a 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -131,6 +131,7 @@ 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 +Patch20: gentoo-C23.patch # # Common BuildRequires for both virtualbox and virtualbox-kmp BuildRequires: %{kernel_module_package_buildreqs} -- 2.51.1