Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929638 - media-libs/lensfun: needs upgrade to Python 3.12 (PythonCompatUpdate)
Summary: media-libs/lensfun: needs upgrade to Python 3.12 (PythonCompatUpdate)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 921826
  Show dependency tree
 
Reported: 2024-04-13 08:46 UTC by Michał Górny
Modified: 2024-06-10 23:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-13 08:46:31 UTC
This package does not support Python 3.12.  Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html.  Please check the information provided in the tracker.  Ask in #gentoo-python on IRC if need any help.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-10 23:43:39 UTC
A user reports:
```
[31mFAILED: [0mapps/build/timestamp /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/build/timestamp 
cd /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps && /usr/bin/python3.12 /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/setup.py build && /usr/bin/cmake -E touch /var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/build/timestamp
Traceback (most recent call last):
  File "/var/tmp/portage/media-libs/lensfun-0.3.4-r1/work/lensfun-0.3.4_build/apps/setup.py", line 6, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
```

Given I've dealt with the Python handing in lensfun before, I suggest we just depend on setuptools (for py3.12 but I've just been doing it unconditionally).
Comment 3 Larry the Git Cow gentoo-dev 2024-06-10 23:46:36 UTC
The bug has been closed via the following commit(s):

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

commit aceec3688def2d285075857c66f0765fa06f33e0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-10 23:45:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-10 23:46:10 +0000

    media-libs/lensfun: bdepend on setuptools for distutils
    
    The Python handling here is a mess and the state of master is quite
    different, so just depend on setuptools for distutils here (not going
    to bother conditionalising it to py3.12, I don't see much point).
    
    Closes: https://bugs.gentoo.org/929638
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/lensfun/lensfun-0.3.4-r1.ebuild | 3 +++
 1 file changed, 3 insertions(+)