]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/recipes: remove unnecessary qemu inherit and use qemuwrapper-cross
authorChen Qi <Qi.Chen@windriver.com>
Sun, 20 Apr 2025 04:05:24 +0000 (12:05 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Apr 2025 14:53:22 +0000 (15:53 +0100)
These classes/recipes inherit qemu.bbclass but do not use anything from it.
What they use is qemuwrapper-cross, which is needed at do_rootfs time and
needs to be pulled-in by PACKAGE_WRITE_DEPS.

Also, in meta/conf/layer.conf, exclude qemuwrapper-cross deps for all arch
recipes that depend on it. This it ensure allarch recipes have the same
signature across different machines.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/fontcache.bbclass
meta/classes-recipe/gio-module-cache.bbclass
meta/classes-recipe/gtk-immodules-cache.bbclass
meta/classes-recipe/manpages.bbclass
meta/classes-recipe/pixbufcache.bbclass
meta/conf/layer.conf
meta/recipes-core/systemd/systemd_257.5.bb
meta/recipes-core/udev/eudev_3.2.14.bb

index 6f4978369d24afae59f1c88d3e1cf36f9dd1b317..deadcd2fbbeb92501f63440f84397d55b6a42d8e 100644 (file)
@@ -9,8 +9,7 @@
 # packages.
 #
 
-PACKAGE_WRITE_DEPS += "qemu-native"
-inherit qemu
+PACKAGE_WRITE_DEPS += "qemuwrapper-cross"
 
 FONT_PACKAGES ??= "${PN}"
 FONT_PACKAGES:class-native = ""
index d12e03c4a08a69448353a512354a2b164ce03d0b..3714678c7c24720a9edc9535ca1f6828347ac738 100644 (file)
@@ -4,8 +4,7 @@
 # SPDX-License-Identifier: MIT
 #
 
-PACKAGE_WRITE_DEPS += "qemu-native"
-inherit qemu
+PACKAGE_WRITE_DEPS += "qemuwrapper-cross"
 
 GIO_MODULE_PACKAGES ??= "${PN}"
 
index 8fbe1dd1fb4adbb958d4f133b0c8c248cd45d5bd..585838c105d0531d8c28d21aac9c3a553f92817c 100644 (file)
@@ -8,9 +8,7 @@
 #
 # Usage: Set GTKIMMODULES_PACKAGES to the packages that needs to update the inputmethod modules
 
-PACKAGE_WRITE_DEPS += "qemu-native"
-
-inherit qemu
+PACKAGE_WRITE_DEPS += "qemuwrapper-cross"
 
 GTKIMMODULES_PACKAGES ?= "${PN}"
 
index e9ca2f895bdd6c5b6622be94bd7c2a548b4eda1c..f3d034b0468829a645eb9c3ad8be0eabdbf3472a 100644 (file)
@@ -10,7 +10,7 @@
 # by default.
 PACKAGECONFIG:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}"
 
-inherit qemu
+PACKAGE_WRITE_DEPS += "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'qemuwrapper-cross', '', d)}"
 
 # usually manual files are packaged to ${PN}-doc except man-pages
 MAN_PKG ?= "${PN}-doc"
index 107e38885ef68d2cd5a161202304148e1aa6819a..c32673df55f1e227f1a372719bbc05d320513fbf 100644 (file)
@@ -9,12 +9,9 @@
 # packages.
 #
 
-DEPENDS:append:class-target = " qemu-native"
-inherit qemu
-
 PIXBUF_PACKAGES ??= "${PN}"
 
-PACKAGE_WRITE_DEPS += "qemu-native gdk-pixbuf-native"
+PACKAGE_WRITE_DEPS += "qemuwrapper-cross gdk-pixbuf-native"
 
 pixbufcache_common() {
 if [ "x$D" != "x" ]; then
index 6a70cb63a58cf462f9a4e355131f4f3dd8d105ab..e19431e7247ee7a8c0061072e90b40855fb3643c 100644 (file)
@@ -89,6 +89,9 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   adwaita-icon-theme->gdk-pixbuf \
   adwaita-icon-theme->gtk+3 \
   run-postinsts->util-linux \
+  cantarell-fonts->qemuwrapper-cross \
+  liberation-fonts->qemuwrapper-cross \
+  ttf-bitstream-vera->qemuwrapper-cross \
 "
 
 # Avoid adding bison-native to the sysroot without a specific
index bd57f1f5a5703b326c913b62ae69b4d403bee401..1379b21889c473e72a3984b151ec5a812b96d016 100644 (file)
@@ -8,7 +8,7 @@ DEPENDS = "gperf-native libcap util-linux python3-jinja2-native"
 
 SECTION = "base/shell"
 
-inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu systemd gettext bash-completion manpages features_check mime
+inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives systemd gettext bash-completion manpages features_check mime
 
 # unmerged-usr support is deprecated upstream, taints the system and will be
 # removed in the near future. Fail the build if it is not enabled.
@@ -932,7 +932,8 @@ pkg_prerm:${PN}:libc-glibc () {
        fi
 }
 
-PACKAGE_WRITE_DEPS += "qemu-native"
+PACKAGE_WRITE_DEPS += "qemuwrapper-cross"
+
 pkg_postinst:udev-hwdb () {
        if test -n "$D"; then
                $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \
index b3e7d092c58dad25cd38afcd1199282c4e9f2631..a2d222e655e5c81582e3cd28c16f97fd8c7e8b1c 100644 (file)
@@ -20,7 +20,7 @@ SRC_URI[sha256sum] = "8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc192
 
 GITHUB_BASE_URI = "https://github.com/eudev-project/eudev/releases"
 
-inherit autotools update-rc.d qemu pkgconfig features_check manpages github-releases
+inherit autotools update-rc.d pkgconfig features_check manpages github-releases
 
 CONFLICT_DISTRO_FEATURES = "systemd"
 
@@ -77,7 +77,7 @@ RDEPENDS:${PN} += "kmod"
 RPROVIDES:${PN} = "hotplug udev"
 RPROVIDES:${PN}-hwdb += "udev-hwdb"
 
-PACKAGE_WRITE_DEPS += "qemu-native"
+PACKAGE_WRITE_DEPS += "qemuwrapper-cross"
 pkg_postinst:${PN}-hwdb () {
        if test -n "$D"; then
                $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX}