1 |
commit: 9f7b9fb31d387ec7783abba052b8e2d35fe75dad |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 29 13:28:29 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 29 13:29:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f7b9fb3 |
7 |
|
8 |
app-emulation/virtualbox: Added x86 buildfix patches (bug #561758). |
9 |
|
10 |
Package-Manager: portage-2.2.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
.../files/virtualbox-5.0.4-x86_buildfix_1.patch | 17 +++++++++++++++++ |
14 |
.../files/virtualbox-5.0.4-x86_buildfix_2.patch | 12 ++++++++++++ |
15 |
app-emulation/virtualbox/virtualbox-5.0.4.ebuild | 3 +++ |
16 |
3 files changed, 32 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/virtualbox/files/virtualbox-5.0.4-x86_buildfix_1.patch b/app-emulation/virtualbox/files/virtualbox-5.0.4-x86_buildfix_1.patch |
19 |
new file mode 100644 |
20 |
index 0000000..3e5b5a5 |
21 |
--- /dev/null |
22 |
+++ b/app-emulation/virtualbox/files/virtualbox-5.0.4-x86_buildfix_1.patch |
23 |
@@ -0,0 +1,17 @@ |
24 |
+fix VirtualBox-5.0.4/src/VBox/ExtPacks/VNC/VBoxVNC.cpp:339:30: error: invalid conversion from 'rfbNewClientAction (__attribute__((regparm(0), cdecl)) *)(rfbClientPtr) {aka rfbNewClientAction (__attribute__((regparm(0), cdecl)) *)(_rfbClientRec*)}' to 'rfbNewClientHookPtr {aka rfbNewClientAction (*)(_rfbClientRec*)}' [-fpermissive] |
25 |
+error for 32-bit build |
26 |
+ |
27 |
+See: |
28 |
+https://www.virtualbox.org/ticket/14564 |
29 |
+ |
30 |
+--- VirtualBox-5.0.4/src/VBox/ExtPacks/VNC/VBoxVNC.cpp |
31 |
++++ VirtualBox-5.0.4/src/VBox/ExtPacks/VNC/VBoxVNC.cpp |
32 |
+@@ -104,6 +104,6 @@ |
33 |
+ unsigned char *mFrameBuffer; |
34 |
+ uint32_t uClients; |
35 |
+- static DECLCALLBACK(enum rfbNewClientAction) rfbNewClientEvent(rfbClientPtr cl); |
36 |
+- static DECLCALLBACK(void) vncMouseEvent(int buttonMask, int x, int y, rfbClientPtr cl); |
37 |
++ static enum rfbNewClientAction rfbNewClientEvent(rfbClientPtr cl); |
38 |
++ static void vncMouseEvent(int buttonMask, int x, int y, rfbClientPtr cl); |
39 |
+ static void vncKeyboardEvent(rfbBool down, rfbKeySym keySym, rfbClientPtr cl); |
40 |
+ static void clientGoneHook(rfbClientPtr cl); |
41 |
|
42 |
diff --git a/app-emulation/virtualbox/files/virtualbox-5.0.4-x86_buildfix_2.patch b/app-emulation/virtualbox/files/virtualbox-5.0.4-x86_buildfix_2.patch |
43 |
new file mode 100644 |
44 |
index 0000000..191862e |
45 |
--- /dev/null |
46 |
+++ b/app-emulation/virtualbox/files/virtualbox-5.0.4-x86_buildfix_2.patch |
47 |
@@ -0,0 +1,12 @@ |
48 |
+fix VirtualBox-5.0.4/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp:929:64: error: invalid conversion from 'void (*)(PRTLOGGER, RTLOGPHASE, PFNRTLOGPHASEMSG) {aka void (*)(RTLOGGER*, RTLOGPHASE, void (__attribute__((regparm(0), cdecl)) *)(RTLOGGER*, const char*, ...))}' to 'PFNRTLOGPHASE {aka void (__attribute__((regparm(0), cdecl)) *)(RTLOGGER*, RTLOGPHASE, void (__attribute__((regparm(0), cdecl)) *)(RTLOGGER*, const char*, ...))}' [-fpermissive] |
49 |
+for 32-bit build |
50 |
+ |
51 |
+--- VirtualBox-5.0.4/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp |
52 |
++++ VirtualBox-5.0.4/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp |
53 |
+@@ -843,5 +843,5 @@ |
54 |
+ * @param pfnLog |
55 |
+ */ |
56 |
+-static void vboxGreeterLogHeaderFooter(PRTLOGGER pLoggerRelease, RTLOGPHASE enmPhase, PFNRTLOGPHASEMSG pfnLog) |
57 |
++static DECLCALLBACK(void) vboxGreeterLogHeaderFooter(PRTLOGGER pLoggerRelease, RTLOGPHASE enmPhase, PFNRTLOGPHASEMSG pfnLog) |
58 |
+ { |
59 |
+ /* Some introductory information. */ |
60 |
|
61 |
diff --git a/app-emulation/virtualbox/virtualbox-5.0.4.ebuild b/app-emulation/virtualbox/virtualbox-5.0.4.ebuild |
62 |
index b10c461..3151d9e 100644 |
63 |
--- a/app-emulation/virtualbox/virtualbox-5.0.4.ebuild |
64 |
+++ b/app-emulation/virtualbox/virtualbox-5.0.4.ebuild |
65 |
@@ -174,6 +174,9 @@ src_prepare() { |
66 |
EPATCH_FORCE="yes" \ |
67 |
epatch "${WORKDIR}/patches" |
68 |
|
69 |
+ # x86 build fixes (#561758) |
70 |
+ epatch "${FILESDIR}"/${P}-x86_buildfix_{1,2}.patch |
71 |
+ |
72 |
epatch_user |
73 |
} |