Opened 7 weeks ago

Last modified 7 weeks ago

#70998 new defect

libpsl: Use python312

Reported by: Behinder (behinder) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libpsl

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I checked the code in Portfile, it is stated there that if python version is set then variant is created for that version. In my case it is 3.12.

port select --list python
Available versions for python:
	none
	python312 (active)

and cmake still want to use 3.10 which is wrong. It is even more wrong that C build system uses Python as dependency.

Change History (3)

comment:1 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: libpsl added; cmake removed
Summary: cmake still wants to install python310 even when 312 is setlibpsl: Use python312

What you have selected using port select is for your convenience on the command line only. Ports will not use it; that would not be reproducible.

The cmake port does not depend on any python.

cmake depends on curl which depends on libpsl which depends on python310.

libpsl could potentially be changed to use python312 instead of python310 but its Portfile contains these cautionary comments:

# Please note this port is (indirectly, via cmake) a dependency of the
# various clang-X ports. When updating the port versions (e.g. python)
# used here make sure to ensure that the new port being used uses the
# clang_dependency PortGroup to avoid circular dependencies whilst building.
# See e.g. https://trac.macports.org/ticket/60419

# DO NOT change this unless you have understood and acted on the above comment!
set py_ver          3.10

comment:2 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Note that switching libpsl to python312 was already attempted once without regard for the above comments and it had to be reverted because that broke things.

comment:3 Changed 7 weeks ago by jmroot (Joshua Root)

The other half of the problem is that Python as of 3.11 now requires a C11 compiler, meaning it has to be built with a macports-clang on some systems.

Note: See TracTickets for help on using tickets.