1 |
commit: dc8384f173ea1b1578cfd0fbc8c38879b248811c |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 12:45:45 2019 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 12:45:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc8384f1 |
7 |
|
8 |
www-servers/h2o: fix build with >=dev-libs/libressl-2.7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/678430 |
11 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
www-servers/h2o/files/h2o-2.2-libressl-2.7.patch | 23 +++++++++++++++++++++++ |
15 |
www-servers/h2o/h2o-2.2.5.ebuild | 7 +++++-- |
16 |
2 files changed, 28 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/www-servers/h2o/files/h2o-2.2-libressl-2.7.patch b/www-servers/h2o/files/h2o-2.2-libressl-2.7.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..02942b49227 |
21 |
--- /dev/null |
22 |
+++ b/www-servers/h2o/files/h2o-2.2-libressl-2.7.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+From db50d885a87985310e65159a705b45de8646dc26 Mon Sep 17 00:00:00 2001 |
25 |
+From: AIZAWA Hina <hina@×××××××.com> |
26 |
+Date: Fri, 23 Mar 2018 22:50:51 +0900 |
27 |
+Subject: [PATCH] Add supporting LibreSSL 2.7 |
28 |
+ |
29 |
+Signed-off-by: AIZAWA Hina <hina@×××××××.com> |
30 |
+--- |
31 |
+ deps/neverbleed/neverbleed.c | 2 +- |
32 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
33 |
+ |
34 |
+diff --git a/deps/neverbleed/neverbleed.c b/deps/neverbleed/neverbleed.c |
35 |
+index 29b35a9..42356a6 100644 |
36 |
+--- a/deps/neverbleed/neverbleed.c |
37 |
++++ b/deps/neverbleed/neverbleed.c |
38 |
+@@ -547,7 +547,7 @@ static int sign_stub(struct expbuf_t *buf) |
39 |
+ return 0; |
40 |
+ } |
41 |
+ |
42 |
+-#if !OPENSSL_1_1_API |
43 |
++#if !OPENSSL_1_1_API && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL) |
44 |
+ |
45 |
+ static void RSA_get0_key(const RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) |
46 |
+ { |
47 |
|
48 |
diff --git a/www-servers/h2o/h2o-2.2.5.ebuild b/www-servers/h2o/h2o-2.2.5.ebuild |
49 |
index 3d4d736c3e8..de3a311b755 100644 |
50 |
--- a/www-servers/h2o/h2o-2.2.5.ebuild |
51 |
+++ b/www-servers/h2o/h2o-2.2.5.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2018 Gentoo Foundation |
54 |
+# Copyright 1999-2019 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI="6" |
58 |
@@ -32,7 +32,10 @@ DEPEND="${RDEPEND} |
59 |
virtual/pkgconfig |
60 |
)" |
61 |
|
62 |
-PATCHES=( "${FILESDIR}"/${PN}-2.2-mruby.patch ) |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}"/${PN}-2.2-libressl-2.7.patch |
65 |
+ "${FILESDIR}"/${PN}-2.2-mruby.patch |
66 |
+) |
67 |
|
68 |
pkg_setup() { |
69 |
enewgroup ${PN} |