logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

openssl.patch (1251B)


  1. SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: PSF-2.0
  3. openssl is too new for this version of Python. Tell Python build system
  4. we don't have openssl.
  5. --- Python-3.1.5/setup.py 2022-12-19 10:51:49.749157041 +1100
  6. +++ Python-3.1.5/setup.py 2022-12-19 10:52:37.223748681 +1100
  7. @@ -712,7 +712,7 @@
  8. #print('openssl_ver = 0x%08x' % openssl_ver)
  9. - if ssl_incs is not None and ssl_libs is not None:
  10. + if False:
  11. if openssl_ver >= 0x00907000:
  12. # The _hashlib module wraps optimized implementations
  13. # of hash functions from the OpenSSL library.
  14. @@ -727,12 +727,12 @@
  15. else:
  16. missing.append('_hashlib')
  17. - if openssl_ver < 0x00908000:
  18. + if True:
  19. # OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
  20. exts.append( Extension('_sha256', ['sha256module.c']) )
  21. exts.append( Extension('_sha512', ['sha512module.c']) )
  22. - if openssl_ver < 0x00907000:
  23. + if True:
  24. # no openssl at all, use our own md5 and sha1
  25. exts.append( Extension('_md5', ['md5module.c']) )
  26. exts.append( Extension('_sha1', ['sha1module.c']) )