aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-sato
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2018-06-22 14:01:50 +0500
committerAwais Belal <awais_belal@mentor.com>2018-06-22 14:04:15 +0500
commitcba6fdd84ae163de9cdc6e7092f8ae538b90b2a3 (patch)
tree6525ff5d614260ca909addb39204f4e7bd2cb343 /common/recipes-sato
parent04ccbdcfb632f4a125969012526ac23cf6f0e600 (diff)
downloadmeta-amd-cba6fdd84ae163de9cdc6e7092f8ae538b90b2a3.tar.gz
meta-amd-cba6fdd84ae163de9cdc6e7092f8ae538b90b2a3.tar.bz2
meta-amd-cba6fdd84ae163de9cdc6e7092f8ae538b90b2a3.zip
matchbox-keyboard: fix warning for scriptlet failure
The GTK module scriptlet fails to run as it utilizes qemu which is currently not working for our BSPs due to lack of a few instructions emulation on the qemu platform and warnings are generated although the scriptlet is deffered till first boot. The following warning is seen: WARNING: Intentionally failing postinstall scriptlets of ['matchbox-keyboard-im', 'eudev-hwdb'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} (). We now defer the scriptlet forcefully till the first boot to cover up for the warning. Signed-off-by: Awais Belal <awais_belal@mentor.com>
Diffstat (limited to 'common/recipes-sato')
-rw-r--r--common/recipes-sato/matchbox-keyboard/matchbox-keyboard_0.1.1.bbappend12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/recipes-sato/matchbox-keyboard/matchbox-keyboard_0.1.1.bbappend b/common/recipes-sato/matchbox-keyboard/matchbox-keyboard_0.1.1.bbappend
new file mode 100644
index 00000000..812c36c7
--- /dev/null
+++ b/common/recipes-sato/matchbox-keyboard/matchbox-keyboard_0.1.1.bbappend
@@ -0,0 +1,12 @@
+gtk_immodule_cache_postinst_amd() {
+}
+pkg_postinst_matchbox-keyboard-im_amd () {
+}
+pkg_postinst_ontarget_matchbox-keyboard-im_amd () {
+ if [ ! -z `which gtk-query-immodules-2.0` ]; then
+ 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 > ${libdir}/gtk-3.0/3.0.0/immodules.cache
+ fi
+}