From a49dfb90fc03ea62e4027b6e7e9d5d93b148cbaa Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 24 Dec 2019 22:21:12 +0100 Subject: [PATCH] dev-python/python-sipsimple: fix build with LibreSSL 2.7 --- .../0001-Fix-build-with-LibreSSL-2.7.patch | 26 +++++++++++++++++++ .../python-sipsimple-3.4.2-r1.exheres-0 | 1 + 2 files changed, 27 insertions(+) create mode 100644 packages/dev-python/python-sipsimple/files/0001-Fix-build-with-LibreSSL-2.7.patch diff --git a/packages/dev-python/python-sipsimple/files/0001-Fix-build-with-LibreSSL-2.7.patch b/packages/dev-python/python-sipsimple/files/0001-Fix-build-with-LibreSSL-2.7.patch new file mode 100644 index 0000000..8f26714 --- /dev/null +++ b/packages/dev-python/python-sipsimple/files/0001-Fix-build-with-LibreSSL-2.7.patch @@ -0,0 +1,26 @@ +From 8e0874b1be515abc8845e3ad41c4332f992e5687 Mon Sep 17 00:00:00 2001 +From: Julian Ospald +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 + +-#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 + diff --git a/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 b/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 index 43f15c8..6d1b3ee 100644 --- a/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 +++ b/packages/dev-python/python-sipsimple/python-sipsimple-3.4.2-r1.exheres-0 @@ -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() {