Opened 13 months ago
Closed 13 months ago
#68554 closed enhancement (fixed)
ntpsec: Add python312 variant
Reported by: | fhgwright (Fred Wright) | Owned by: | fhgwright (Fred Wright) |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | ntpsec |
Description
Creating this ticket mostly for informational purposes.
Adding the python312
variant to ntpsec
appears to work fine, except that it fails configure
in trace mode. This is due to the unavailability of distutils
in Python 3.12, though for some reason it's available when not in trace mode, even though it's officially gone in 3.12. Complicating this further is that the use of distutils
is actually in waf
, rather than in ntpsec
itself.
It seems safest not to add the python312
variant until this is better understood.
Change History (5)
comment:1 Changed 13 months ago by fhgwright (Fred Wright)
comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Add python312 variant to ntpsec → ntpsec: Add python312 variant |
---|
comment:3 Changed 13 months ago by jmroot (Joshua Root)
There is no distutils module in the python stdlib as of 3.12. Setuptools does provide distutils still, so anything that uses it needs to depend on the appropriate py*-setuptools port.
comment:4 Changed 13 months ago by fhgwright (Fred Wright)
Ah, that explains the trace-mode failure, and I was able to reproduce it without trace mode by deactivating py312-setuptools
. It doesn't explain why the trace mode reports showed no indication of either setuptools
or distutils
, which is probably yet another trace-mode bug.
Retesting with the added dependency now.
The unreleased upstream code seems to have fixed the problem, so the dependency can go away on the next version update.
comment:5 Changed 13 months ago by fhgwright (Fred Wright)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Upon further investigation, it appears that
distutils.sysconfig
is working as expected inpython312
, in spite of the fact that it had been MIA in the-devel
version ofpython312
a while back. So the only mystery is what trace mode is doing to break it.Since the issue appears to be confined to trace mode, adding the variant seems reasonable.