Skip to contentSkip to conversation

Revert "matchbox-keyboard: export GTK_IM_MODULE_FILE location"

PATCH In review Maxin B. John 3 participants 6 messages Feb 2, 2016 – Feb 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Revert "matchbox-keyboard: export GTK_IM_MODULE_FILE location"

This reverts commit a8c25af91e56f20b9cfd4fa298b5002efc7af809.

---
 meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-sato/matchbox-keyboard/files/80matchboxkeyboard.sh +0 -1
index 63d9b8d..6cf188b 100644
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 . /etc/formfactor/config
-export GTK_IM_MODULE_FILE="/etc/gtk-2.0/gtk.immodules"
 
 CMD=""
 
Signature · 1 line
2.4.0
#1 lore raw

PATCH 2/3 gtk-immodules-cache.bbclass: fix immodules-cache path

This commit in gtk+ moved the cache files below <libdir> "
commit c8849046860a9b17fa943247d85ddadb29262b48
Author: Matthias Clasen <[email protected]>
Date: Thu Jul 4 09:27:17 2013 -0400
Move the module cache files below libdir

These files contain architecture-dependent paths, and thus placing them into sysconfdir causes unnecessary hassle. Now the immodule cache file is looked for in libdir/gtk-2.0/2.10.0/immodules.cache. Belated backport of a change that was done in the run-up to 3.0.". Update gtk-immodules-cache.bbclass to use that path.

The environment variable "GTK_IM_MODULE_FILE" can also be set to point GTK+ at the file to fix this problem. However, it causes problems for gtk3 apps.

