From 3482e0e650fc2d76ff2076f9aa28382a8c5116c4 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Mon, 26 Aug 2024 13:56:55 +0800 Subject: setools: switch to PEP-517 build backend 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 Signed-off-by: Joe MacDonald --- recipes-security/setools/setools_4.5.1.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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__ -- cgit v1.2.3-54-g00ecf