From: Kévin THIERRY Date: Wed, 10 Sep 2014 12:46:23 +0000 (+0200) Subject: meta-tizen: weston-ivi-shell: add missing files X-Git-Tag: rev_ivi_2015_02_04~280 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bcceb98ce947767b5721ca058667d787bb368c2;p=scm%2Fbb%2Ftizen-distro.git meta-tizen: weston-ivi-shell: add missing files Also prevent common files with weston from being packaged. Change-Id: I74f0dc895a16039b34737b228845a714af445fa3 (From meta-tizen rev: c1b3a27bf1100f0f64be526d0260e75784599cc8) Signed-off-by: Kévin THIERRY Signed-off-by: Patrick Ohly --- diff --git a/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc b/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc index 1e742a7..16c4971 100644 --- a/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc +++ b/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc @@ -6,6 +6,83 @@ do_configure_prepend() { sed -i 's/PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner)//' configure.ac } +do_install_append() { + # Remove files already provided by weston + rm -fr ${D}/usr/include/weston/config-parser.h + rm -fr ${D}/usr/include/weston/compositor.h + rm -fr ${D}/usr/include/weston/zalloc.h + rm -fr ${D}/usr/include/weston/version.h + rm -fr ${D}/usr/include/weston/matrix.h + rm -fr ${D}/usr/share/weston/sign_close.png + rm -fr ${D}/usr/share/weston/sign_minimize.png + rm -fr ${D}/usr/share/weston/sign_maximize.png + rm -fr ${D}/usr/share/weston/terminal.png + rm -fr ${D}/usr/share/weston/icon_window.png + rm -fr ${D}/usr/share/weston/pattern.png + rm -fr ${D}/usr/share/weston/border.png + rm -fr ${D}/usr/lib/weston/gl-renderer.so + rm -fr ${D}/usr/share/weston/wayland.svg + rm -fr ${D}/usr/lib/pkgconfig/weston.pc + rm -fr ${D}/usr/bin/weston-terminal + rm -fr ${D}/usr/bin/weston + rm -fr ${D}/usr/bin/weston-info + rm -fr ${D}/usr/lib/pkgconfig + rm -fr ${D}/usr/lib/weston/desktop-shell.so + rm -fr ${D}/usr/lib/weston/.debug/desktop-shell.so + rm -fr ${D}/usr/lib/weston/gl-renderer.so + rm -fr ${D}/usr/lib/weston/.debug/gl-renderer.so +} + +pkg_postinst_${PN} () { +# for user in app guest; do + for user in app ; do + for appdir in desktop manifest dbspace; do + mkdir -p $D/home/$user/.applications/$appdir + done + find $D/home/$user/ -type d -exec chsmack -a User {} \; + chown -R $user:users $D/home/$user/ + done + + #------------------------------------------ + # Temporary work around for bug in filesystem package resulting in the 'app' user home + # directory being only readable by root + chown -R app:app /home/app + + # Since weston-launch runs with the "User" label, the app + # home dir must have the same label + chsmack -a User /home/app + + # Enable a logind session for 'app' user on seat0 (the default seat for + # graphical sessions) + mkdir -p /usr/lib/systemd/system/graphical.target.wants + ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service + ln -sf weston.target /usr/lib/systemd/user/default.target + + # Add over-riding environment to enable the web runtime to + # run on an IVI image as a different user then the tizen user + # Some notes on some of the variables: + # - ELM_THEME is needed in order for the wrt to have visible content + # - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062 + cat > /etc/sysconfig/wrt < /etc/udev/rules.d/99-dri.rules < /etc/sysconfig/wrt < /etc/udev/rules.d/99-dri.rules <