forked from hasufell/hasufell-repository
dev-python/python-sipsimple: fix build with LibreSSL 2.7
This commit is contained in:
parent
6ab7c13396
commit
a49dfb90fc
@ -0,0 +1,26 @@
|
||||
From 8e0874b1be515abc8845e3ad41c4332f992e5687 Mon Sep 17 00:00:00 2001
|
||||
From: Julian Ospald <hasufell@posteo.de>
|
||||
Date: Tue, 24 Dec 2019 22:17:28 +0100
|
||||
Subject: [PATCH] Fix build with LibreSSL 2.7
|
||||
Upstream: submitted, https://github.com/AGProjects/python-sipsimple/pull/8
|
||||
|
||||
---
|
||||
deps/pjsip/third_party/zsrtp/include/openssl_compat.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/deps/pjsip/third_party/zsrtp/include/openssl_compat.h b/deps/pjsip/third_party/zsrtp/include/openssl_compat.h
|
||||
index 5b6e183e..aebbf996 100644
|
||||
--- a/deps/pjsip/third_party/zsrtp/include/openssl_compat.h
|
||||
+++ b/deps/pjsip/third_party/zsrtp/include/openssl_compat.h
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <openssl/hmac.h>
|
||||
|
||||
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER)
|
||||
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
|
||||
static HMAC_CTX *HMAC_CTX_new(void)
|
||||
{
|
||||
HMAC_CTX *ctx = (HMAC_CTX*)OPENSSL_malloc(sizeof(HMAC_CTX));
|
||||
--
|
||||
2.24.1
|
||||
|
@ -49,6 +49,7 @@ DEPENDENCIES="
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/${PNV}-fix-build.patch
|
||||
"${FILES}"/0001-Fix-build-with-LibreSSL-2.7.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
|
Loading…
Reference in New Issue
Block a user