commit:     e95da4d04a00591133eefbf8df6dd6121b4ea472
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  2 14:49:46 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  2 14:50:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e95da4d0

sec-policy/selinux-base: use python-any-r1 (needs Python to generate XML)

Noticed after checking downstream for any changes we should pick up:
https://github.com/flatcar-linux/coreos-overlay/commit/3086ea99010fc51cced60a7badc572feaaf551f6.

Closes: https://bugs.gentoo.org/770901
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sec-policy/selinux-base/selinux-base-2.20210203-r1.ebuild | 5 +++++
 sec-policy/selinux-base/selinux-base-9999.ebuild          | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/sec-policy/selinux-base/selinux-base-2.20210203-r1.ebuild 
b/sec-policy/selinux-base/selinux-base-2.20210203-r1.ebuild
index 7597060e52e..30334fc4b6f 100644
--- a/sec-policy/selinux-base/selinux-base-2.20210203-r1.ebuild
+++ b/sec-policy/selinux-base/selinux-base-2.20210203-r1.ebuild
@@ -3,6 +3,10 @@
 
 EAPI="7"
 
+PYTHON_COMPAT=( python3_{8,9,10} )
+PYTHON_REQ_USE="xml"
+inherit python-any-r1
+
 if [[ ${PV} == 9999* ]]; then
        
EGIT_REPO_URI="${SELINUX_GIT_REPO:-https://anongit.gentoo.org/git/proj/hardened-refpolicy.git}";
        EGIT_BRANCH="${SELINUX_GIT_BRANCH:-master}"
@@ -26,6 +30,7 @@ SLOT="0"
 RDEPEND=">=sys-apps/policycoreutils-2.8"
 DEPEND="${RDEPEND}"
 BDEPEND="
+       ${PYTHON_DEPS}
        >=sys-apps/checkpolicy-2.8
        sys-devel/m4"
 

diff --git a/sec-policy/selinux-base/selinux-base-9999.ebuild 
b/sec-policy/selinux-base/selinux-base-9999.ebuild
index 72948d1e2c9..f9dcacae70f 100644
--- a/sec-policy/selinux-base/selinux-base-9999.ebuild
+++ b/sec-policy/selinux-base/selinux-base-9999.ebuild
@@ -3,6 +3,10 @@
 
 EAPI="7"
 
+PYTHON_COMPAT=( python3_{8,9,10} )
+PYTHON_REQ_USE="xml"
+inherit python-any-r1
+
 if [[ ${PV} == 9999* ]]; then
        
EGIT_REPO_URI="${SELINUX_GIT_REPO:-https://anongit.gentoo.org/git/proj/hardened-refpolicy.git}";
        EGIT_BRANCH="${SELINUX_GIT_BRANCH:-master}"
@@ -26,6 +30,7 @@ SLOT="0"
 RDEPEND=">=sys-apps/policycoreutils-2.8"
 DEPEND="${RDEPEND}"
 BDEPEND="
+       ${PYTHON_DEPS}
        >=sys-apps/checkpolicy-2.8
        sys-devel/m4"
 

Reply via email to