hon2.7.so.1; =C2=A0if
> test libpython2.7.so !=3D libpython27.so.1; then =C2=A0(cd /usr/ports=
/lang/python27/work/stage/usr/local/lib; ln -sf
> libpython2.7.so.1 libpython2.7.so) =C2=A0fi =C2=A0fi; =C2=A0else true=
; =C2=A0fi
> warning: openssl 0x00000000 is too old for _hashlib
> ```
> root@gw:/usr/ports/lang/python27 # /usr/local/bin/openssl version
> OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
> root@gw:/usr/ports/lang/python27 # ls -al =C2=A0/usr/local/bin/openssl=
> -rwxr-xr-x =C2=A01 root wheel 828656 May 14 11:22 /usr/local/bin/opens=
sl
> root@gw:/usr/ports/lang/python27 # ls -al /usr/bin/openssl
> -r-xr-xr-x =C2=A01 root wheel 970624 Nov 25 14:13 /usr/bin/openssl
> root@gw: /usr/ports/lang/python27=C2=A0 # /usr/bin/openssl version
> OpenSSL 3.0.12 24 Oct 2023 (Library: OpenSSL 3.0.12 24 Oct 2023)
>
> I have DEFAULT_VERSIONS+=3Dssl=3Dopenssl
Please try following patch.
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index 8aeab6d28008..245835f5be22 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -120,7 +120,8 @@ post-patch:
=C2=A0# openssl/opensslv.h so setup.py just detects the string as 00000000<=
br>
=C2=A0# However care should be taken for the OSVERSION. If OpenSSL 3.0.9
=C2=A0# lands later the OSVERSION string should be fixed accordingly
-.if ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} >=3D 1400092 &&=
amp; (${SSL_DEFAULT} =3D=3D base || ${SSL_DEFAULT:Mopenssl3*} )
+.if ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} >=3D 1400092 &&=
amp; (${SSL_DEFAULT} =3D=3D base || \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0${SSL_DEFAULT} =3D=3D openssl || ${SSL_DEFAULT:=
Mopenssl3*} )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 @${REINPLACE_CMD} -e 's|00907000|00000000|&=
#39; \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ${WRKSRC}/setup.py<=
br>
=C2=A0.endif
Regards.
---
Yasuhiro Kimura