summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch')
-rw-r--r--meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch28
1 files changed, 13 insertions, 15 deletions
diff --git a/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch b/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
index e50845b17a..62b864c134 100644
--- a/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
+++ b/meta/recipes-graphics/wayland/weston/0001-weston-launch-Provide-a-default-version-that-doesn-t.patch
@@ -1,4 +1,4 @@
1From 682b7d79a7b81ec8e38760381104b24ad549e8c0 Mon Sep 17 00:00:00 2001 1From 5f2d71998eb77068cbaee2d468cbb296a42d5739 Mon Sep 17 00:00:00 2001
2From: Tom Hochstein <tom.hochstein@nxp.com> 2From: Tom Hochstein <tom.hochstein@nxp.com>
3Date: Wed, 22 Feb 2017 15:53:30 +0200 3Date: Wed, 22 Feb 2017 15:53:30 +0200
4Subject: [PATCH] weston-launch: Provide a default version that doesn't require 4Subject: [PATCH] weston-launch: Provide a default version that doesn't require
@@ -16,6 +16,7 @@ Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
16Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> 16Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
17Signed-off-by: Denys Dmytriyenko <denys@ti.com> 17Signed-off-by: Denys Dmytriyenko <denys@ti.com>
18Signed-off-by: Ming Liu <ming.liu@toradex.com> 18Signed-off-by: Ming Liu <ming.liu@toradex.com>
19
19--- 20---
20 libweston/meson.build | 16 ++++++++++++---- 21 libweston/meson.build | 16 ++++++++++++----
21 libweston/weston-launch.c | 21 +++++++++++++++++++++ 22 libweston/weston-launch.c | 21 +++++++++++++++++++++
@@ -23,10 +24,10 @@ Signed-off-by: Ming Liu <ming.liu@toradex.com>
23 3 files changed, 40 insertions(+), 4 deletions(-) 24 3 files changed, 40 insertions(+), 4 deletions(-)
24 25
25diff --git a/libweston/meson.build b/libweston/meson.build 26diff --git a/libweston/meson.build b/libweston/meson.build
26index d8d3fc0..326683f 100644 27index 08d23ec..cb9fd3f 100644
27--- a/libweston/meson.build 28--- a/libweston/meson.build
28+++ b/libweston/meson.build 29+++ b/libweston/meson.build
29@@ -199,16 +199,24 @@ dep_vertex_clipping = declare_dependency( 30@@ -216,16 +216,24 @@ dep_vertex_clipping = declare_dependency(
30 ) 31 )
31 32
32 if get_option('weston-launch') 33 if get_option('weston-launch')
@@ -52,11 +53,11 @@ index d8d3fc0..326683f 100644
52 'weston-launch.c', 53 'weston-launch.c',
53- dependencies: [dep_pam, systemd_dep, dep_libdrm], 54- dependencies: [dep_pam, systemd_dep, dep_libdrm],
54+ dependencies: deps_weston_launch, 55+ dependencies: deps_weston_launch,
55 include_directories: include_directories('..'), 56 include_directories: common_inc,
56 install: true 57 install: true
57 ) 58 )
58diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c 59diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c
59index 4962bd6..fc531c5 100644 60index 8a711b4..54c567a 100644
60--- a/libweston/weston-launch.c 61--- a/libweston/weston-launch.c
61+++ b/libweston/weston-launch.c 62+++ b/libweston/weston-launch.c
62@@ -51,7 +51,9 @@ 63@@ -51,7 +51,9 @@
@@ -112,7 +113,7 @@ index 4962bd6..fc531c5 100644
112 113
113 if (ioctl(wl->tty, KDSKBMUTE, 0) && 114 if (ioctl(wl->tty, KDSKBMUTE, 0) &&
114 ioctl(wl->tty, KDSKBMODE, wl->kb_mode)) 115 ioctl(wl->tty, KDSKBMODE, wl->kb_mode))
115@@ -660,6 +668,7 @@ setup_session(struct weston_launch *wl, char **child_argv) 116@@ -666,6 +674,7 @@ setup_session(struct weston_launch *wl, char **child_argv)
116 setenv("HOME", wl->pw->pw_dir, 1); 117 setenv("HOME", wl->pw->pw_dir, 1);
117 setenv("SHELL", wl->pw->pw_shell, 1); 118 setenv("SHELL", wl->pw->pw_shell, 1);
118 119
@@ -120,7 +121,7 @@ index 4962bd6..fc531c5 100644
120 env = pam_getenvlist(wl->ph); 121 env = pam_getenvlist(wl->ph);
121 if (env) { 122 if (env) {
122 for (i = 0; env[i]; ++i) { 123 for (i = 0; env[i]; ++i) {
123@@ -668,6 +677,7 @@ setup_session(struct weston_launch *wl, char **child_argv) 124@@ -674,6 +683,7 @@ setup_session(struct weston_launch *wl, char **child_argv)
124 } 125 }
125 free(env); 126 free(env);
126 } 127 }
@@ -128,7 +129,7 @@ index 4962bd6..fc531c5 100644
128 129
129 /* 130 /*
130 * We open a new session, so it makes sense 131 * We open a new session, so it makes sense
131@@ -739,8 +749,10 @@ static void 132@@ -745,8 +755,10 @@ static void
132 help(const char *name) 133 help(const char *name)
133 { 134 {
134 fprintf(stderr, "Usage: %s [args...] [-- [weston args..]]\n", name); 135 fprintf(stderr, "Usage: %s [args...] [-- [weston args..]]\n", name);
@@ -139,7 +140,7 @@ index 4962bd6..fc531c5 100644
139 fprintf(stderr, " -t, --tty Start session on alternative tty,\n" 140 fprintf(stderr, " -t, --tty Start session on alternative tty,\n"
140 " e.g. -t /dev/tty4, requires -u option.\n"); 141 " e.g. -t /dev/tty4, requires -u option.\n");
141 fprintf(stderr, " -v, --verbose Be verbose\n"); 142 fprintf(stderr, " -v, --verbose Be verbose\n");
142@@ -754,7 +766,9 @@ main(int argc, char *argv[]) 143@@ -760,7 +772,9 @@ main(int argc, char *argv[])
143 int i, c; 144 int i, c;
144 char *tty = NULL; 145 char *tty = NULL;
145 struct option opts[] = { 146 struct option opts[] = {
@@ -149,7 +150,7 @@ index 4962bd6..fc531c5 100644
149 { "tty", required_argument, NULL, 't' }, 150 { "tty", required_argument, NULL, 't' },
150 { "verbose", no_argument, NULL, 'v' }, 151 { "verbose", no_argument, NULL, 'v' },
151 { "help", no_argument, NULL, 'h' }, 152 { "help", no_argument, NULL, 'h' },
152@@ -766,11 +780,16 @@ main(int argc, char *argv[]) 153@@ -772,11 +786,16 @@ main(int argc, char *argv[])
153 while ((c = getopt_long(argc, argv, "u:t:vh", opts, &i)) != -1) { 154 while ((c = getopt_long(argc, argv, "u:t:vh", opts, &i)) != -1) {
154 switch (c) { 155 switch (c) {
155 case 'u': 156 case 'u':
@@ -166,7 +167,7 @@ index 4962bd6..fc531c5 100644
166 break; 167 break;
167 case 't': 168 case 't':
168 tty = optarg; 169 tty = optarg;
169@@ -822,8 +841,10 @@ main(int argc, char *argv[]) 170@@ -828,8 +847,10 @@ main(int argc, char *argv[])
170 if (setup_tty(&wl, tty) < 0) 171 if (setup_tty(&wl, tty) < 0)
171 exit(EXIT_FAILURE); 172 exit(EXIT_FAILURE);
172 173
@@ -178,7 +179,7 @@ index 4962bd6..fc531c5 100644
178 if (setup_launcher_socket(&wl) < 0) 179 if (setup_launcher_socket(&wl) < 0)
179 exit(EXIT_FAILURE); 180 exit(EXIT_FAILURE);
180diff --git a/meson_options.txt b/meson_options.txt 181diff --git a/meson_options.txt b/meson_options.txt
181index d5bf1d5..254eb2b 100644 182index c862ecc..73ef2c3 100644
182--- a/meson_options.txt 183--- a/meson_options.txt
183+++ b/meson_options.txt 184+++ b/meson_options.txt
184@@ -73,6 +73,13 @@ option( 185@@ -73,6 +73,13 @@ option(
@@ -195,6 +196,3 @@ index d5bf1d5..254eb2b 100644
195 'xwayland', 196 'xwayland',
196 type: 'boolean', 197 type: 'boolean',
197 value: true, 198 value: true,
198--
1992.7.4
200