sys-process/audit: add missing BDEPEND for setuptools

With python3.12, distutils isn't included with the interpreter but is
instead bundled in setuptools. Add a conditional dependency for it when
python3.12 is enabled.

Closes: https://bugs.gentoo.org/933726
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
Kenton Groombridge
2024-06-07 09:21:02 -04:00
parent ae35a9efaa
commit 5139c6dacf
2 changed files with 14 additions and 2 deletions

View File

@@ -34,7 +34,13 @@ DEPEND="
>=sys-kernel/linux-headers-2.6.34
test? ( dev-libs/check )
"
BDEPEND="python? ( dev-lang/swig )"
BDEPEND="python? (
dev-lang/swig
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
' python3_12)
)
"
CONFIG_CHECK="~AUDIT"

View File

@@ -34,7 +34,13 @@ DEPEND="
>=sys-kernel/linux-headers-2.6.34
test? ( dev-libs/check )
"
BDEPEND="python? ( dev-lang/swig )"
BDEPEND="python? (
dev-lang/swig
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
' python3_12)
)
"
CONFIG_CHECK="~AUDIT"