<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cdd9223e7bf1c7a40ea286a3ba8d96562b69a4f4">https://github.com/macports/macports-ports/commit/cdd9223e7bf1c7a40ea286a3ba8d96562b69a4f4</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new cdd9223e7bf python27: fix hashlib build with openssl 3
</span>cdd9223e7bf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cdd9223e7bf1c7a40ea286a3ba8d96562b69a4f4
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Nov 8 09:11:25 2021 +1100
<span style='display:block; white-space:pre;color:#404040;'> python27: fix hashlib build with openssl 3
</span>---
lang/python27/Portfile | 3 ++-
lang/python27/files/openssl_ver.patch | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python27/Portfile b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 60f361e0e1f..57d4470c4c6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,7 +43,8 @@ patchfiles patch-Makefile.pre.in.diff \
</span> patch-_osx_support.py.diff \
darwin20.diff \
arm.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- implicit.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ implicit.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openssl_ver.patch
</span>
depends_build port:pkgconfig
depends_lib port:bzip2 \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python27/files/openssl_ver.patch b/lang/python27/files/openssl_ver.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d1031a331ce
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python27/files/openssl_ver.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+The detection of OPENSSL_VERSION_NUMBER is fragile and stopped working.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+We know we have at least openssl 3.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py.orig 2021-11-08 08:54:46.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py 2021-11-08 09:04:30.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -874,7 +874,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ missing.append('_ssl')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # find out which version of OpenSSL we have
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- openssl_ver = 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ openssl_ver = 0x30000000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openssl_ver_re = re.compile(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ '^\s*#\s*define\s+OPENSSL_VERSION_NUMBER\s+(0x[0-9a-fA-F]+)' )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>