From fd1517e2b51a170f2427122c6b95396db251d827 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 10 Aug 2022 14:35:29 +0100 Subject: classes: Update classes to match new bitbake class scope functionality Move classes to classes-global or classes-recipe as appropriate to take advantage of new bitbake functionality to check class scope/usage. (From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045) Signed-off-by: Richard Purdie --- meta/classes/gio-module-cache.bbclass | 44 ----------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 meta/classes/gio-module-cache.bbclass (limited to 'meta/classes/gio-module-cache.bbclass') diff --git a/meta/classes/gio-module-cache.bbclass b/meta/classes/gio-module-cache.bbclass deleted file mode 100644 index d12e03c4a0..0000000000 --- a/meta/classes/gio-module-cache.bbclass +++ /dev/null @@ -1,44 +0,0 @@ -# -# Copyright OpenEmbedded Contributors -# -# SPDX-License-Identifier: MIT -# - -PACKAGE_WRITE_DEPS += "qemu-native" -inherit qemu - -GIO_MODULE_PACKAGES ??= "${PN}" - -gio_module_cache_common() { -if [ "x$D" != "x" ]; then - $INTERCEPT_DIR/postinst_intercept update_gio_module_cache ${PKG} \ - mlprefix=${MLPREFIX} \ - binprefix=${MLPREFIX} \ - libdir=${libdir} \ - libexecdir=${libexecdir} \ - base_libdir=${base_libdir} \ - bindir=${bindir} -else - ${libexecdir}/${MLPREFIX}gio-querymodules ${libdir}/gio/modules/ -fi -} - -python populate_packages:append () { - packages = d.getVar('GIO_MODULE_PACKAGES').split() - - for pkg in packages: - bb.note("adding gio-module-cache postinst and postrm scripts to %s" % pkg) - - postinst = d.getVar('pkg_postinst:%s' % pkg) - if not postinst: - postinst = '#!/bin/sh\n' - postinst += d.getVar('gio_module_cache_common') - d.setVar('pkg_postinst:%s' % pkg, postinst) - - postrm = d.getVar('pkg_postrm:%s' % pkg) - if not postrm: - postrm = '#!/bin/sh\n' - postrm += d.getVar('gio_module_cache_common') - d.setVar('pkg_postrm:%s' % pkg, postrm) -} - -- cgit v1.2.3-54-g00ecf