Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/liboauth/files/, net-libs/liboauth/
Date: Sat, 26 Jan 2019 16:02:08
Message-Id: 1548518512.8e4607e47bdd7d76671a3119a8ae0bcff598023b.pacho@gentoo
1 commit: 8e4607e47bdd7d76671a3119a8ae0bcff598023b
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 26 16:01:35 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 26 16:01:52 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e4607e4
7
8 net-libs/liboauth: Fix openssl-1.1 building
9
10 Thanks-to: Wataru Sakurai
11 Thanks-to: Albert W. Hopkins
12 Closes: https://bugs.gentoo.org/676080
13 Package-Manager: Portage-2.3.58, Repoman-2.3.12
14 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
15
16 .../files/liboauth-1.0.3-openssl-1.1_2.patch | 22 ++++++++++++++++++++++
17 net-libs/liboauth/liboauth-1.0.3-r1.ebuild | 3 ++-
18 2 files changed, 24 insertions(+), 1 deletion(-)
19
20 diff --git a/net-libs/liboauth/files/liboauth-1.0.3-openssl-1.1_2.patch b/net-libs/liboauth/files/liboauth-1.0.3-openssl-1.1_2.patch
21 new file mode 100644
22 index 00000000000..c22a7753cce
23 --- /dev/null
24 +++ b/net-libs/liboauth/files/liboauth-1.0.3-openssl-1.1_2.patch
25 @@ -0,0 +1,22 @@
26 +diff --git a/src/hash.c b/src/hash.c
27 +index 551991f..a0bc8b6 100644
28 +--- a/src/hash.c
29 ++++ b/src/hash.c
30 +@@ -455,7 +455,7 @@ int oauth_verify_rsa_sha1 (const char *m, const char *c, const char *s) {
31 + EVP_VerifyInit(md_ctx, EVP_sha1());
32 + EVP_VerifyUpdate(md_ctx, m, strlen(m));
33 + err = EVP_VerifyFinal(md_ctx, b64d, slen, pkey);
34 +- EVP_MD_CTX_cleanup(md_ctx);
35 ++ EVP_MD_CTX_free(md_ctx);
36 + EVP_PKEY_free(pkey);
37 + xfree(b64d);
38 + return (err);
39 +@@ -485,7 +485,7 @@ char *oauth_body_hash_file(char *filename) {
40 + len=0;
41 + md=(unsigned char*) xcalloc(EVP_MD_size(EVP_sha1()),sizeof(unsigned char));
42 + EVP_DigestFinal(ctx, md,(unsigned int*) &len);
43 +- EVP_MD_CTX_cleanup(ctx);
44 ++ EVP_MD_CTX_free(ctx);
45 + return oauth_body_hash_encode(len, md);
46 + }
47 +
48
49 diff --git a/net-libs/liboauth/liboauth-1.0.3-r1.ebuild b/net-libs/liboauth/liboauth-1.0.3-r1.ebuild
50 index 96cf577256e..90acfdbc1fc 100644
51 --- a/net-libs/liboauth/liboauth-1.0.3-r1.ebuild
52 +++ b/net-libs/liboauth/liboauth-1.0.3-r1.ebuild
53 @@ -1,4 +1,4 @@
54 -# Copyright 1999-2018 Gentoo Authors
55 +# Copyright 1999-2019 Gentoo Authors
56 # Distributed under the terms of the GNU General Public License v2
57
58 EAPI=7
59 @@ -17,6 +17,7 @@ REQUIRED_USE="bindist? ( nss )"
60 PATCHES=(
61 "${FILESDIR}"/${PN}-1.0.1-doxygen-out-of-tree.patch
62 "${FILESDIR}"/${PN}-1.0.3-openssl-1.1.patch
63 + "${FILESDIR}"/${PN}-1.0.3-openssl-1.1_2.patch
64 )
65
66 CDEPEND="