Skip to contentSkip to conversation

setools: inherit cython class

PATCH New Yi Zhao 1 participant 1 message Jan 3, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 setools: inherit cython class

Use the new cython class to avoid duplicated fixup code to remove build paths.

---
 recipes-security/setools/setools_4.5.1.bb | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
recipes-security/setools/setools_4.5.1.bb +2 -6
index 9b6745e..723eeb0 100644
@@ -16,17 +16,13 @@ LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=69a7b68f0a4a570d7c0c43465333ecbc \
 
 S = "${WORKDIR}/git"
 
-DEPENDS = "python3-cython-native libsepol libselinux"
+DEPENDS = "libsepol libselinux"
 
 RDEPENDS:${PN} = "python3-networkx python3-logging libselinux-python"
 
 RPROVIDES:${PN} = "${PN}-console"
 
-inherit python_setuptools_build_meta
-
-do_install:prepend() {
-    sed -i -e 's:${RECIPE_SYSROOT}::g' ${S}/setools/policyrep.c
-}
+inherit python_setuptools_build_meta cython
 
 do_install:append() {
     # Need PyQt6 support, disable gui tools
Signature · 1 line
2.25.1