summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-07-21 03:06:03 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-31 21:02:52 (GMT)
commit37657703e1ade4088c7c731eec2861f3388cb641 (patch)
tree492c96c23a01fe1beb84443cec79a9c7e3080a34 /meta
parent6e1263c5f95a6c990f7640387adb634c5a7bcfd6 (diff)
downloadpoky-37657703e1ade4088c7c731eec2861f3388cb641.tar.gz
gtk-immodules-cache.bbclass: fix post install scriptlet error
package libgtk-3.0 don't install dir /usr/lib/gtk-3.0/3.0.0/ by default. when install package gtk-immodule-xim, it is possible met below error: /var/tmp/rpm-tmp.tlfoeo: line 17: /usr/lib/gtk-3.0/3.0.0/immodules.cache: No such file or directory warning: %post(gtk-immodule-xim-2.24.32-r0.0.cortexa72) scriptlet failed, exit status 1 fix by create the dir when try to write to /usr/lib/gtk-3.0/3.0.0/immodules.cache (From OE-Core rev: d22af1a7d68b59da8967179af0893003e7d8a8a1) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c689e120961d9d20386c8b822d71d778d4e6df7b) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/gtk-immodules-cache.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/gtk-immodules-cache.bbclass b/meta/classes/gtk-immodules-cache.bbclass
index 9bb0af8..8e783fb 100644
--- a/meta/classes/gtk-immodules-cache.bbclass
+++ b/meta/classes/gtk-immodules-cache.bbclass
@@ -22,6 +22,7 @@ else
22 gtk-query-immodules-2.0 > ${libdir}/gtk-2.0/2.10.0/immodules.cache 22 gtk-query-immodules-2.0 > ${libdir}/gtk-2.0/2.10.0/immodules.cache
23 fi 23 fi
24 if [ ! -z `which gtk-query-immodules-3.0` ]; then 24 if [ ! -z `which gtk-query-immodules-3.0` ]; then
25 mkdir -p ${libdir}/gtk-3.0/3.0.0
25 gtk-query-immodules-3.0 > ${libdir}/gtk-3.0/3.0.0/immodules.cache 26 gtk-query-immodules-3.0 > ${libdir}/gtk-3.0/3.0.0/immodules.cache
26 fi 27 fi
27fi 28fi