Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 933392

Summary: media-gfx/fontforge-20230101 breaks with: ModuleNotFoundError: No module named 'distutils'
Product: Gentoo Linux Reporter: Georgi <jorodrbr>
Component: Current packagesAssignee: Gentoo Fonts Team <fonts>
Status: RESOLVED FIXED    
Severity: normal CC: jorodrbr
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/fontforge/fontforge/pull/5423
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 934050    
Bug Blocks:    
Attachments: build.log

Description Georgi 2024-06-02 07:06:09 UTC
During update

[ebuild   R    ] media-gfx/fontforge-20230101::gentoo  USE="X gif gtk jpeg png python readline svg tiff -doc -test -truetype-debugger -woff2" PYTHON_SINGLE_TARGET="python3_12%* -python3_10 -python3_11*" 0 KiB

breaks with Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
CMake Error at pyhook/CMakeLists.txt:29 (message):
  Could not determine the path to install pyhook binaries to, got '' with
  return value 1

Logs attached.

Reproducible: Always




Happened during updates related to python 3.12 although it seems not to be related.
Comment 1 Georgi 2024-06-02 07:08:25 UTC
Created attachment 894899 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2024-06-02 07:29:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53ea57e0919caa29b24429a51254fcabdeda5222

commit 53ea57e0919caa29b24429a51254fcabdeda5222
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-02 07:27:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-02 07:29:09 +0000

    media-gfx/fontforge: fix py3.12 compat
    
    This is, of course, masked by setuptools being installed for 3.12 for most people
    which is how we didn't notice...
    
    Closes: https://bugs.gentoo.org/933392
    Signed-off-by: Sam James <sam@gentoo.org>

 ...forge-20230101-python3.12-distutils-no-more.patch | 20 ++++++++++++++++++++
 ...230101-r1.ebuild => fontforge-20230101-r2.ebuild} |  1 +
 2 files changed, 21 insertions(+)