From d2baf7d564e033d4a27f4cbbcd950368c4245bb4 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Wed, 9 Sep 2015 22:52:43 +0200 Subject: [PATCH] cdefs patch to revert new upstream calling convention changes --- VirtualBox-cdefs.patch | 11 +++++++++++ VirtualBox.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 VirtualBox-cdefs.patch diff --git a/VirtualBox-cdefs.patch b/VirtualBox-cdefs.patch new file mode 100644 index 0000000..83b95f0 --- /dev/null +++ b/VirtualBox-cdefs.patch @@ -0,0 +1,11 @@ +--- include/iprt/cdefs.h~ 2015-09-09 22:38:49.039195210 +0200 ++++ include/iprt/cdefs.h 2015-09-09 22:39:54.705032329 +0200 +@@ -978,8 +978,6 @@ + # define RTCALL __cdecl + #elif defined(RT_OS_OS2) + # define RTCALL __cdecl +-#elif defined(__GNUC__) && defined(RT_ARCH_X86) +-# define RTCALL __attribute__((cdecl,regparm(0))) + #else + # define RTCALL + #endif diff --git a/VirtualBox.spec b/VirtualBox.spec index 7414ce7..6e27dcd 100644 --- a/VirtualBox.spec +++ b/VirtualBox.spec @@ -78,6 +78,7 @@ Patch11: 18-system-xorg.patch Patch12: %{pname}-all-translations.patch Patch13: x32.patch Patch14: %{pname}-no-scrextend.patch +Patch15: %{pname}-cdefs.patch URL: http://www.virtualbox.org/ %if %{with userspace} %ifarch %{x8664} @@ -526,6 +527,7 @@ cd ../..\ %endif %patch13 -p1 %patch14 -p1 +%patch15 -p0 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in -- 2.44.0