[packages/VirtualBox] cdefs patch to revert new upstream calling convention changes

atler atler at pld-linux.org
Wed Sep 9 22:54:01 CEST 2015


commit d2baf7d564e033d4a27f4cbbcd950368c4245bb4
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Sep 9 22:52:43 2015 +0200

    cdefs patch to revert new upstream calling convention changes

 VirtualBox-cdefs.patch | 11 +++++++++++
 VirtualBox.spec        |  2 ++
 2 files changed, 13 insertions(+)
---
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, at VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
 	-e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/VirtualBox.git/commitdiff/d2baf7d564e033d4a27f4cbbcd950368c4245bb4



More information about the pld-cvs-commit mailing list