devel/python27 is marked as BROKEN with openssl-devel, but it is not. Python 2.7.14 at least (possibly earlier versions) have added support for OpenSSL 1.1, which is what openssl-devel provides. This port should not be marked as broken.
Looks like this was fixed in 2.7.14. From the changelog
- Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.
Doesn't build with the current openssl-devel port.
This is due to errors in Python's tests for NPN (deprecated).
Creating a patch, will report back here,
Thanks, for reply.
Created attachment 190080 [details]
svn diff for lang/python27
Created an upstream Pull-Request. Backporting from 2.7 wasn't complete.
We can easily add this to the port, see patch.
From make test:
> 0:09:54 load avg: 0.64 [397/403/1] test_ssl passed
I've also sent a pull-request for cpython master branch to align detection and use of NPN with detection/use of ALPN.
Currently looking at updating security/openssl to 1.1.0, we need to get this moving.
A commit references this bug:
Date: Thu Feb 15 12:47:59 UTC 2018
New revision: 461915
Fix build with OpenSSL 1.1.0 (security/openssl-devel)
- Remove BROKEN_SSL=openssl-devel
Submitted by: brnrd
ports r462630 (followup to this issue, but not PR: referenced), likely caused a regression (see bug 226135).
I am investigating and will attempt to produce a workaround (for including OPENSSL framework flags), before reverting.