python3: fix build when Blake2 not enabled in OpenSSL 10604/head
authorYorkie Liu <yorkiefixer@gmail.com>
Thu, 21 Nov 2019 10:16:22 +0000 (18:16 +0800)
committeryorkie <yorkiefixer@gmail.com>
Thu, 21 Nov 2019 10:18:14 +0000 (18:18 +0800)
Refs:

- https://github.com/python/cpython/commit/7c20888e71304ecbf4bd3d595f364b7c691d30a0
- https://bugs.python.org/issue38684

Signed-off-by: Yorkie Liu <yorkiefixer@gmail.com>
lang/python/python3/patches/002-fix-blake2-detection.patch

index 72b6ea219fe4d2fa7c3150ca22c2e48fc0f3fb8c..88916af07d12d03a101d85d71f671ead29405e25 100644 (file)
@@ -5,7 +5,7 @@
  #endif
  
 -#ifdef NID_blake2b512
-+#ifndef OPENSSL_NO_BLAKE2
++#if defined(NID_blake2b512) && !defined(OPENSSL_NO_BLAKE2)
  #define PY_OPENSSL_HAS_BLAKE2 1
  #endif