From 4e38d17efa609decfb818bc595c55b5091b3678d Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 7 Apr 2022 19:15:10 +0200 Subject: [PATCH] sec-policy/selinux-base: Depend on python properly Otherwise it was trying to pull in the latest stable python version, which currently is 3.10, while we still are using 3.9. --- .../selinux-base/selinux-base-2.20200818-r2.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild b/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild index 50935ad704..f17de9ee5b 100644 --- a/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sec-policy/selinux-base/selinux-base-2.20200818-r2.ebuild @@ -4,8 +4,10 @@ EAPI="7" # flatcar changes +PYTHON_COMPAT=( python3_{8,9,10} ) +PYTHON_REQ_USE="xml" TMPFILES_OPTIONAL=1 -inherit systemd tmpfiles +inherit systemd tmpfiles python-any-r1 if [[ ${PV} == 9999* ]]; then EGIT_REPO_URI="${SELINUX_GIT_REPO:-https://anongit.gentoo.org/git/proj/hardened-refpolicy.git}" @@ -32,10 +34,10 @@ RDEPEND=">=sys-apps/policycoreutils-2.8 >=sys-apps/checkpolicy-2.8 " DEPEND="${RDEPEND}" -# flatcar: BDEPEND on python3[xml] - normally pulled in through policycoreutils +# flatcar: BDEPEND on python - normally pulled in through policycoreutils # but we made that dep conditional on USE=python BDEPEND="sys-devel/m4 - >=dev-lang/python-3[xml] + ${PYTHON_DEPS} "