]> code.ossystems Code Review - openembedded-core.git/commit
gtk-immodules-cache.bbclass: fix post install scriptlet error
authorChangqing Li <changqing.li@windriver.com>
Tue, 21 Jul 2020 03:06:03 +0000 (11:06 +0800)
committerSteve Sakoman <steve@sakoman.com>
Mon, 27 Jul 2020 22:15:56 +0000 (12:15 -1000)
commitd22af1a7d68b59da8967179af0893003e7d8a8a1
tree76cae01700e0d1172cc770d971b3f5e1112c7e4f
parent92d8bba5405244ae2594abc1a012c08c74999ab4
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

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>
meta/classes/gtk-immodules-cache.bbclass