From 64ed7fdb53aa9137811c2977701e21c1de72d6d7 Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Thu, 8 Feb 2024 13:10:08 -0500 Subject: [PATCH] opkg: add deprecation warning for internal solver The opkg internal sat-solver is marked for deprecation in a future release. Add a recipe QA check to warn users who have the internal solver configured. (From OE-Core rev: c8405b86c6c3f9054810914105de5d70c4b7800b) Signed-off-by: Alex Stewart Signed-off-by: Richard Purdie --- meta/recipes-devtools/opkg/opkg_0.6.3.bb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meta/recipes-devtools/opkg/opkg_0.6.3.bb b/meta/recipes-devtools/opkg/opkg_0.6.3.bb index 1f15c44e3e..9592ffc5d6 100644 --- a/meta/recipes-devtools/opkg/opkg_0.6.3.bb +++ b/meta/recipes-devtools/opkg/opkg_0.6.3.bb @@ -61,6 +61,15 @@ do_install_ptest () { sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0" ];then echo "FAIL:"$^;else echo "PASS:"$^;fi' ${D}${PTEST_PATH}/tests/Makefile } +WARN_QA:append = " internal-solver-deprecation" +QARECIPETEST[internal-solver-deprecation] = "qa_check_solver_deprecation" +def qa_check_solver_deprecation (pn, d, messages): + pkgconfig = (d.getVar("PACKAGECONFIG") or "").split() + + if "libsolv" not in pkgconfig: + oe.qa.handle_error("internal-solver-deprecation", "The opkg internal solver will be deprecated in future opkg releases. Consider enabling \"libsolv\" in PACKAGECONFIG.", d) + + RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive" RDEPENDS:${PN}:class-native = "" RDEPENDS:${PN}:class-nativesdk = ""