Summary: | sys-process/audit-3.1.1[python_targets_python3_12]: missing dev-python/setuptools dependency : "ModuleNotFoundError: No module named 'distutils'" leading build failure later in the build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Will Lepofsky <wilscarlet> |
Component: | Current packages | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | parona, robbat2, wilscarlet |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
Build log - 3.1.3 |
Description
Will Lepofsky
2024-06-07 12:53:50 UTC
Created attachment 895306 [details]
Build log
Created attachment 895307 [details]
Build log - 3.1.3
So another distutils dropped from python3.12 bug, this time it failed silently leading to the rpath error from libtool. To get around this before an ebuild fix install dev-python/setuptools with python3.12 target enabled. checking for python3... /var/tmp/portage/sys-process/audit-3.1.1/temp/python3.12/bin/python3 Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'distutils' Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'distutils' Distutils requirement removed in >4.0. https://github.com/linux-audit/audit-userspace/commit/0c4d12762569df0991ce8ea17ec52ff35f3be463 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5139c6dacff4d358f9313de8a43d9fe8fc027bb8 commit 5139c6dacff4d358f9313de8a43d9fe8fc027bb8 Author: Kenton Groombridge <concord@gentoo.org> AuthorDate: 2024-06-07 13:21:02 +0000 Commit: Kenton Groombridge <concord@gentoo.org> CommitDate: 2024-06-07 13:27:03 +0000 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> 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(-) Thank you for the quick response and fix. |