external/python3/python-3.5.4-ssl.patch.1 |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 45aee4858c62fb4c8066bd0bb0aa4f468d110a5e
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Wed Sep 21 16:08:45 2022 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Tue Nov 8 13:23:25 2022 +0100

    python3: find the bundled openssl headers
    
    This failed because it finds /usr/include header first, which doesn't
    contain a findable version number in 3.0.5 so fails with:
    warning: openssl 0x00000000 is too old for _hashlib
    
    Change-Id: Ie7d92f5940c0ea2d9b24aa6ea3051e8454c546f6
    (cherry picked from commit 6afdf2c5a0a742cb405b27eea0e930f9cdc41b27)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142424
    Tested-by: Michael Stahl <michael.st...@allotropia.de>
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/external/python3/python-3.5.4-ssl.patch.1 
b/external/python3/python-3.5.4-ssl.patch.1
index beb6fe38882f..7dfe878ef80d 100644
--- a/external/python3/python-3.5.4-ssl.patch.1
+++ b/external/python3/python-3.5.4-ssl.patch.1
@@ -81,3 +81,14 @@ diff -ru python3.orig/setup.py python3/setup.py
                                        '/usr/contrib/ssl/lib/'
                                       ] )
  
+--- python3/setup.py.orig2     2022-09-21 16:04:12.855249707 +0200
++++ python3/setup.py   2022-09-21 16:04:30.752236913 +0200
+@@ -848,7 +848,7 @@
+ 
+         # look for the openssl version header on the compiler search path.
+         opensslv_h = find_file('openssl/opensslv.h', [],
+-                inc_dirs + search_for_ssl_incs_in)
++                search_for_ssl_incs_in + inc_dirs)
+         if opensslv_h:
+             name = os.path.join(opensslv_h[0], 'openssl/opensslv.h')
+             if host_platform == 'darwin' and is_macosx_sdk_path(name):

Reply via email to