recipes: replace runtime dependency on bash with VIRTUAL-RUNTIME_bash
RFC PATCH 1/1 recipes: replace runtime dependency on bash with VIRTUAL-RUNTIME_bash
* this allows to reliably replace bash with e.g. busybox
* without this change the QA check can find bash as the provider for /bin/bash if you build bash before some other recipe using bash and then QA issue like this is shown:
ERROR: QA Issue: foo rdepends on bash, but it isn't a build dependency , missing bash in DEPENDS or PACKAGECONFIG? [build-deps] even when the distro has bash enabled in busybox defconfig and busybox RPROVIDES bash as well as /bin/bash, this is because the QA check (and to some extend also the package-manager) doesn't know which provider is prefered, so if bash isn't built at all in sysroot, it will happily accept busybox as the provider, but when both are built in sysroot, then bash is found first and QA error is shown.
* more information in:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9217
--- meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb | 3 ++- meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb | 3 ++- meta/recipes-connectivity/openssl/openssl_1.1.0f.bb | 3 ++- meta/recipes-connectivity/resolvconf/resolvconf_1.79.bb | 3 ++- meta/recipes-core/console-tools/console-tools_0.3.2.bb | 3 ++- meta/recipes-core/dbus/dbus-test_1.10.20.bb | 3 ++- meta/recipes-core/glibc/glibc-scripts.inc | 3 ++- meta/recipes-core/systemd/systemd_234.bb | 5 +++-- meta/recipes-core/util-linux/util-linux.inc | 3 ++- meta/recipes-devtools/apt/apt_1.2.24.bb | 3 ++- meta/recipes-devtools/build-compare/build-compare_git.bb | 3 ++- meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb | 3 ++- meta/recipes-devtools/flex/flex_2.6.0.bb | 3 ++- meta/recipes-devtools/go/go-dep_0.3.0.bb | 3 ++- meta/recipes-devtools/go/go-target.inc | 3 ++- meta/recipes-devtools/libtool/libtool_2.4.6.bb | 3 ++- meta/recipes-devtools/pax-utils/pax-utils_1.2.2.bb | 3 ++- meta/recipes-devtools/qemu/qemu.inc | 3 ++- meta/recipes-devtools/qemu/qemu_2.10.0.bb | 3 ++- meta/recipes-devtools/quilt/quilt.inc | 5 +++-- meta/recipes-devtools/rpm/rpm_git.bb | 3 ++- meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 3 ++- meta/recipes-extended/hdparm/hdparm_9.52.bb | 3 ++- meta/recipes-extended/mdadm/mdadm_4.0.bb | 3 ++- meta/recipes-extended/parted/parted_3.2.bb | 3 ++- meta/recipes-kernel/dtc/dtc.inc | 3 ++- meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb | 3 ++- meta/recipes-kernel/perf/perf.bb | 9 +++++---- meta/recipes-kernel/systemtap/systemtap_git.bb | 3 ++- meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.4.bb | 3 ++- meta/recipes-support/apr/apr_1.6.2.bb | 3 ++- meta/recipes-support/attr/acl_2.2.52.bb | 3 ++- meta/recipes-support/source-highlight/source-highlight_3.1.8.bb | 3 ++- 33 files changed, 71 insertions(+), 38 deletions(-)
meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb +2 -1
@@ -17,7 +17,8 @@ inherit pkgconfig autotools manpages PACKAGECONFIG[manpages] = "--enable-doc, --disable-doc, libxslt-native xmlto-native" -RDEPENDS_${PN} = "grep bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "grep ${VIRTUAL-RUNTIME_bash}" do_configure_prepend () { ( cd ${S}; autoreconf -f -i -s )
meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb +2 -1
@@ -9,7 +9,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" # util-linux for libblkid DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3 libtirpc" -RDEPENDS_${PN} = "${PN}-client bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${PN}-client ${VIRTUAL-RUNTIME_bash}" RRECOMMENDS_${PN} = "kernel-module-nfsd" inherit useradd
meta/recipes-connectivity/openssl/openssl_1.1.0f.bb +2 -1
@@ -146,7 +146,8 @@ do_install_ptest() { sed -i 's/$target{shared_extension_simple}/".so.ptest"/' ${D}${PTEST_PATH}/test/recipes/90-test_shlibload.t } -RDEPENDS_${PN}-ptest += "perl-module-file-spec-functions bash python" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "perl-module-file-spec-functions ${VIRTUAL-RUNTIME_bash} python" FILES_${PN} =+ " ${libdir}/ssl-1.1/*"
meta/recipes-connectivity/resolvconf/resolvconf_1.79.bb +2 -1
@@ -9,7 +9,8 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b" AUTHOR = "Thomas Hood" HOMEPAGE = "http://packages.debian.org/resolvconf" -RDEPENDS_${PN} = "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_bash}" SRC_URI = "http://snapshot.debian.org/archive/debian/20160520T044340Z/pool/main/r/${BPN}/${BPN}_1.79.tar.xz \ file://fix-path-for-busybox.patch \
meta/recipes-core/console-tools/console-tools_0.3.2.bb +2 -1
@@ -42,4 +42,5 @@ ALTERNATIVE_PRIORITY = "30" bindir_progs = "chvt deallocvt fgconsole openvt" ALTERNATIVE_${PN} = "${bindir_progs}" -RDEPENDS_${PN} = "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_bash}"
meta/recipes-core/dbus/dbus-test_1.10.20.bb +2 -1
@@ -55,4 +55,5 @@ do_install_ptest() { install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test cp -r ${B}/test/data ${D}${PTEST_PATH}/test } -RDEPENDS_${PN}-ptest += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "${VIRTUAL-RUNTIME_bash}"
meta/recipes-core/glibc/glibc-scripts.inc +2 -1
@@ -2,7 +2,8 @@ require glibc-collateral.inc SUMMARY = "utility scripts provided by glibc" DESCRIPTION = "utility scripts provided by glibc" -RDEPENDS_${PN} = "bash glibc-mtrace" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_bash} glibc-mtrace" SRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale/scripts"
meta/recipes-core/systemd/systemd_234.bb +3 -2
@@ -325,7 +325,8 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze" FILES_${PN}-initramfs = "/init" RDEPENDS_${PN}-initramfs = "${PN}" -RDEPENDS_${PN}-ptest += "gawk make perl bash xz \ +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "gawk make perl ${VIRTUAL-RUNTIME_bash} xz \ tzdata tzdata-americas tzdata-asia \ tzdata-europe tzdata-africa tzdata-antarctica \ tzdata-arctic tzdata-atlantic tzdata-australia \
@@ -339,7 +340,7 @@ FILES_${PN}-vconsole-setup = "${rootlibexecdir}/systemd/systemd-vconsole-setup \ ${systemd_unitdir}/system/systemd-vconsole-setup.service \ ${systemd_unitdir}/system/sysinit.target.wants/systemd-vconsole-setup.service" -RDEPENDS_${PN}-kernel-install += "bash" +RDEPENDS_${PN}-kernel-install += "${VIRTUAL-RUNTIME_bash}" FILES_${PN}-kernel-install = "${bindir}/kernel-install \ ${sysconfdir}/kernel/ \ ${exec_prefix}/lib/kernel \
meta/recipes-core/util-linux/util-linux.inc +2 -1
@@ -302,7 +302,8 @@ python populate_packages_prepend() { } RDEPENDS_${PN}-bash-completion += "util-linux-lsblk" -RDEPENDS_${PN}-ptest = "bash grep coreutils" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest = "${VIRTUAL-RUNTIME_bash} grep coreutils" do_compile_ptest() { oe_runmake buildtest-TESTS
meta/recipes-devtools/apt/apt_1.2.24.bb +2 -1
@@ -1,5 +1,6 @@ DEPENDS = "curl db zlib" -RDEPENDS_${PN} = "dpkg bash debianutils" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "dpkg ${VIRTUAL-RUNTIME_bash} debianutils" require apt.inc require apt-package.inc
meta/recipes-devtools/build-compare/build-compare_git.bb +2 -1
@@ -36,4 +36,5 @@ do_install() { install -m 755 srpm-check.sh ${D}/${bindir} } -RDEPENDS_${PN} += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_bash}"
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb +2 -1
@@ -98,7 +98,8 @@ ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs" ALTERNATIVE_${PN}-doc = "fsck.8" ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8" -RDEPENDS_${PN}-ptest += "${PN} ${PN}-tune2fs coreutils procps bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "${PN} ${PN}-tune2fs coreutils procps ${VIRTUAL-RUNTIME_bash}" do_compile_ptest() { oe_runmake -C ${B}/tests
meta/recipes-devtools/flex/flex_2.6.0.bb +2 -1
@@ -44,7 +44,8 @@ do_install_append_class-nativesdk() { } RDEPENDS_${PN} += "m4" -RDEPENDS_${PN}-ptest += "bash gawk" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "${VIRTUAL-RUNTIME_bash} gawk" do_compile_ptest() { oe_runmake -C ${B}/tests -f ${B}/tests/Makefile top_builddir=${B} INCLUDES=-I${S}/src buildtests
meta/recipes-devtools/go/go-dep_0.3.0.bb +2 -1
@@ -15,4 +15,5 @@ GO_INSTALL = "${GO_IMPORT}/cmd/dep" INSANE_SKIP_${PN} += "ldflags" -RDEPENDS_${PN}-dev += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-dev += "${VIRTUAL-RUNTIME_bash}"
meta/recipes-devtools/go/go-target.inc +2 -1
@@ -48,7 +48,8 @@ do_install() { PACKAGES = "${PN} ${PN}-dev" FILES_${PN} = "${libdir}/go/bin ${libdir}/go/pkg/tool/${TARGET_GOTUPLE} ${bindir}" FILES_${PN}-dev = "${libdir}/go" -RDEPENDS_${PN}-dev = "perl bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-dev = "perl ${VIRTUAL-RUNTIME_bash}" INSANE_SKIP_${PN} = "ldflags" BBCLASSEXTEND = "nativesdk"
meta/recipes-devtools/libtool/libtool_2.4.6.bb +2 -1
@@ -1,6 +1,7 @@ require libtool-${PV}.inc -RDEPENDS_${PN} += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_bash}" # # We want the results of libtool-cross preserved - don't stage anything ourselves.
meta/recipes-devtools/pax-utils/pax-utils_1.2.2.bb +2 -1
@@ -15,7 +15,8 @@ SRC_URI[sha256sum] = "7f4a7f8db6b4743adde7582fa48992ad01776796fcde030683732f5622 UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/p/pax-utils/" UPSTREAM_CHECK_REGEX = "pax-utils_(?P<pver>\d+(\.\d+)+)\.orig\.tar" -RDEPENDS_${PN} += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_bash}" export GNULIB_OVERRIDES_WINT_T = "0"
meta/recipes-devtools/qemu/qemu.inc +2 -1
@@ -2,7 +2,8 @@ SUMMARY = "Fast open source processor emulator" HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "glib-2.0 zlib pixman" -RDEPENDS_${PN}_class-target += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}_class-target += "${VIRTUAL-RUNTIME_bash}" require qemu-targets.inc inherit autotools pkgconfig bluetooth
meta/recipes-devtools/qemu/qemu_2.10.0.bb +2 -1
@@ -2,7 +2,8 @@ require qemu.inc inherit ptest -RDEPENDS_${PN}-ptest = "bash make" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest = "${VIRTUAL-RUNTIME_bash} make" LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
meta/recipes-devtools/quilt/quilt.inc +3 -2
@@ -29,7 +29,8 @@ FILES_guards = "${bindir}/guards" FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" FILES_guards-doc = "${mandir}/man1/guards.1" -RDEPENDS_${PN} = "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_bash}" EXTRA_OE_MAKE_ARGS_darwin ?= "" EXTRA_OE_MAKE_ARGS ?= "BUILD_ROOT=${D}"
@@ -73,5 +74,5 @@ RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \ perl-module-filehandle perl-module-getopt-std \ perl-module-posix perl-module-file-temp \ perl-module-text-parsewords perl-module-overloading \ - bash util-linux-getopt \ + ${VIRTUAL-RUNTIME_bash} util-linux-getopt \ "
meta/recipes-devtools/rpm/rpm_git.bb +2 -1
@@ -126,4 +126,5 @@ FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" # rpm 5.x was packaging the rpm build tools separately RPROVIDES_${PN} += "rpm-build" -RDEPENDS_${PN} = "bash perl python3-core" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_bash} perl python3-core"
meta/recipes-devtools/tcf-agent/tcf-agent_git.bb +2 -1
@@ -19,7 +19,8 @@ SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent;branch=1.4_ne UPSTREAM_VERSION_UNKNOWN = "1" DEPENDS = "util-linux openssl" -RDEPENDS_${PN} = "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_bash}" S = "${WORKDIR}/git/agent"
meta/recipes-extended/hdparm/hdparm_9.52.bb +2 -1
@@ -18,7 +18,8 @@ PACKAGES =+ "wiper" FILES_wiper = "${bindir}/wiper.sh" -RDEPENDS_wiper = "bash gawk stat" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_wiper = "${VIRTUAL-RUNTIME_bash} gawk stat" SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz"
meta/recipes-extended/mdadm/mdadm_4.0.bb +2 -1
@@ -64,7 +64,8 @@ do_install_ptest() { install -D -m 755 $prg ${D}${PTEST_PATH}/ done } -RDEPENDS_${PN}-ptest += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "${VIRTUAL-RUNTIME_bash}" RRECOMMENDS_${PN}-ptest += " \ coreutils \ util-linux \
meta/recipes-extended/parted/parted_3.2.bb +2 -1
@@ -46,4 +46,5 @@ do_install_ptest() { sed -e 's| ../parted||' -i $t/tests/*.sh } -RDEPENDS_${PN}-ptest = "bash coreutils perl util-linux-losetup python3" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest = "${VIRTUAL-RUNTIME_bash} coreutils perl util-linux-losetup python3"
meta/recipes-kernel/dtc/dtc.inc +2 -1
@@ -19,4 +19,5 @@ do_install () { PACKAGES =+ "${PN}-misc" FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" -RDEPENDS_${PN}-misc += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-misc += "${VIRTUAL-RUNTIME_bash}"
meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb +2 -1
@@ -11,7 +11,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=01d7fc4496aacf37d90df90b90b0cac1 \ DEPENDS = "liburcu popt libxml2 util-linux" RDEPENDS_${PN} = "libgcc" -RDEPENDS_${PN}-ptest += "make perl bash gawk ${PN} babeltrace procps" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest += "make perl ${VIRTUAL-RUNTIME_bash} gawk ${PN} babeltrace procps" # babelstats.pl wants getopt-long RDEPENDS_${PN}-ptest += "perl-module-getopt-long"
meta/recipes-kernel/perf/perf.bb +5 -4
@@ -211,11 +211,12 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python" -RDEPENDS_${PN} += "elfutils bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} += "elfutils ${VIRTUAL-RUNTIME_bash}" RDEPENDS_${PN}-doc += "man" -RDEPENDS_${PN}-archive =+ "bash" -RDEPENDS_${PN}-python =+ "bash python python-modules" -RDEPENDS_${PN}-perl =+ "bash perl perl-modules" +RDEPENDS_${PN}-archive =+ "${VIRTUAL-RUNTIME_bash}" +RDEPENDS_${PN}-python =+ "${VIRTUAL-RUNTIME_bash} python python-modules" +RDEPENDS_${PN}-perl =+ "${VIRTUAL-RUNTIME_bash} perl perl-modules" RDEPENDS_${PN}-tests =+ "python" RSUGGESTS_SCRIPTING = "${@bb.utils.contains('PACKAGECONFIG', 'scripting', '${PN}-perl ${PN}-python', '',d)}"
meta/recipes-kernel/systemtap/systemtap_git.bb +2 -1
@@ -5,7 +5,8 @@ require systemtap_git.inc DEPENDS = "boost elfutils" -RDEPENDS_${PN} += "python3-core bash perl" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} += "python3-core ${VIRTUAL-RUNTIME_bash} perl" EXTRA_OECONF += "--with-libelf=${STAGING_DIR_TARGET} --without-rpm \ --without-nss --without-avahi --without-dyninst \
meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.4.bb +2 -1
@@ -6,7 +6,8 @@ PROVIDES = "alsa-utils-alsaconf" FILESEXTRAPATHS_prepend := "${THISDIR}/alsa-utils:" PACKAGES = "${PN}" -RDEPENDS_${PN} += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_bash}" FILES_${PN} = "${sbindir}/alsaconf \ ${sbindir}/alsa-info.sh \
meta/recipes-support/apr/apr_1.6.2.bb +2 -1
@@ -54,7 +54,8 @@ do_configure_prepend() { } FILES_${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*" -RDEPENDS_${PN}-dev += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-dev += "${VIRTUAL-RUNTIME_bash}" #for some reason, build/libtool.m4 handled by buildconf still be overwritten #when autoconf, so handle it again.
meta/recipes-support/attr/acl_2.2.52.bb +2 -1
@@ -50,6 +50,7 @@ do_install_ptest() { -i ${D}${PTEST_PATH}/include/builddefs } -RDEPENDS_${PN}-ptest = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN}-ptest = "acl ${VIRTUAL-RUNTIME_bash} coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow" BBCLASSEXTEND = "native nativesdk"
meta/recipes-support/source-highlight/source-highlight_3.1.8.bb +2 -1
@@ -25,4 +25,5 @@ do_configure_prepend_class-target () { sed -i -e 's,^SRCHILITEEXE = $(top_builddir).*,SRCHILITEEXE = source-highlight,' ${S}/doc/Makefile.am } -RDEPENDS_source-highlight += "bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_source-highlight += "${VIRTUAL-RUNTIME_bash}"
Signature · 1 line
2.14.1
Quoted 66 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: den 13 september 2017 16:49
To: [email protected]
Subject: [OE-core] [RFC][PATCH] recipes: replace runtime dependency on bash with VIRTUAL-RUNTIME_bash* this allows to reliably replace bash with e.g. busybox
* without this change the QA check can find bash as the provider for/bin/bashif you build bash before some other recipe using bash and then QA issue like this is shown:
ERROR: QA Issue: foo rdepends on bash, but it isn't a build dependency , missing bash in DEPENDS or PACKAGECONFIG? [build-deps] even when the distro has bash enabled in busybox defconfig and busybox RPROVIDES bash as well as/bin/bash, this is because the QA check (and to some extend also the package-manager) doesn't know which provider is prefered, so if bash isn't built at all in sysroot, it will happily accept busybox as the provider, but when both are built in sysroot, then bash is found first and QA error is shown.
* more information in:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9217Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb | 3 ++- meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb | 3 ++- meta/recipes-connectivity/openssl/openssl_1.1.0f.bb | 3 ++- meta/recipes-connectivity/resolvconf/resolvconf_1.79.bb | 3 ++- meta/recipes-core/console-tools/console-tools_0.3.2.bb | 3 ++- meta/recipes-core/dbus/dbus-test_1.10.20.bb | 3 ++- meta/recipes-core/glibc/glibc-scripts.inc | 3 ++- meta/recipes-core/systemd/systemd_234.bb | 5 +++-- meta/recipes-core/util-linux/util-linux.inc | 3 ++- meta/recipes-devtools/apt/apt_1.2.24.bb | 3 ++- meta/recipes-devtools/build-compare/build-compare_git.bb | 3 ++- meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb | 3 ++- meta/recipes-devtools/flex/flex_2.6.0.bb | 3 ++- meta/recipes-devtools/go/go-dep_0.3.0.bb | 3 ++- meta/recipes-devtools/go/go-target.inc | 3 ++- meta/recipes-devtools/libtool/libtool_2.4.6.bb | 3 ++- meta/recipes-devtools/pax-utils/pax-utils_1.2.2.bb | 3 ++- meta/recipes-devtools/qemu/qemu.inc | 3 ++- meta/recipes-devtools/qemu/qemu_2.10.0.bb | 3 ++- meta/recipes-devtools/quilt/quilt.inc | 5 +++-- meta/recipes-devtools/rpm/rpm_git.bb | 3 ++- meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 3 ++- meta/recipes-extended/hdparm/hdparm_9.52.bb | 3 ++- meta/recipes-extended/mdadm/mdadm_4.0.bb | 3 ++- meta/recipes-extended/parted/parted_3.2.bb | 3 ++- meta/recipes-kernel/dtc/dtc.inc | 3 ++- meta/recipes-kernel/lttng/lttng-tools_2.9.5.bb | 3 ++- meta/recipes-kernel/perf/perf.bb | 9 +++++---- meta/recipes-kernel/systemtap/systemtap_git.bb | 3 ++- meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.4.bb | 3 ++- meta/recipes-support/apr/apr_1.6.2.bb | 3 ++- meta/recipes-support/attr/acl_2.2.52.bb | 3 ++- meta/recipes-support/source-highlight/source-highlight_3.1.8.bb | 3 ++- 33 files changed, 71 insertions(+), 38 deletions(-)meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb +0
-0
meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb inherit pkgconfig autotools manpages · line 20
Quoted 5 lines
meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb +1
-1@@ -17,7 +17,8 @@ inherit pkgconfig autotools manpages PACKAGECONFIG[manpages] = "--enable-doc, --disable-doc, libxslt-native xmlto-native" -RDEPENDS_${PN} = "grep bash" +VIRTUAL-RUNTIME_bash ?= "bash"
Isn't it better to set the default once in
meta/conf/distro/include/default-providers.inc?
Quoted 13 lines
meta/recipes-bsp/pm-utils/pm-utils_1.4.1.bb +1
-0+RDEPENDS_${PN} = "grep ${VIRTUAL-RUNTIME_bash}" do_configure_prepend () { ( cd ${S}; autoreconf -f -i -s )meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb +0
-0@@ -9,7 +9,8 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84"
# util-linux for libblkid DEPENDS = "libcap libnfsidmap libevent util-linux sqlite3 libtirpc"
meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" · line 16
Quoted 6 lines
meta/recipes-connectivity/nfs-utils/nfs-utils_2.1.1.bb +2
-1-RDEPENDS_${PN} = "${PN}-client bash" +VIRTUAL-RUNTIME_bash ?= "bash" +RDEPENDS_${PN} = "${PN}-client ${VIRTUAL-RUNTIME_bash}" RRECOMMENDS_${PN} = "kernel-module-nfsd" inherit useradd
...
//Peter