summaryrefslogtreecommitdiffstats
path: root/meta/classes/pixbufcache.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/pixbufcache.bbclass
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/pixbufcache.bbclass')
-rw-r--r--meta/classes/pixbufcache.bbclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass
index b07f51ed56..886bf195b3 100644
--- a/meta/classes/pixbufcache.bbclass
+++ b/meta/classes/pixbufcache.bbclass
@@ -3,7 +3,7 @@
3# packages. 3# packages.
4# 4#
5 5
6DEPENDS_append_class-target = " qemu-native" 6DEPENDS:append:class-target = " qemu-native"
7inherit qemu 7inherit qemu
8 8
9PIXBUF_PACKAGES ??= "${PN}" 9PIXBUF_PACKAGES ??= "${PN}"
@@ -29,30 +29,30 @@ else
29fi 29fi
30} 30}
31 31
32python populate_packages_append() { 32python populate_packages:append() {
33 pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split() 33 pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split()
34 34
35 for pkg in pixbuf_pkgs: 35 for pkg in pixbuf_pkgs:
36 bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg) 36 bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg)
37 postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst') 37 postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst')
38 if not postinst: 38 if not postinst:
39 postinst = '#!/bin/sh\n' 39 postinst = '#!/bin/sh\n'
40 postinst += d.getVar('pixbufcache_common') 40 postinst += d.getVar('pixbufcache_common')
41 d.setVar('pkg_postinst_%s' % pkg, postinst) 41 d.setVar('pkg_postinst:%s' % pkg, postinst)
42 42
43 postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm') 43 postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm')
44 if not postrm: 44 if not postrm:
45 postrm = '#!/bin/sh\n' 45 postrm = '#!/bin/sh\n'
46 postrm += d.getVar('pixbufcache_common') 46 postrm += d.getVar('pixbufcache_common')
47 d.setVar('pkg_postrm_%s' % pkg, postrm) 47 d.setVar('pkg_postrm:%s' % pkg, postrm)
48} 48}
49 49
50gdkpixbuf_complete() { 50gdkpixbuf_complete() {
51GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache || exit 1 51GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache || exit 1
52} 52}
53 53
54DEPENDS_append_class-native = " gdk-pixbuf-native" 54DEPENDS:append:class-native = " gdk-pixbuf-native"
55SYSROOT_PREPROCESS_FUNCS_append_class-native = " pixbufcache_sstate_postinst" 55SYSROOT_PREPROCESS_FUNCS:append:class-native = " pixbufcache_sstate_postinst"
56 56
57pixbufcache_sstate_postinst() { 57pixbufcache_sstate_postinst() {
58 mkdir -p ${SYSROOT_DESTDIR}${bindir} 58 mkdir -p ${SYSROOT_DESTDIR}${bindir}