summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlex Stewart <alex.stewart@ni.com>2024-02-08 13:10:08 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-09 13:55:06 +0000
commit64ed7fdb53aa9137811c2977701e21c1de72d6d7 (patch)
tree24fc81926080ef0d9fa764f32278087f4ca22b1a /meta
parent3536981691002d227949daa91e274b54758fe315 (diff)
downloadpoky-64ed7fdb53aa9137811c2977701e21c1de72d6d7.tar.gz
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 <alex.stewart@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/opkg/opkg_0.6.3.bb9
1 files changed, 9 insertions, 0 deletions
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 () {
61 sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0" ];then echo "FAIL:"$^;else echo "PASS:"$^;fi' ${D}${PTEST_PATH}/tests/Makefile 61 sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0" ];then echo "FAIL:"$^;else echo "PASS:"$^;fi' ${D}${PTEST_PATH}/tests/Makefile
62} 62}
63 63
64WARN_QA:append = " internal-solver-deprecation"
65QARECIPETEST[internal-solver-deprecation] = "qa_check_solver_deprecation"
66def qa_check_solver_deprecation (pn, d, messages):
67 pkgconfig = (d.getVar("PACKAGECONFIG") or "").split()
68
69 if "libsolv" not in pkgconfig:
70 oe.qa.handle_error("internal-solver-deprecation", "The opkg internal solver will be deprecated in future opkg releases. Consider enabling \"libsolv\" in PACKAGECONFIG.", d)
71
72
64RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive" 73RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive"
65RDEPENDS:${PN}:class-native = "" 74RDEPENDS:${PN}:class-native = ""
66RDEPENDS:${PN}:class-nativesdk = "" 75RDEPENDS:${PN}:class-nativesdk = ""