python312 and openssl

Kastus Shchuka macports at tprfct.net
Sun Oct 20 21:07:31 UTC 2024



> On Oct 20, 2024, at 1:57 PM, Clemens Lang <cal at macports.org> wrote:
> 
> On Sun, Oct 20, 2024 at 12:07:21PM -0700, Kastus Shchuka wrote:
>> I cannot upgrade python312 port since it was bumped up to 3.12.7_0.
>> 
>> I am using libressl, and obviously I cannot install openssl port at the same time as libressl.
>> 
>> python312 port declares library dependency on openssl:
>> 
>> Library Dependencies: bzip2, expat, gettext-runtime, libedit, libffi, ncurses,
>>                      openssl, sqlite3, xz, zlib
>> 
>> Are there any reasons for that? Can python312 port use openssl3? Can it use libressl? 
> 
> Python 3.12 can currently not use libressl, the possibility to build it
> against libressl was removed on purpose because it would fail:
> 
>  https://github.com/macports/macports-ports/commit/a7e01ca3ad01cdef1fcd595ec257e0525dac8396
>  https://trac.macports.org/ticket/70767
> 
> Somebody needs to contribute code to Python upstream to make it work
> with libressl, or somebody needs to contribute code to libressl to
> provide the API Python expects.
> 
> -- 
> Clemens
> 

If this is the case with libressl, and openssl is just a shim on openssl3, can the dependency in python312 port be changed to openssl3 explicitly? I do have both libressl and openssl3 installed and active.


-Kastus



More information about the macports-users mailing list