diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2024-08-26 13:56:55 +0800 |
---|---|---|
committer | Joe MacDonald <joe.macdonald@siemens.com> | 2024-08-26 08:16:18 -0400 |
commit | 3482e0e650fc2d76ff2076f9aa28382a8c5116c4 (patch) | |
tree | 3540a186dd238630c0898ef0affe4be6acb91051 | |
parent | 98294b19c0cc75e93f6204cf651fe1df251609be (diff) | |
download | meta-selinux-3482e0e650fc2d76ff2076f9aa28382a8c5116c4.tar.gz |
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 <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
-rw-r--r-- | recipes-security/setools/setools_4.5.1.bb | 7 |
1 files 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" | |||
18 | 18 | ||
19 | DEPENDS = "python3-cython-native libsepol libselinux" | 19 | DEPENDS = "python3-cython-native libsepol libselinux" |
20 | 20 | ||
21 | RDEPENDS:${PN} = "python3-networkx python3-setuptools \ | 21 | RDEPENDS:${PN} = "python3-networkx python3-logging libselinux-python" |
22 | python3-logging libselinux-python" | ||
23 | 22 | ||
24 | RPROVIDES:${PN} = "${PN}-console" | 23 | RPROVIDES:${PN} = "${PN}-console" |
25 | 24 | ||
26 | inherit setuptools3 | 25 | inherit python_setuptools_build_meta |
27 | 26 | ||
28 | do_install:prepend() { | 27 | do_install:prepend() { |
29 | sed -i -e 's:${RECIPE_SYSROOT}::g' ${S}/setools/policyrep.c | 28 | sed -i -e 's:${RECIPE_SYSROOT}::g' ${S}/setools/policyrep.c |
30 | } | 29 | } |
31 | 30 | ||
32 | do_install:append() { | 31 | do_install:append() { |
33 | # Need PyQt5 support, disable gui tools | 32 | # Need PyQt6 support, disable gui tools |
34 | rm -f ${D}${bindir}/apol | 33 | rm -f ${D}${bindir}/apol |
35 | rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setoolsgui | 34 | rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setoolsgui |
36 | rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setools/__pycache__ | 35 | rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setools/__pycache__ |