diff mbox series

[meta-selinux,2/2] setools: switch to PEP-517 build backend

Message ID 20240826055655.264086-2-yi.zhao@windriver.com
State New
Headers show
Series [meta-selinux,1/2] mesa: rename mesa_%.bbappend to mesa.bbappend | expand

Commit Message

Yi Zhao Aug. 26, 2024, 5:56 a.m. UTC
Fix QA warning:
WARNING: setools-4.5.1-r0 do_check_backend: QA Issue: inherits
setuptools3 but has pyproject.toml with setuptools.build_meta, use the
correct class [pep517-backend]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 recipes-security/setools/setools_4.5.1.bb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/recipes-security/setools/setools_4.5.1.bb b/recipes-security/setools/setools_4.5.1.bb
index 45063cd..9b6745e 100644
--- a/recipes-security/setools/setools_4.5.1.bb
+++ b/recipes-security/setools/setools_4.5.1.bb
@@ -18,19 +18,18 @@  S = "${WORKDIR}/git"
 
 DEPENDS = "python3-cython-native libsepol libselinux"
 
-RDEPENDS:${PN} = "python3-networkx python3-setuptools \
-                  python3-logging libselinux-python"
+RDEPENDS:${PN} = "python3-networkx python3-logging libselinux-python"
 
 RPROVIDES:${PN} = "${PN}-console"
 
-inherit setuptools3
+inherit python_setuptools_build_meta
 
 do_install:prepend() {
     sed -i -e 's:${RECIPE_SYSROOT}::g' ${S}/setools/policyrep.c
 }
 
 do_install:append() {
-    # Need PyQt5 support, disable gui tools
+    # Need PyQt6 support, disable gui tools
     rm -f ${D}${bindir}/apol
     rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setoolsgui
     rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setools/__pycache__