]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Jul 2020 11:45:52 +0000 (12:45 +0100)
commitc689e120961d9d20386c8b822d71d778d4e6df7b
tree874618ab24c9439662e924ceb5bf0878ccf5cccf
parent524fff214a6adc823a99358248b3891ba7c0b915
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>
meta/classes/gtk-immodules-cache.bbclass