From 85eee2d7f85421fd9156fb988ac865679e4e7851 Mon Sep 17 00:00:00 2001 From: Yorkie Liu Date: Thu, 21 Nov 2019 18:16:22 +0800 Subject: [PATCH] python3: fix build when Blake2 not enabled in OpenSSL Refs: - https://github.com/python/cpython/commit/7c20888e71304ecbf4bd3d595f364b7c691d30a0 - https://bugs.python.org/issue38684 Signed-off-by: Yorkie Liu --- lang/python/python3/patches/002-fix-blake2-detection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python/python3/patches/002-fix-blake2-detection.patch b/lang/python/python3/patches/002-fix-blake2-detection.patch index 72b6ea219..88916af07 100644 --- a/lang/python/python3/patches/002-fix-blake2-detection.patch +++ b/lang/python/python3/patches/002-fix-blake2-detection.patch @@ -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