Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/open-isns/files/, sys-block/open-isns/
Date: Tue, 03 Jan 2017 04:13:37
Message-Id: 1483416791.51d7674ef7430f44a11ed4eb5af0d7af10c86169.prometheanfire@gentoo
1 commit: 51d7674ef7430f44a11ed4eb5af0d7af10c86169
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 3 04:13:11 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 3 04:13:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d7674e
7
8 sys-block/open-isns: fixing ossl-1.1 build issue bug 604454
9
10 Package-Manager: portage-2.3.0
11
12 .../open-isns/files/open-isns-0.97-ossl-1.1.patch | 47 ++++++++++++++++++++++
13 sys-block/open-isns/open-isns-0.97.ebuild | 5 ++-
14 2 files changed, 51 insertions(+), 1 deletion(-)
15
16 diff --git a/sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch b/sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch
17 new file mode 100644
18 index 00000000..ebb641a
19 --- /dev/null
20 +++ b/sys-block/open-isns/files/open-isns-0.97-ossl-1.1.patch
21 @@ -0,0 +1,47 @@
22 +From 70b11a0f9c4056dc6891c2d5550c28993905f18a Mon Sep 17 00:00:00 2001
23 +From: eroen <open-isns@×××××××××××.eu>
24 +Date: Mon, 2 Jan 2017 23:15:08 +0100
25 +Subject: [PATCH] Disable deprecated initializations for openssl-1.1.0
26 +
27 +This fixes several undefined reference errors when linking with
28 +openssl-1.1.0c.
29 +
30 +X-Gentoo-Bug: 604454
31 +X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604454
32 +---
33 + pki.c | 4 ++++
34 + 1 file changed, 4 insertions(+)
35 +
36 +diff --git a/pki.c b/pki.c
37 +index f69ddca..5fdf9f2 100644
38 +--- a/pki.c
39 ++++ b/pki.c
40 +@@ -67,7 +67,9 @@ void BN_GENCB_free(BN_GENCB *cb)
41 + #endif
42 +
43 +
44 ++#if OPENSSL_VERSION_NUMBER < 0x10100000L
45 + static int isns_openssl_init = 0;
46 ++#endif
47 +
48 + static int isns_dsasig_verify(isns_security_t *ctx,
49 + isns_principal_t *peer,
50 +@@ -92,6 +94,7 @@ isns_create_dsa_context(void)
51 + {
52 + isns_security_t *ctx;
53 +
54 ++#if OPENSSL_VERSION_NUMBER < 0x10100000L
55 + if (!isns_openssl_init) {
56 + ERR_load_crypto_strings();
57 + OpenSSL_add_all_algorithms();
58 +@@ -99,6 +102,7 @@ isns_create_dsa_context(void)
59 + OpenSSL_add_all_digests();
60 + isns_openssl_init = 1;
61 + }
62 ++#endif
63 +
64 + ctx = isns_calloc(1, sizeof(*ctx));
65 +
66 +--
67 +2.11.0
68 +
69
70 diff --git a/sys-block/open-isns/open-isns-0.97.ebuild b/sys-block/open-isns/open-isns-0.97.ebuild
71 index c742bff..14701e2 100644
72 --- a/sys-block/open-isns/open-isns-0.97.ebuild
73 +++ b/sys-block/open-isns/open-isns-0.97.ebuild
74 @@ -20,7 +20,10 @@ DEPEND="
75 slp? ( net-libs/openslp )"
76 RDEPEND="${DEPEND}"
77
78 -PATCHES=( "${FILESDIR}/${PN}-${PV}-musl.patch" )
79 +PATCHES=(
80 + "${FILESDIR}/${P}-musl.patch"
81 + "${FILESDIR}/${P}-ossl-1.1.patch"
82 +)
83
84 src_configure() {
85 use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI