Summary: | dev-libs/weston-12.0.2 fails to compile with dev-lang/python-exec[-native-symlinks] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | James Le Cuirot <chewi> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 762406 | ||
Attachments: |
build.log
1-meson-log.txt |
Description
Agostino Sarubbo
![]() Created attachment 867075 [details]
build.log
build log and emerge --info
Created attachment 867076 [details]
1-meson-log.txt
1-meson-log.txt
Error(s) that match a know pattern: meson.build:152:31: ERROR: <PythonExternalProgram 'python3' -> ['/var/tmp/portage/dev-libs/weston-12.0.2/temp/python3.12/bin/python3']> is not a valid python or it is missing distutils Run-time dependency lcms2 found: NO (tried pkgconfig and cmake) *** This bug has been marked as a duplicate of bug 911748 *** not a duplicate. I can reproduce at: https://github.com/gentoo/gentoo/commit/286a7c3cf202ae0f130d0996a84ee224f1c3dfc3 Hmm that's odd. Presumably /var/tmp/portage/dev-libs/weston-12.0.2/temp/python3.12/bin/python3 actually exists because it is created unconditionally by python-utils-r1.eclass and I don't think Meson would mention it otherwise. What does it contain? It's supposed to look like: #!/bin/sh exec "/usr/bin/python3.12" "${@}" (In reply to James Le Cuirot from comment #6) > Hmm that's odd. Presumably > /var/tmp/portage/dev-libs/weston-12.0.2/temp/python3.12/bin/python3 actually > exists because it is created unconditionally by python-utils-r1.eclass and I > don't think Meson would mention it otherwise. What does it contain? It's > supposed to look like: > > #!/bin/sh > exec "/usr/bin/python3.12" "${@}" The content of the file is the same, however, after the build fails I can reproduce the issue outside portage with: ~ $ /var/tmp/portage/dev-libs/weston-12.0.2/temp/python3.12/bin/python3 -c "import distutils" Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'distutils' After digging into it a bit deply I discovered that: ~ $ qlist -e python:3.11 | grep distutils | wc -l 373 ~ $ qlist -e python:3.12 | grep distutils | wc -l 0 So the python3.12 installation is somehow broken? It does not contain anything related to distutils. (In reply to Agostino Sarubbo from comment #5) > not a duplicate. > > I can reproduce at: > https://github.com/gentoo/gentoo/commit/286a7c3cf202ae0f130d0996a84ee224f1c3dfc3 Seems to be missing python_check_deps() The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2447080d4df25f2c4428ca22b87d38bea2f5765e commit 2447080d4df25f2c4428ca22b87d38bea2f5765e Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2023-08-07 13:43:34 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2023-08-07 13:44:59 +0000 dev-libs/weston: Add mising python_check_deps function Closes: https://bugs.gentoo.org/911732 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-libs/weston/weston-12.0.2.ebuild | 4 ++++ dev-libs/weston/weston-9999.ebuild | 4 ++++ 2 files changed, 8 insertions(+) Thanks. I forget that python_check_deps is still needed even in simple cases. ago, distutils was dropped from Python 3.12 so what you saw is expected. Meson needs to address this so that setuptools is no longer needed as a workaround. |