Add patch to correct paths to ln and chmod 14/22014/1
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 28 May 2014 14:23:23 +0000 (16:23 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 28 May 2014 19:31:15 +0000 (21:31 +0200)
On Tizen Common Yocto ln and chmod are located under /bin instead of
/usr/bin.

Change-Id: Ia76d7c4ab6524cc647de65d958e0a5c40b4ef80b
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/weston-common/weston-common-extraconf.inc
recipes-tizen/weston-common/weston-common/0001-Fix-path-to-binary-ln-and-chmod.patch [new file with mode: 0644]

index 34258a6..98b7313 100644 (file)
@@ -1,5 +1,9 @@
 inherit useradd
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/weston-common"
+
+SRC_URI += "file://0001-Fix-path-to-binary-ln-and-chmod.patch"
+
 USERADD_PACKAGES = "${PN}"
 
 GROUPADD_PARAM_${PN} = "-g 191 display;-g 100 users;-g 1004 input;-g 190 systemd-journal;-g 54 lock"
diff --git a/recipes-tizen/weston-common/weston-common/0001-Fix-path-to-binary-ln-and-chmod.patch b/recipes-tizen/weston-common/weston-common/0001-Fix-path-to-binary-ln-and-chmod.patch
new file mode 100644 (file)
index 0000000..4eb65df
--- /dev/null
@@ -0,0 +1,47 @@
+From 1e727279150b639e57c795f01316cf284214bad8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= <kevin.thierry@open.eurogiciel.org>
+Date: Wed, 28 May 2014 16:08:18 +0200
+Subject: [PATCH] Fix path to binary ln and chmod
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+On Tizen Common Yocto ln and chmod are located under /bin/ instead of
+/usr/bin/.
+
+Change-Id: If7ca735549a6d4bf6900e1ef6dc20d9b82231be4
+Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
+---
+ display-manager.service | 2 +-
+ weston-user.service     | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/display-manager.service b/display-manager.service
+index 43efbb5..69754b4 100644
+--- a/display-manager.service
++++ b/display-manager.service
+@@ -5,7 +5,7 @@ After=display-manager-run.service
+ [Service]
+ Type=oneshot
+-ExecStart=/usr/bin/chmod g+w /run/display/wayland-0
++ExecStart=/bin/chmod g+w /run/display/wayland-0
+ ExecStart=/usr/bin/chsmack -a User /run/display/wayland-0
+ [Install]
+diff --git a/weston-user.service b/weston-user.service
+index f15d574..5c5d563 100644
+--- a/weston-user.service
++++ b/weston-user.service
+@@ -2,7 +2,7 @@
+ Description=Shared weston session
+ [Service]
+-ExecStartPre=/usr/bin/ln -sf /run/display/wayland-0 /run/user/%U/
++ExecStartPre=/bin/ln -sf /run/display/wayland-0 /run/user/%U/
+ ExecStart=/usr/bin/tz-launcher -c /usr/share/applications/tizen/launcher.conf %h/.applications/desktop
+ EnvironmentFile=/etc/sysconfig/weston-user
+-- 
+1.8.1.4
+