dbus-test: Improve ptest dependencies dependencies
PATCH 1/2 dbus-test: Improve ptest dependencies dependencies
The dbus-test package is empty, move its dependencies to the ${PN}-ptest package. Also ensure that it doesn't depend on the empty ${PN} package which is about to start causing image failures in the following commit. In this case the correct dependency is dbus itself.
--- meta/recipes-core/dbus/dbus-test_1.12.12.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/dbus/dbus-test_1.12.12.bb +2 -2
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ DEPENDS = "dbus glib-2.0" -RDEPENDS_${PN} += "make" RDEPENDS_${PN}-dev = "" SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
@@ -85,6 +84,7 @@ do_install_ptest() { sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g' ${D}${PTEST_PATH}/run-ptest } -RDEPENDS_${PN}-ptest += "bash" +RDEPENDS_${PN}-ptest += "bash make dbus" +RDEPENDS_${PN}-ptest_remove = "${PN}" PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3"
Signature · 1 line
2.20.1
PATCH 2/2 ptest: Add RDEPENDS frpm PN-ptest to PN package
Many different ptests are breaking as they assume that ${PN}-ptest depends on ${PN}. It doesn't currently but should. If we fix this, many different ptests start passing when they previously failed.
It does depend on fixing an issue in the dbus-test recipe which is done in the preceeding patch (mentioned in case this gets backported).
--- meta/classes/ptest.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/ptest.bbclass +1 -0
@@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}" PTEST_ENABLED_class-native = "" PTEST_ENABLED_class-nativesdk = "" PTEST_ENABLED_class-cross-canadian = "" +RDEPENDS_${PN}-ptest += "${PN}" RDEPENDS_${PN}-ptest_class-native = "" RDEPENDS_${PN}-ptest_class-nativesdk = "" RRECOMMENDS_${PN}-ptest += "ptest-runner"
Signature · 1 line
2.20.1
Re: [PATCH 2/2] ptest: Add RDEPENDS frpm PN-ptest to PN package
Quoted 3 lines · Richard Purdie
Many different ptests are breaking as they assume that ${PN}-ptest depends on ${PN}. It doesn't currently but should. If we fix this, many different ptests start passing when they previously failed.
Ah, cool, noticed this with some my recipes and fixed them.
BTW, if you run ptest with core-image-minimal ( with openssd) more dependences can be found.
Quoted 2 lines
It does depend on fixing an issue in the dbus-test recipe which is done in the preceeding patch (mentioned in case this gets backported).
will put it into the bucket.
- armin
Quoted 18 lines
Signed-off-by Richard Purdie <[email protected]>--- meta/classes/ptest.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes/ptest.bbclass +1
-0@@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}" PTEST_ENABLED_class-native = "" PTEST_ENABLED_class-nativesdk = "" PTEST_ENABLED_class-cross-canadian = "" +RDEPENDS_${PN}-ptest += "${PN}" RDEPENDS_${PN}-ptest_class-native = "" RDEPENDS_${PN}-ptest_class-nativesdk = "" RRECOMMENDS_${PN}-ptest += "ptest-runner"
Re: [PATCH 2/2] ptest: Add RDEPENDS frpm PN-ptest to PN package
In reply to Richard PurdieQuoted 6 lines · Richard Purdie
Many different ptests are breaking as they assume that ${PN}-ptest depends on ${PN}. It doesn't currently but should. If we fix this, many different ptests start passing when they previously failed.
It does depend on fixing an issue in the dbus-test recipe which is done in the preceeding patch (mentioned in case this gets backported).
Awesome! Thanks for this. In our case we build many packages and their ptests but they may not be installed to images by default. Thus this helps.
Same also applies to our SDK. We build more stuff for the SDK than what is installed by default.
Quoted 25 lines
Signed-off-by Richard Purdie <[email protected]>--- meta/classes/ptest.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes/ptest.bbclass +1
-0@@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}" PTEST_ENABLED_class-native = "" PTEST_ENABLED_class-nativesdk = "" PTEST_ENABLED_class-cross-canadian = "" +RDEPENDS_${PN}-ptest += "${PN}" RDEPENDS_${PN}-ptest_class-native = "" RDEPENDS_${PN}-ptest_class-nativesdk = "" RRECOMMENDS_${PN}-ptest += "ptest-runner"Signature · 7 lines
2.20.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core