[YOCTO #6774]
[YOCTO #8957]

---
 meta/classes/gtk-immodules-cache.bbclass | 48 +++++++++++++++++---------------
 1 file changed, 26 insertions(+), 22 deletions(-)
meta/classes/gtk-immodules-cache.bbclass +26 -22
index 0a6316d..c099cd3 100644
@@ -10,47 +10,51 @@ GTKIMMODULES_PACKAGES ?= "${PN}"
 
 gtk_immodule_cache_postinst() {
 if [ "x$D" != "x" ]; then
-    for maj_ver in 2 3; do
-        if [ -x $D${bindir}/gtk-query-immodules-$maj_ver.0 ]; then
-            IMFILES=$(ls $D${libdir}/gtk-$maj_ver.0/*/immodules/*.so)
-            ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-$maj_ver.0')} \
-                $IMFILES > $D/etc/gtk-$maj_ver.0/gtk.immodules 2>/dev/null &&
-                sed -i -e "s:$D::" $D/etc/gtk-$maj_ver.0/gtk.immodules
-
-            [ $? -ne 0 ] && exit 1
+        if [ -x $D${bindir}/gtk-query-immodules-2.0 ]; then
+            IMFILES=$(ls $D${libdir}/gtk-2.0/*/immodules/*.so)
+            ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-2.0')} \
+                $IMFILES > $D${libdir}/gtk-2.0/2.10.0/immodules.cache 2>/dev/null &&
+                sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache
+        elif [ -x $D${bindir}/gtk-query-immodules-3.0 ]; then
+            IMFILES=$(ls $D${libdir}/gtk-3.0/*/immodules/*.so)
+            ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-3.0')} \
+                $IMFILES > $D${libdir}/gtk-3.0/3.0.0/immodules.cache 2>/dev/null &&
+                sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache
         fi
-    done
 
+    [ $? -ne 0 ] && exit 1
     exit 0
 fi
 if [ ! -z `which gtk-query-immodules-2.0` ]; then
-    gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+    gtk-query-immodules-2.0 > ${libdir}/gtk-2.0/2.10.0/immodules.cache
 fi
 if [ ! -z `which gtk-query-immodules-3.0` ]; then
-    gtk-query-immodules-3.0 > /etc/gtk-3.0/gtk.immodules
+    gtk-query-immodules-3.0 > ${libdir}/gtk-3.0/3.0.0/immodules.cache
 fi
 }
 
 gtk_immodule_cache_postrm() {
 if [ "x$D" != "x" ]; then
-    for maj_ver in 2 3; do
-        if [ -x $D${bindir}/gtk-query-immodules-$maj_ver.0 ]; then
-            IMFILES=$(ls $D${libdir}/gtk-$maj_ver.0/*/immodules/*.so)
-            ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-$maj_ver.0')} \
-                $IMFILES > $D/etc/gtk-$maj_ver.0/gtk.immodules 2>/dev/null &&
-                sed -i -e "s:$D::" $D/etc/gtk-$maj_ver.0/gtk.immodules
-
-            [ $? -ne 0 ] && exit 1
+        if [ -x $D${bindir}/gtk-query-immodules-2.0 ]; then
+            IMFILES=$(ls $D${libdir}/gtk-2.0/*/immodules/*.so)
+            ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-2.0')} \
+                $IMFILES > $D${libdir}/gtk-2.0/2.10.0/immodules.cache 2>/dev/null &&
+                sed -i -e "s:$D::" $D${libdir}/gtk-2.0/2.10.0/immodules.cache
+        elif [ -x $D${bindir}/gtk-query-immodules-3.0 ]; then
+            IMFILES=$(ls $D${libdir}/gtk-3.0/*/immodules/*.so)
+            ${@qemu_run_binary(d, '$D', '${bindir}/gtk-query-immodules-3.0')} \
+                $IMFILES > $D${libdir}/gtk-3.0/3.0.0/immodules.cache 2>/dev/null &&
+                sed -i -e "s:$D::" $D${libdir}/gtk-3.0/3.0.0/immodules.cache
         fi
-    done
 
+    [ $? -ne 0 ] && exit 1
     exit 0
 fi
 if [ ! -z `which gtk-query-immodules-2.0` ]; then
-    gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+    gtk-query-immodules-2.0 > ${libdir}/gtk-2.0/2.10.0/immodules.cache
 fi
 if [ ! -z `which gtk-query-immodules-3.0` ]; then
-    gtk-query-immodules-3.0 > /etc/gtk-3.0/gtk.immodules
+    gtk-query-immodules-3.0 > ${libdir}/gtk-3.0/3.0.0/immodules.cache
 fi
 }
 
Signature · 1 line
2.4.0
#2 lore raw

PATCH 3/3 formfactor: add machconfig for qemumips64 and beaglebone

In reply to Maxin B. John

We need machconfig file to automatically choose between physical and virtual keyboards.

[YOCTO #9027]

---
 meta/recipes-bsp/formfactor/files/beaglebone/machconfig | 10 ++++++++++
 meta/recipes-bsp/formfactor/files/qemumips64/machconfig | 10 ++++++++++
 2 files changed, 20 insertions(+)
 create mode 100755 meta/recipes-bsp/formfactor/files/beaglebone/machconfig
 create mode 100755 meta/recipes-bsp/formfactor/files/qemumips64/machconfig
meta/recipes-bsp/formfactor/files/beaglebone/machconfig new file +10 -0
new file mode 100755
index 0000000..56a2ae2
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+ 
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
meta/recipes-bsp/formfactor/files/qemumips64/machconfig new file +10 -0
new file mode 100755
index 0000000..56777b6
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+ 
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=640
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_BPP=16
+DISPLAY_DPI=150
+#DISPLAY_SUBPIXEL_ORDER=vrgb
Signature · 1 line
2.4.0
#3 lore raw

Re: [PATCH 3/3] formfactor: add machconfig for qemumips64 and beaglebone

Quoted 2 lines · Maxin B. John

We need machconfig file to automatically choose between physical and virtual keyboards.

beaglebone has its own BSP layer, why it should be added in oe-core?

Quoted 51 lines

[YOCTO #9027]

---
 meta/recipes-bsp/formfactor/files/beaglebone/machconfig | 10 ++++++++++
 meta/recipes-bsp/formfactor/files/qemumips64/machconfig | 10 ++++++++++
 2 files changed, 20 insertions(+)
 create mode 100755 meta/recipes-bsp/formfactor/files/beaglebone/machconfig
 create mode 100755 meta/recipes-bsp/formfactor/files/qemumips64/machconfig
meta/recipes-bsp/formfactor/files/beaglebone/machconfig new file +10 -0
new file mode 100755
index 0000000..56a2ae2
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+ 
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
meta/recipes-bsp/formfactor/files/qemumips64/machconfig new file +10 -0
new file mode 100755
index 0000000..56777b6
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+ 
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=640
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_BPP=16
+DISPLAY_DPI=150
+#DISPLAY_SUBPIXEL_ORDER=vrgb
Signature · 7 lines
2.4.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw

Re: [PATCH 3/3] formfactor: add machconfig for qemumips64 and beaglebone

Quoted 7 lines · Martin Jansa
Quoted 1 line · Maxin B. John

We need machconfig file to automatically choose between physical and

virtual

Quoted 1 line

keyboards.

beaglebone has its own BSP layer, why it should be added in oe-core?

This would be for the purely open beaglebone BSP in meta-yocto-bsp. We've always had some sort of real ARM BSP in meta-yocto-bsp for QA purposes.

I'm not sure whether we want to say the beaglebone has a keyboard and mouse by default or not though.

Ross

#5 lore raw

Re: [PATCH 3/3] formfactor: add machconfig for qemumips64 and beaglebone

Hi Ross,

Quoted 2 lines · Ross
Quoted 1 line · Martin Jansa
Quoted 9 lines · Maxin B. John
Quoted 4 lines
Quoted 2 lines

We need machconfig file to automatically choose between physical and virtual keyboards.

beaglebone has its own BSP layer, why it should be added in oe-core?

This would be for the purely open beaglebone BSP in meta-yocto-bsp.
We've always had some sort of real ARM BSP in meta-yocto-bsp for QA purposes.
I'm not sure whether we want to say the beaglebone has a keyboard and mouse by default or not though.

After discussing about this, it is "safe" to assume that generally we attach a USB keyboard and mouse to the beaglebone board. Also it is not ok to set the resolution related values for Beaglebone.

I will send a v2.

Quoted 1 line

Ross

Best Regards,
Maxin