diff options
| author | Khem Raj <raj.khem@gmail.com> | 2014-08-28 18:43:54 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-01 18:03:05 +0100 |
| commit | 4d2685130098bf4f7548ad339e0f88c114dd720a (patch) | |
| tree | c6624270962c66098112ddbb6a1c5a308ec97225 /meta/recipes-graphics | |
| parent | 5e328bf30ea39e09745e70c32f61249a53a03c1c (diff) | |
| download | poky-4d2685130098bf4f7548ad339e0f88c114dd720a.tar.gz | |
xf86-input-synaptics/xf86-input-vmmouse: Fix build with glibc 2.20
Backport the upstream patches needed for them to work with glibc 2.20
(From OE-Core rev: 60f78480135aab55e538c9e4e0b6d387139f1404)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
4 files changed, 145 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch new file mode 100644 index 0000000000..f36bb7579d --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | From 96e60a4ea242d2decf109835981ae186cc36f642 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Peter Hutterer <peter.hutterer@who-t.net> | ||
| 3 | Date: Fri, 29 Aug 2014 07:57:41 +1000 | ||
| 4 | Subject: Include xorg-server.h to fix build errors on newest glibc | ||
| 5 | |||
| 6 | In file included from /usr/include/string.h:634:0, | ||
| 7 | from /usr/include/xorg/os.h:53, | ||
| 8 | from /usr/include/xorg/misc.h:115, | ||
| 9 | from /usr/include/xorg/xf86str.h:37, | ||
| 10 | from /usr/include/xorg/xf86Xinput.h:54, | ||
| 11 | from synproto.h:36, | ||
| 12 | from synproto.c:24: | ||
| 13 | /usr/include/xorg/os.h:579:1: error: expected identifier or '(' before '__extension__' | ||
| 14 | strndup(const char *str, size_t n); | ||
| 15 | |||
| 16 | See http://lists.freedesktop.org/archives/xorg-devel/2014-July/043070.html | ||
| 17 | |||
| 18 | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> | ||
| 19 | |||
| 20 | Status: Backport | ||
| 21 | |||
| 22 | Index: xf86-input-synaptics-1.8.0/src/eventcomm.h | ||
| 23 | =================================================================== | ||
| 24 | --- xf86-input-synaptics-1.8.0.orig/src/eventcomm.h 2014-08-28 18:40:28.628070587 -0700 | ||
| 25 | +++ xf86-input-synaptics-1.8.0/src/eventcomm.h 2014-08-28 18:40:28.620070587 -0700 | ||
| 26 | @@ -27,6 +27,8 @@ | ||
| 27 | #ifndef _EVENTCOMM_H_ | ||
| 28 | #define _EVENTCOMM_H_ | ||
| 29 | |||
| 30 | +#include <xorg-server.h> | ||
| 31 | + | ||
| 32 | #include <linux/input.h> | ||
| 33 | #include <linux/version.h> | ||
| 34 | #include <xf86Xinput.h> | ||
| 35 | Index: xf86-input-synaptics-1.8.0/src/ps2comm.h | ||
| 36 | =================================================================== | ||
| 37 | --- xf86-input-synaptics-1.8.0.orig/src/ps2comm.h 2014-08-28 18:40:28.628070587 -0700 | ||
| 38 | +++ xf86-input-synaptics-1.8.0/src/ps2comm.h 2014-08-28 18:40:28.620070587 -0700 | ||
| 39 | @@ -22,6 +22,8 @@ | ||
| 40 | #ifndef _PS2COMM_H_ | ||
| 41 | #define _PS2COMM_H_ | ||
| 42 | |||
| 43 | +#include <xorg-server.h> | ||
| 44 | + | ||
| 45 | #include <unistd.h> | ||
| 46 | #include <sys/ioctl.h> | ||
| 47 | #include "xf86_OSproc.h" | ||
| 48 | Index: xf86-input-synaptics-1.8.0/src/synproto.h | ||
| 49 | =================================================================== | ||
| 50 | --- xf86-input-synaptics-1.8.0.orig/src/synproto.h 2014-08-28 18:40:28.628070587 -0700 | ||
| 51 | +++ xf86-input-synaptics-1.8.0/src/synproto.h 2014-08-28 18:40:28.624070587 -0700 | ||
| 52 | @@ -31,6 +31,8 @@ | ||
| 53 | #include "config.h" | ||
| 54 | #endif | ||
| 55 | |||
| 56 | +#include <xorg-server.h> | ||
| 57 | + | ||
| 58 | #include <unistd.h> | ||
| 59 | #include <sys/ioctl.h> | ||
| 60 | #include <xf86Xinput.h> | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.8.0.bb b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.8.0.bb index dc3b6b597c..90baf8fbf3 100644 --- a/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.8.0.bb +++ b/meta/recipes-graphics/xorg-driver/xf86-input-synaptics_1.8.0.bb | |||
| @@ -12,6 +12,8 @@ advanced features of the touchpad to become available." | |||
| 12 | 12 | ||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=55aacd3535a741824955c5eb8f061398" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=55aacd3535a741824955c5eb8f061398" |
| 14 | 14 | ||
| 15 | SRC_URI += "file://always_include_xorg_server.h.patch" | ||
| 16 | |||
| 15 | SRC_URI[md5sum] = "27a3f2b31606a13dd6b58d419978d64f" | 17 | SRC_URI[md5sum] = "27a3f2b31606a13dd6b58d419978d64f" |
| 16 | SRC_URI[sha256sum] = "9bf27632aaa6c5e62621ca9c2ca00f9b309c85b039ee33cd592b189fc872c37a" | 18 | SRC_URI[sha256sum] = "9bf27632aaa6c5e62621ca9c2ca00f9b309c85b039ee33cd592b189fc872c37a" |
| 17 | 19 | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse/always_include_config.h.patch b/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse/always_include_config.h.patch new file mode 100644 index 0000000000..12fb9df2fd --- /dev/null +++ b/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse/always_include_config.h.patch | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | From 336f8633837abe4a1e5ba84b53ac8b9dac5d29a2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jeremy Huddleston Sequoia <jeremyhu@apple.com> | ||
| 3 | Date: Thu, 28 Nov 2013 11:59:53 -0800 | ||
| 4 | Subject: Always include config.h first | ||
| 5 | |||
| 6 | This fixes some build warnings about CSRG_BASED being redefined due to | ||
| 7 | incorrect header include ordering. | ||
| 8 | |||
| 9 | Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> | ||
| 10 | |||
| 11 | Upstream-Status: Backport | ||
| 12 | |||
| 13 | Index: xf86-input-vmmouse-13.0.0/shared/vmmouse_client.c | ||
| 14 | =================================================================== | ||
| 15 | --- xf86-input-vmmouse-13.0.0.orig/shared/vmmouse_client.c 2014-08-28 18:33:16.168070587 -0700 | ||
| 16 | +++ xf86-input-vmmouse-13.0.0/shared/vmmouse_client.c 2014-08-28 18:33:16.152070587 -0700 | ||
| 17 | @@ -39,6 +39,10 @@ | ||
| 18 | #endif | ||
| 19 | |||
| 20 | |||
| 21 | +#ifdef HAVE_CONFIG_H | ||
| 22 | +#include "config.h" | ||
| 23 | +#endif | ||
| 24 | + | ||
| 25 | #include "vmmouse_client.h" | ||
| 26 | #include "vmmouse_proto.h" | ||
| 27 | |||
| 28 | Index: xf86-input-vmmouse-13.0.0/shared/vmmouse_proto.c | ||
| 29 | =================================================================== | ||
| 30 | --- xf86-input-vmmouse-13.0.0.orig/shared/vmmouse_proto.c 2014-08-28 18:33:16.168070587 -0700 | ||
| 31 | +++ xf86-input-vmmouse-13.0.0/shared/vmmouse_proto.c 2014-08-28 18:33:16.156070587 -0700 | ||
| 32 | @@ -33,6 +33,10 @@ | ||
| 33 | */ | ||
| 34 | |||
| 35 | |||
| 36 | +#ifdef HAVE_CONFIG_H | ||
| 37 | +#include "config.h" | ||
| 38 | +#endif | ||
| 39 | + | ||
| 40 | #include "vmmouse_proto.h" | ||
| 41 | |||
| 42 | |||
| 43 | Index: xf86-input-vmmouse-13.0.0/shared/vmmouse_proto.h | ||
| 44 | =================================================================== | ||
| 45 | --- xf86-input-vmmouse-13.0.0.orig/shared/vmmouse_proto.h 2014-08-28 18:33:16.168070587 -0700 | ||
| 46 | +++ xf86-input-vmmouse-13.0.0/shared/vmmouse_proto.h 2014-08-28 18:33:16.156070587 -0700 | ||
| 47 | @@ -36,11 +36,6 @@ | ||
| 48 | #ifndef _VMMOUSE_PROTO_H_ | ||
| 49 | #define _VMMOUSE_PROTO_H_ | ||
| 50 | |||
| 51 | - | ||
| 52 | -#ifdef HAVE_CONFIG_H | ||
| 53 | -#include "config.h" | ||
| 54 | -#endif | ||
| 55 | - | ||
| 56 | #include <stdint.h> | ||
| 57 | |||
| 58 | #ifdef HAVE_XORG_SERVER_1_1_0 | ||
| 59 | Index: xf86-input-vmmouse-13.0.0/tools/vmmouse_detect.c | ||
| 60 | =================================================================== | ||
| 61 | --- xf86-input-vmmouse-13.0.0.orig/tools/vmmouse_detect.c 2014-08-28 18:33:16.168070587 -0700 | ||
| 62 | +++ xf86-input-vmmouse-13.0.0/tools/vmmouse_detect.c 2014-08-28 18:33:16.160070587 -0700 | ||
| 63 | @@ -26,14 +26,14 @@ | ||
| 64 | */ | ||
| 65 | |||
| 66 | |||
| 67 | -#include <stdlib.h> | ||
| 68 | -#include <signal.h> | ||
| 69 | -#include "vmmouse_client.h" | ||
| 70 | - | ||
| 71 | #ifdef HAVE_CONFIG_H | ||
| 72 | #include "config.h" | ||
| 73 | #endif | ||
| 74 | |||
| 75 | +#include <stdlib.h> | ||
| 76 | +#include <signal.h> | ||
| 77 | +#include "vmmouse_client.h" | ||
| 78 | + | ||
| 79 | void | ||
| 80 | segvCB(int sig) | ||
| 81 | { | ||
diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_13.0.0.bb b/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_13.0.0.bb index 35ef5991c3..83ea960a88 100644 --- a/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_13.0.0.bb +++ b/meta/recipes-graphics/xorg-driver/xf86-input-vmmouse_13.0.0.bb | |||
| @@ -8,6 +8,8 @@ standard 'mouse' driver if a VMware virtual machine is not detected." | |||
| 8 | 8 | ||
| 9 | PR = "${INC_PR}.0" | 9 | PR = "${INC_PR}.0" |
| 10 | 10 | ||
| 11 | SRC_URI += "file://always_include_config.h.patch" | ||
| 12 | |||
| 11 | SRC_URI[md5sum] = "34f9f64ee6a1a51fc8266a9af24e1e07" | 13 | SRC_URI[md5sum] = "34f9f64ee6a1a51fc8266a9af24e1e07" |
| 12 | SRC_URI[sha256sum] = "04cfb60366008d4db815c550d8fb8d0a4270c75fa7a20fa3bddc9ecbd355612c" | 14 | SRC_URI[sha256sum] = "04cfb60366008d4db815c550d8fb8d0a4270c75fa7a20fa3bddc9ecbd355612c" |
| 13 | 15 | ||
