diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2016-06-01 14:49:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:13:25 +0100 |
commit | b6951c7c38f114373268df9b758835d7e1560ff0 (patch) | |
tree | cf606647165462f71e8015010cac1781344f6f6a | |
parent | 59b6a03593c43d1a4c1f660c85b63a7ec337fc21 (diff) | |
download | poky-b6951c7c38f114373268df9b758835d7e1560ff0.tar.gz |
libsdl2: Fix build with wayland 1.10
(From OE-Core rev: 77187701e35e858835ae51b3ac089a385e97657a)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2/0001-src-video-make-it-compatible-with-wayland-1.10.patch | 57 | ||||
-rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.4.bb | 4 |
2 files changed, 60 insertions, 1 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2/0001-src-video-make-it-compatible-with-wayland-1.10.patch b/meta/recipes-graphics/libsdl2/libsdl2/0001-src-video-make-it-compatible-with-wayland-1.10.patch new file mode 100644 index 0000000000..44e6d4df91 --- /dev/null +++ b/meta/recipes-graphics/libsdl2/libsdl2/0001-src-video-make-it-compatible-with-wayland-1.10.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | From b1ed3533433501ec52c8289a5b3a294e57e7f798 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <martin.jansa@gmail.com> | ||
3 | Date: Thu, 26 May 2016 11:31:52 +0000 | ||
4 | Subject: [PATCH] src/video: make it compatible with wayland 1.10 | ||
5 | |||
6 | | build/.libs/SDL_waylandevents.o: In function `wl_registry_bind': | ||
7 | | /usr/include/wayland-client-protocol.h:305: undefined reference to `wl_proxy_marshal_constructor_versioned' | ||
8 | | /usr/include/wayland-client-protocol.h:305: undefined reference to `wl_proxy_marshal_constructor_versioned' | ||
9 | | build/.libs/SDL_waylandkeyboard.o: In function `wl_registry_bind': | ||
10 | | /usr/include/wayland-client-protocol.h:305: undefined reference to `wl_proxy_marshal_constructor_versioned' | ||
11 | | /usr/include/wayland-client-protocol.h:305: undefined reference to `wl_proxy_marshal_constructor_versioned' | ||
12 | | build/.libs/SDL_waylandvideo.o: In function `wl_registry_bind': | ||
13 | | /usr/include/wayland-client-protocol.h:305: undefined reference to `wl_proxy_marshal_constructor_versioned' | ||
14 | | collect2: error: ld returned 1 exit status | ||
15 | | make: *** [build/libSDL2.la] Error 1 | ||
16 | | ERROR: oe_runmake failed | ||
17 | |||
18 | Upstream-Status: Pending | ||
19 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
20 | |||
21 | --- | ||
22 | src/video/wayland/SDL_waylanddyn.h | 1 + | ||
23 | src/video/wayland/SDL_waylandsym.h | 4 ++++ | ||
24 | src/video/webos/SDL_waylanddyn.h | 1 + | ||
25 | src/video/webos/SDL_waylandsym.h | 4 ++++ | ||
26 | 4 files changed, 10 insertions(+) | ||
27 | |||
28 | diff --git a/src/video/wayland/SDL_waylanddyn.h b/src/video/wayland/SDL_waylanddyn.h | ||
29 | index 8d9313a..c7b0157 100644 | ||
30 | --- a/src/video/wayland/SDL_waylanddyn.h | ||
31 | +++ b/src/video/wayland/SDL_waylanddyn.h | ||
32 | @@ -79,6 +79,7 @@ void SDL_WAYLAND_UnloadSymbols(void); | ||
33 | #define wl_proxy_get_user_data (*WAYLAND_wl_proxy_get_user_data) | ||
34 | #define wl_proxy_add_listener (*WAYLAND_wl_proxy_add_listener) | ||
35 | #define wl_proxy_marshal_constructor (*WAYLAND_wl_proxy_marshal_constructor) | ||
36 | +#define wl_proxy_marshal_constructor_versioned (*WAYLAND_wl_proxy_marshal_constructor_versioned) | ||
37 | |||
38 | #define wl_seat_interface (*WAYLAND_wl_seat_interface) | ||
39 | #define wl_surface_interface (*WAYLAND_wl_surface_interface) | ||
40 | diff --git a/src/video/wayland/SDL_waylandsym.h b/src/video/wayland/SDL_waylandsym.h | ||
41 | index c3b4fa5..b9a0d97 100644 | ||
42 | --- a/src/video/wayland/SDL_waylandsym.h | ||
43 | +++ b/src/video/wayland/SDL_waylandsym.h | ||
44 | @@ -55,6 +55,10 @@ SDL_WAYLAND_SYM(void, wl_list_insert_list, (struct wl_list *, struct wl_list *)) | ||
45 | SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_4) | ||
46 | SDL_WAYLAND_SYM(struct wl_proxy *, wl_proxy_marshal_constructor, (struct wl_proxy *, uint32_t opcode, const struct wl_interface *interface, ...)) | ||
47 | |||
48 | +/* These functions are available in Wayland >= 1.10 */ | ||
49 | +SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_10) | ||
50 | +SDL_WAYLAND_SYM(struct wl_proxy *, wl_proxy_marshal_constructor_versioned, (struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version, ...)) | ||
51 | + | ||
52 | SDL_WAYLAND_INTERFACE(wl_seat_interface) | ||
53 | SDL_WAYLAND_INTERFACE(wl_surface_interface) | ||
54 | SDL_WAYLAND_INTERFACE(wl_shm_pool_interface) | ||
55 | -- | ||
56 | 1.9.1 | ||
57 | |||
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.4.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.4.bb index 428230711a..8f079c8d8b 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.4.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.4.bb | |||
@@ -15,7 +15,9 @@ PROVIDES = "virtual/libsdl2" | |||
15 | DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" | 15 | DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" |
16 | 16 | ||
17 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ | 17 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ |
18 | file://linkage.patch" | 18 | file://linkage.patch \ |
19 | file://0001-src-video-make-it-compatible-with-wayland-1.10.patch \ | ||
20 | " | ||
19 | 21 | ||
20 | S = "${WORKDIR}/SDL2-${PV}" | 22 | S = "${WORKDIR}/SDL2-${PV}" |
21 | 23 | ||