summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-11-07 11:55:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-08 17:31:35 +0000
commitf6484887ba2a2bb3133276afc04c027d081e8f92 (patch)
treef3ff524c1f2f6aecd3cb26a968b35290fcc7f8b9 /meta/recipes-graphics/wayland/weston
parent5177812b27aadeff654580455c957e181aeb0cae (diff)
downloadpoky-f6484887ba2a2bb3133276afc04c027d081e8f92.tar.gz
weston: upgrade to 1.3.0
Remove backported patches that are now integrated. No need to patch build to install examples with --enable-demo-clients, update FILES now that all examples are being installed. Remove cairo-gl option as our cairo doesn't support GL (yet), remove --disable-android-compositor as it was dropped upstream, and add PACKAGECONFIG for the VAAPI-based recorder as otherwise it's a floating dependency (libva is in meta-intel). Based on work by Ewan Le Bideau-Canevet <Ewan.LEBIDEAU-CANEVET@eurogiciel.fr>. (From OE-Core rev: 7508b61d1cb869233f3d841183edd6fd19d5102e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland/weston')
-rw-r--r--meta/recipes-graphics/wayland/weston/groups.patch47
-rw-r--r--meta/recipes-graphics/wayland/weston/install-examples.patch18
-rw-r--r--meta/recipes-graphics/wayland/weston/weston-launch-shell.patch74
3 files changed, 0 insertions, 139 deletions
diff --git a/meta/recipes-graphics/wayland/weston/groups.patch b/meta/recipes-graphics/wayland/weston/groups.patch
deleted file mode 100644
index 9dc043ac3b..0000000000
--- a/meta/recipes-graphics/wayland/weston/groups.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1Upstream-Status: Submitted (https://bugs.freedesktop.org/show_bug.cgi?id=65933)
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From 42821739a228a85ce3432be1796858e5cc31688b Mon Sep 17 00:00:00 2001
5From: Quentin Glidic <sardemff7+git@sardemff7.net>
6Date: Wed, 19 Jun 2013 15:27:11 +0200
7Subject: [PATCH weston] weston-launch: Set all groups for user
8
9Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
10---
11 configure.ac | 2 +-
12 src/weston-launch.c | 4 ++++
13 2 files changed, 5 insertions(+), 1 deletion(-)
14
15diff --git a/configure.ac b/configure.ac
16index b625221..db3feb0 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -52,7 +52,7 @@ AC_CHECK_DECL(CLOCK_MONOTONIC,[],
20 [[#include <time.h>]])
21 AC_CHECK_HEADERS([execinfo.h])
22
23-AC_CHECK_FUNCS([mkostemp strchrnul])
24+AC_CHECK_FUNCS([mkostemp strchrnul initgroups])
25
26 COMPOSITOR_MODULES="wayland-server >= 1.1.90 xkbcommon pixman-1"
27
28diff --git a/src/weston-launch.c b/src/weston-launch.c
29index 76dcede..7d7b556 100644
30--- a/src/weston-launch.c
31+++ b/src/weston-launch.c
32@@ -631,9 +631,13 @@ main(int argc, char *argv[])
33 }
34
35 if (setgid(wl.pw->pw_gid) < 0 ||
36+#ifdef HAVE_INITGROUPS
37+ initgroups(wl.pw->pw_name, wl.pw->pw_gid) < 0 ||
38+#endif
39 setuid(wl.pw->pw_uid) < 0)
40 error(1, errno, "dropping privilidges failed");
41
42+
43 if (sleep_fork) {
44 if (wl.verbose)
45 printf("weston-launch: waiting %d seconds\n", sleep_fork);
46--
471.8.3
diff --git a/meta/recipes-graphics/wayland/weston/install-examples.patch b/meta/recipes-graphics/wayland/weston/install-examples.patch
deleted file mode 100644
index 3e2852ccfb..0000000000
--- a/meta/recipes-graphics/wayland/weston/install-examples.patch
+++ /dev/null
@@ -1,18 +0,0 @@
1Install the examples so we can package them.
2
3Upstream-Status: Pending
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/clients/Makefile.am b/clients/Makefile.am
7index 621c7c3..749ef20 100644
8--- a/clients/Makefile.am
9+++ b/clients/Makefile.am
10@@ -2,7 +2,7 @@ bin_PROGRAMS = \
11 weston-info \
12 $(terminal)
13
14-noinst_PROGRAMS = \
15+bin_PROGRAMS += \
16 $(clients_programs) \
17 $(poppler_programs) \
18 $(simple_clients_programs) \
diff --git a/meta/recipes-graphics/wayland/weston/weston-launch-shell.patch b/meta/recipes-graphics/wayland/weston/weston-launch-shell.patch
deleted file mode 100644
index ffe0608ee2..0000000000
--- a/meta/recipes-graphics/wayland/weston/weston-launch-shell.patch
+++ /dev/null
@@ -1,74 +0,0 @@
1Upstream-Status: Backport
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From ff3230952a68077669e0ea0ac3ceb234273556fc Mon Sep 17 00:00:00 2001
5From: Quentin Glidic <sardemff7+git@sardemff7.net>
6Date: Fri, 17 May 2013 16:20:37 +0200
7Subject: [PATCH] weston-launch: Run weston in the user login shell
8
9This patch brings back the user environment from the shell.
10In the future, weston-launch could create the Wayland socket earlier, in
11which case the user's shell could be used to run Wayland-specific tools
12in the new Weston session.
13
14Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
15---
16 src/weston-launch.c | 19 ++++++++++++++++---
17 1 file changed, 16 insertions(+), 3 deletions(-)
18
19diff --git a/src/weston-launch.c b/src/weston-launch.c
20index 64d4a8a..89c3c5a 100644
21--- a/src/weston-launch.c
22+++ b/src/weston-launch.c
23@@ -60,6 +60,8 @@
24
25 #include "weston-launch.h"
26
27+#define MAX_ARGV_SIZE 256
28+
29 struct weston_launch {
30 struct pam_conv pc;
31 pam_handle_t *ph;
32@@ -523,8 +525,9 @@ main(int argc, char *argv[])
33 struct weston_launch wl;
34 char **env;
35 int i, c;
36- char **child_argv;
37+ char *child_argv[MAX_ARGV_SIZE];
38 char *tty = NULL, *new_user = NULL;
39+ char *term;
40 int sleep_fork = 0;
41 struct option opts[] = {
42 { "user", required_argument, NULL, 'u' },
43@@ -562,8 +565,8 @@ main(int argc, char *argv[])
44 }
45 }
46
47- child_argv = &argv[optind-1];
48- child_argv[0] = BINDIR "/weston";
49+ if ((argc - optind) > (MAX_ARGV_SIZE - 5))
50+ error(1, E2BIG, "Too many arguments to pass to weston");
51
52 if (new_user)
53 wl.pw = getpwnam(new_user);
54@@ -572,7 +575,17 @@ main(int argc, char *argv[])
55 if (wl.pw == NULL)
56 error(1, errno, "failed to get username");
57
58+ child_argv[0] = wl.pw->pw_shell;
59+ child_argv[1] = "-l";
60+ child_argv[2] = "-c";
61+ child_argv[3] = BINDIR "/weston \"$@\"";
62+ child_argv[4] = "weston";
63+ for (i = 0; i < (argc - optind); ++i)
64+ child_argv[5+i] = argv[optind+i];
65+
66+ term = getenv("TERM");
67 clearenv();
68+ setenv("TERM", term, 1);
69 setenv("USER", wl.pw->pw_name, 1);
70 setenv("LOGNAME", wl.pw->pw_name, 1);
71 setenv("HOME", wl.pw->pw_dir, 1);
72--
731.7.10.4
74