Patchwork [meta-oe] xserver-common: Rename Xsession.d files to end with .sh extension

login
register
mail settings
Submitter Martin Jansa
Date Nov. 30, 2013, 3:08 p.m.
Message ID <1385824113-4414-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/62641/
State Accepted, archived
Headers show

Comments

Martin Jansa - Nov. 30, 2013, 3:08 p.m.
* oe-core version of xinput-calibrator installs
  30xinput_calibrate.sh and ls -X used in Xsession script sorts it as
  last (not respecting the numbers) and xinput-calibrator is executed
  too late (after 90xXWindowManager)
* don't forget to update all your components installing Xsession.d
  files as well

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-graphics/xserver-common/xserver-common_1.34.bb | 7 +++++++
 1 file changed, 7 insertions(+)

Patch

diff --git a/meta-oe/recipes-graphics/xserver-common/xserver-common_1.34.bb b/meta-oe/recipes-graphics/xserver-common/xserver-common_1.34.bb
index 481e438..5bc37b0 100644
--- a/meta-oe/recipes-graphics/xserver-common/xserver-common_1.34.bb
+++ b/meta-oe/recipes-graphics/xserver-common/xserver-common_1.34.bb
@@ -28,6 +28,13 @@  SRC_URI_append = " \
 
 do_install_append() {
     sed -i 's:^BINDIR=.*$:BINDIR=${bindir}:' ${D}/etc/X11/xserver-common
+    # Rename all Xsession files not ending with .sh
+    # Unfortunatelly when xinput-calibrator was moved to oe-core
+    # its Xsession file got name 30xinput_calibrate.sh and ls -X sorts it
+    # last, not respecting numbers for sorting them
+    for i in ${D}/${sysconfdir}/X11/Xsession.d/*; do
+        echo $i | grep '.sh$' || mv $i $i.sh
+    done
 }
 
 inherit allarch