]> code.ossystems Code Review - openembedded-core.git/commitdiff
fontcache.bbclass: prepend to PACKAGEFUNCS instead of appending
authorJonathan Liu <net147@gmail.com>
Wed, 11 Mar 2015 02:25:56 +0000 (13:25 +1100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Apr 2015 21:38:34 +0000 (22:38 +0100)
Appending to PACKAGEFUNCS results in the font packages missing the
postinst/postrm scripts and the fontconfig cache not being generated
in /var/cache/fontconfig when creating images or installing font
packages. This is because the package data has already been emitted
by emit_pkgdata in PACKAGEFUNCS. Prepend to PACKAGEFUNCS to ensure
add_fontcache_postinsts is executed before emit_pkgdata.

[YOCTO #7410]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/fontcache.bbclass

index 2bf1e4bd1bab5510d79718196fb377892aa26e08..dcd1f0406466c57b18a732f9eb6e0d5b1b34b16e 100644 (file)
@@ -42,4 +42,4 @@ python add_fontcache_postinsts() {
         d.setVar('pkg_postrm_%s' % pkg, postrm)
 }
 
-PACKAGEFUNCS += "add_fontcache_postinsts"
+PACKAGEFUNCS =+ "add_fontcache_postinsts"