diff options
| author | Alex Stewart <alex.stewart@ni.com> | 2024-02-08 13:10:08 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-09 13:55:06 +0000 |
| commit | 64ed7fdb53aa9137811c2977701e21c1de72d6d7 (patch) | |
| tree | 24fc81926080ef0d9fa764f32278087f4ca22b1a /meta | |
| parent | 3536981691002d227949daa91e274b54758fe315 (diff) | |
| download | poky-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.bb | 9 |
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 | ||
| 64 | WARN_QA:append = " internal-solver-deprecation" | ||
| 65 | QARECIPETEST[internal-solver-deprecation] = "qa_check_solver_deprecation" | ||
| 66 | def 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 | |||
| 64 | RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive" | 73 | RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive" |
| 65 | RDEPENDS:${PN}:class-native = "" | 74 | RDEPENDS:${PN}:class-native = "" |
| 66 | RDEPENDS:${PN}:class-nativesdk = "" | 75 | RDEPENDS:${PN}:class-nativesdk = "" |
