summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2019-01-14 21:17:22 +0200
committerAlon Bar-Lev <alonbl@gentoo.org>2019-01-14 21:17:38 +0200
commit9a28e54de3798ec4ce92508cc2c4c67b985f817f (patch)
tree018486f55468a038821c75829863768bfcc76a93 /net-libs/gnutls
parentsys-kernel/vanilla-sources: Version bump to 4.4.170 (diff)
downloadgentoo-9a28e54de3798ec4ce92508cc2c4c67b985f817f.tar.gz
gentoo-9a28e54de3798ec4ce92508cc2c4c67b985f817f.tar.bz2
gentoo-9a28e54de3798ec4ce92508cc2c4c67b985f817f.zip
net-libs/gnutls: fix build failure
Closes: https://bugs.gentoo.org/show_bug.cgi?id=675424 Thanks: Toralf Förster Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'net-libs/gnutls')
-rw-r--r--net-libs/gnutls/files/gnutls-3.6.5-build.patch31
-rw-r--r--net-libs/gnutls/gnutls-3.6.5.ebuild4
2 files changed, 35 insertions, 0 deletions
diff --git a/net-libs/gnutls/files/gnutls-3.6.5-build.patch b/net-libs/gnutls/files/gnutls-3.6.5-build.patch
new file mode 100644
index 000000000000..00c11da4ae7c
--- /dev/null
+++ b/net-libs/gnutls/files/gnutls-3.6.5-build.patch
@@ -0,0 +1,31 @@
+From b7fdb4125e4eebc5af2155b6d36cf17339a3abf5 Mon Sep 17 00:00:00 2001
+From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
+Date: Tue, 25 Dec 2018 14:44:11 +0300
+Subject: [PATCH] tests: cipher-openssl-compat: don't call
+ EVP_CIPHER_CTX_init()
+
+There is no need to call EVP_CIPHER_CTX_init() after
+EVP_CIPHER_CTX_new().
+
+Fixes #658
+
+Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
+---
+ tests/slow/cipher-openssl-compat.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/tests/slow/cipher-openssl-compat.c b/tests/slow/cipher-openssl-compat.c
+index a4cb3522d..64adf25a4 100644
+--- a/tests/slow/cipher-openssl-compat.c
++++ b/tests/slow/cipher-openssl-compat.c
+@@ -106,7 +106,6 @@ static int cipher_test(const char *ocipher, gnutls_cipher_algorithm_t gcipher,
+ #if OPENSSL_VERSION_NUMBER >= 0x10100000L
+ if (gcipher == GNUTLS_CIPHER_AES_128_CCM
+ || gcipher == GNUTLS_CIPHER_AES_256_CCM) {
+- assert(EVP_CIPHER_CTX_init(ctx)==1);
+ assert(EVP_CipherInit_ex(ctx, evp_cipher, 0, 0, 0, 0) >
+ 0);
+
+--
+2.19.2
+
diff --git a/net-libs/gnutls/gnutls-3.6.5.ebuild b/net-libs/gnutls/gnutls-3.6.5.ebuild
index 0e4f46b96b24..883584c16a7d 100644
--- a/net-libs/gnutls/gnutls-3.6.5.ebuild
+++ b/net-libs/gnutls/gnutls-3.6.5.ebuild
@@ -53,6 +53,10 @@ DOCS=(
HTML_DOCS=()
+PATCHES=(
+ "${FILESDIR}/${P}-build.patch"
+)
+
pkg_setup() {
# bug#520818
export TZ=UTC