From 5139c6dacff4d358f9313de8a43d9fe8fc027bb8 Mon Sep 17 00:00:00 2001 From: Kenton Groombridge Date: Fri, 7 Jun 2024 09:21:02 -0400 Subject: [PATCH] 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 --- sys-process/audit/audit-3.1.1.ebuild | 8 +++++++- sys-process/audit/audit-3.1.2.ebuild | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sys-process/audit/audit-3.1.1.ebuild b/sys-process/audit/audit-3.1.1.ebuild index 347a7e71e8621..97910e182b7ea 100644 --- a/sys-process/audit/audit-3.1.1.ebuild +++ b/sys-process/audit/audit-3.1.1.ebuild @@ -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" diff --git a/sys-process/audit/audit-3.1.2.ebuild b/sys-process/audit/audit-3.1.2.ebuild index b4be6f0deebc4..a01ceddb51ff2 100644 --- a/sys-process/audit/audit-3.1.2.ebuild +++ b/sys-process/audit/audit-3.1.2.ebuild @@ -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"