[meta-selinux] setools: Add native support

Submitted by Oleksii Miroshko on July 31, 2020, 2:23 p.m. | Patch ID: 174954

Details

Message ID 20200731142354.1428760-1-Oleksii.Miroshko@bmw.de
State Not Applicable
Headers show

Commit Message

Oleksii Miroshko July 31, 2020, 2:23 p.m.
From: Oleksii Miroshko <miroshko@gmail.com>

Enable using setools for analyzing the built SELinux policy
during the build.

Signed-off-by: Oleksii Miroshko <miroshko@gmail.com>
---
 recipes-devtools/python/python3-decorator_%.bbappend | 2 ++
 recipes-devtools/python/python3-networkx_%.bbappend  | 2 ++
 recipes-security/setools/setools_4.3.0.bb            | 6 ++++++
 3 files changed, 10 insertions(+)
 create mode 100644 recipes-devtools/python/python3-decorator_%.bbappend
 create mode 100644 recipes-devtools/python/python3-networkx_%.bbappend

Patch hide | download patch | download mbox

diff --git a/recipes-devtools/python/python3-decorator_%.bbappend b/recipes-devtools/python/python3-decorator_%.bbappend
new file mode 100644
index 0000000..3bc71e0
--- /dev/null
+++ b/recipes-devtools/python/python3-decorator_%.bbappend
@@ -0,0 +1,2 @@ 
+BBCLASSEXTEND = "native nativesdk"
+
diff --git a/recipes-devtools/python/python3-networkx_%.bbappend b/recipes-devtools/python/python3-networkx_%.bbappend
new file mode 100644
index 0000000..3bc71e0
--- /dev/null
+++ b/recipes-devtools/python/python3-networkx_%.bbappend
@@ -0,0 +1,2 @@ 
+BBCLASSEXTEND = "native nativesdk"
+
diff --git a/recipes-security/setools/setools_4.3.0.bb b/recipes-security/setools/setools_4.3.0.bb
index ec73f7c..8fdeeb0 100644
--- a/recipes-security/setools/setools_4.3.0.bb
+++ b/recipes-security/setools/setools_4.3.0.bb
@@ -8,6 +8,8 @@  SETools."
 SECTION = "base"
 LICENSE = "GPLv2 & LGPLv2.1"
 
+BBCLASSEXTEND = "native nativesdk "
+
 S = "${WORKDIR}/git"
 SRC_URI = "git://github.com/SELinuxProject/${BPN}.git;branch=4.3 \
            file://setools4-fixes-for-cross-compiling.patch \
@@ -21,9 +23,13 @@  LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=83a5eb6974c11f30785e90d0eeccf40c \
 
 DEPENDS += "bison-native flex-native swig-native python3 python3-cython-native libsepol libselinux"
 
+DEPENDS_class-native += "libselinux python3-setuptools python3-cython python3-networkx"
+
 RDEPENDS_${PN} += "python3-networkx python3-decorator python3-setuptools \
                    python3-logging python3-json libselinux-python"
 
+RDEPENDS_${PN}_class-native = ""
+
 RPROVIDES_${PN} += "${PN}-console"
 
 inherit setuptools3

Comments

Khem Raj Aug. 7, 2020, 7:15 a.m.
Please send it to yocto@lists.yoctoproject.org

On Fri, Jul 31, 2020 at 7:24 AM Oleksii Miroshko <miroshko@gmail.com> wrote:
>
> From: Oleksii Miroshko <miroshko@gmail.com>
>
> Enable using setools for analyzing the built SELinux policy
> during the build.
>
> Signed-off-by: Oleksii Miroshko <miroshko@gmail.com>
> ---
>  recipes-devtools/python/python3-decorator_%.bbappend | 2 ++
>  recipes-devtools/python/python3-networkx_%.bbappend  | 2 ++
>  recipes-security/setools/setools_4.3.0.bb            | 6 ++++++
>  3 files changed, 10 insertions(+)
>  create mode 100644 recipes-devtools/python/python3-decorator_%.bbappend
>  create mode 100644 recipes-devtools/python/python3-networkx_%.bbappend
>
> diff --git a/recipes-devtools/python/python3-decorator_%.bbappend b/recipes-devtools/python/python3-decorator_%.bbappend
> new file mode 100644
> index 0000000..3bc71e0
> --- /dev/null
> +++ b/recipes-devtools/python/python3-decorator_%.bbappend
> @@ -0,0 +1,2 @@
> +BBCLASSEXTEND = "native nativesdk"
> +
> diff --git a/recipes-devtools/python/python3-networkx_%.bbappend b/recipes-devtools/python/python3-networkx_%.bbappend
> new file mode 100644
> index 0000000..3bc71e0
> --- /dev/null
> +++ b/recipes-devtools/python/python3-networkx_%.bbappend
> @@ -0,0 +1,2 @@
> +BBCLASSEXTEND = "native nativesdk"
> +
> diff --git a/recipes-security/setools/setools_4.3.0.bb b/recipes-security/setools/setools_4.3.0.bb
> index ec73f7c..8fdeeb0 100644
> --- a/recipes-security/setools/setools_4.3.0.bb
> +++ b/recipes-security/setools/setools_4.3.0.bb
> @@ -8,6 +8,8 @@ SETools."
>  SECTION = "base"
>  LICENSE = "GPLv2 & LGPLv2.1"
>
> +BBCLASSEXTEND = "native nativesdk "
> +
>  S = "${WORKDIR}/git"
>  SRC_URI = "git://github.com/SELinuxProject/${BPN}.git;branch=4.3 \
>             file://setools4-fixes-for-cross-compiling.patch \
> @@ -21,9 +23,13 @@ LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=83a5eb6974c11f30785e90d0eeccf40c \
>
>  DEPENDS += "bison-native flex-native swig-native python3 python3-cython-native libsepol libselinux"
>
> +DEPENDS_class-native += "libselinux python3-setuptools python3-cython python3-networkx"
> +
>  RDEPENDS_${PN} += "python3-networkx python3-decorator python3-setuptools \
>                     python3-logging python3-json libselinux-python"
>
> +RDEPENDS_${PN}_class-native = ""
> +
>  RPROVIDES_${PN} += "${PN}-console"
>
>  inherit setuptools3
> --
> 2.25.4
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#86188): https://lists.openembedded.org/g/openembedded-devel/message/86188
Mute This Topic: https://lists.openembedded.org/mt/75908087/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-