1 |
commit: e3002ff94b023e3c3028934d18bf95c4f055d80f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 10 15:14:07 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 10 15:14:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3002ff9 |
7 |
|
8 |
dev-libs/botan: security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/718596 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-libs/botan/Manifest | 1 - |
15 |
dev-libs/botan/botan-2.9.0.ebuild | 103 --------------------------- |
16 |
dev-libs/botan/files/botan-2.9.0-build.patch | 63 ---------------- |
17 |
3 files changed, 167 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/botan/Manifest b/dev-libs/botan/Manifest |
20 |
index ae7a4661551..a5442d2b4ff 100644 |
21 |
--- a/dev-libs/botan/Manifest |
22 |
+++ b/dev-libs/botan/Manifest |
23 |
@@ -1,3 +1,2 @@ |
24 |
DIST Botan-2.14.0.tar.xz 5958948 BLAKE2B 90e73945b22f6e4e8d6163bfb45eca153eb1495448f8bf35514b780fd12bb1b81c822314e1f598c7625277f1e9cf7a6265387cca80ffd4c2664c681b9d4807fd SHA512 ee15928ecdb0127720b444b0207d46fd68fe3007125b0deb8bdd32f96e9befb684ad54009354da4f6a3c48b9698693b46223710a47fd644da8760dda53d40d34 |
25 |
DIST Botan-2.15.0.tar.xz 5920688 BLAKE2B 1bbb9cadb0f754194851bddf8b14dbcd291285c5f3fbaad35920277a11c3d9e1b1e5cc484c0d37b1c7999b3084a1c90da56631df0b07e788372b95aff5197031 SHA512 0965a0a6141df44e38bd7da038b89dd2b3808ed9a4ebaafbf089abf60718e62cba78d7b64eaf272b5df8c5a489222e4cad4fb511cde38e76cdaed87f35896c18 |
26 |
-DIST Botan-2.9.0.tgz 7216373 BLAKE2B 5ad2e15db871ccc3a32b29b7f54a02d69f251f0aca2ce656b557dbbb3814a793053a54905371b3414ad72952a64bece43e2383da91f205f68b0fe31be2f9439c SHA512 b88f3894a4a5b7b2fbff9be6eb0b774bf679a014bd2364811b7e63d4f323e22ca9ef916491afbc2cdf9db68727c1449fbeb6fd417e591560add0955517db3f65 |
27 |
|
28 |
diff --git a/dev-libs/botan/botan-2.9.0.ebuild b/dev-libs/botan/botan-2.9.0.ebuild |
29 |
deleted file mode 100644 |
30 |
index ec3daddb330..00000000000 |
31 |
--- a/dev-libs/botan/botan-2.9.0.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,103 +0,0 @@ |
34 |
-# Copyright 1999-2020 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
-PYTHON_COMPAT=( python3_6 ) |
39 |
- |
40 |
-inherit multilib python-r1 toolchain-funcs |
41 |
- |
42 |
-MY_PN="Botan" |
43 |
-MY_P="${MY_PN}-${PV}" |
44 |
-DESCRIPTION="A C++ crypto library" |
45 |
-HOMEPAGE="https://botan.randombit.net/" |
46 |
-SRC_URI="https://botan.randombit.net/releases/${MY_P}.tgz" |
47 |
- |
48 |
-KEYWORDS="amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~ppc-macos" |
49 |
-SLOT="2/$(ver_cut 1-2)" # soname version |
50 |
-LICENSE="BSD" |
51 |
-IUSE="bindist doc boost python bzip2 libressl lzma sqlite ssl static-libs zlib" |
52 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
53 |
- |
54 |
-S="${WORKDIR}/${MY_P}" |
55 |
- |
56 |
-DEPEND="python? ( ${PYTHON_DEPS} )" |
57 |
-RDEPEND="${DEPEND} |
58 |
- bzip2? ( >=app-arch/bzip2-1.0.5:= ) |
59 |
- zlib? ( >=sys-libs/zlib-1.2.3:= ) |
60 |
- boost? ( >=dev-libs/boost-1.48:= ) |
61 |
- lzma? ( app-arch/xz-utils:= ) |
62 |
- sqlite? ( dev-db/sqlite:3= ) |
63 |
- ssl? ( |
64 |
- !libressl? ( dev-libs/openssl:0=[bindist=] ) |
65 |
- libressl? ( dev-libs/libressl:0= ) |
66 |
- )" |
67 |
-BDEPEND="dev-lang/python:* |
68 |
- doc? ( dev-python/sphinx )" |
69 |
- |
70 |
-PATCHES=( |
71 |
- "${FILESDIR}/${P}-build.patch" |
72 |
-) |
73 |
- |
74 |
-src_configure() { |
75 |
- local disable_modules=() |
76 |
- use boost || disable_modules+=( "boost" ) |
77 |
- use bindist && disable_modules+=( "ecdsa" ) |
78 |
- elog "Disabling modules: ${disable_modules[@]}" |
79 |
- |
80 |
- # Enable v9 instructions for sparc64 |
81 |
- if [[ "${PROFILE_ARCH}" = "sparc64" ]]; then |
82 |
- CHOSTARCH="sparc32-v9" |
83 |
- else |
84 |
- CHOSTARCH="${CHOST%%-*}" |
85 |
- fi |
86 |
- |
87 |
- local myos= |
88 |
- case ${CHOST} in |
89 |
- *-darwin*) myos=darwin ;; |
90 |
- *) myos=linux ;; |
91 |
- esac |
92 |
- |
93 |
- case ${CHOST} in |
94 |
- hppa*) CHOSTARCH=parisc ;; |
95 |
- esac |
96 |
- |
97 |
- local pythonvers=() |
98 |
- if use python; then |
99 |
- append() { |
100 |
- pythonvers+=( ${EPYTHON/python/} ) |
101 |
- } |
102 |
- python_foreach_impl append |
103 |
- fi |
104 |
- |
105 |
- CXX="$(tc-getCXX)" AR="$(tc-getAR)" ./configure.py \ |
106 |
- $(use_enable static-libs static-library) \ |
107 |
- $(use_with boost) \ |
108 |
- $(use_with bzip2) \ |
109 |
- $(use_with doc documentation) \ |
110 |
- $(use_with doc sphinx) \ |
111 |
- $(use_with lzma) \ |
112 |
- $(use_with sqlite sqlite3) \ |
113 |
- $(use_with ssl openssl) \ |
114 |
- $(use_with zlib) \ |
115 |
- $(usex hppa --without-stack-protector '') \ |
116 |
- --cc=gcc \ |
117 |
- --cpu=${CHOSTARCH} \ |
118 |
- --disable-modules=$(IFS=","; echo "${disable_modules[*]}" ) \ |
119 |
- --docdir=share/doc \ |
120 |
- --libdir=$(get_libdir) \ |
121 |
- --os=${myos} \ |
122 |
- --prefix="${EPREFIX}/usr" \ |
123 |
- --with-endian="$(tc-endian)" \ |
124 |
- --with-python-version=$(IFS=","; echo "${pythonvers[*]}" ) \ |
125 |
- --without-doxygen \ |
126 |
- || die "configure.py failed" |
127 |
-} |
128 |
- |
129 |
-src_test() { |
130 |
- LD_LIBRARY_PATH="${S}" ./botan-test || die "Validation tests failed" |
131 |
-} |
132 |
- |
133 |
-src_install() { |
134 |
- default |
135 |
- use python && python_foreach_impl python_optimize |
136 |
-} |
137 |
|
138 |
diff --git a/dev-libs/botan/files/botan-2.9.0-build.patch b/dev-libs/botan/files/botan-2.9.0-build.patch |
139 |
deleted file mode 100644 |
140 |
index 6208ffdbf0a..00000000000 |
141 |
--- a/dev-libs/botan/files/botan-2.9.0-build.patch |
142 |
+++ /dev/null |
143 |
@@ -1,63 +0,0 @@ |
144 |
-From 86df247e4f090f984e050962ed5a4a536ec63b33 Mon Sep 17 00:00:00 2001 |
145 |
-From: Ralf van der Enden <Ralf.vanderEnden@××××××××.nl> |
146 |
-Date: Fri, 5 Apr 2019 14:58:14 +0200 |
147 |
-Subject: [PATCH] boost 1.70 compatibility |
148 |
- |
149 |
-Fixes issue #82 |
150 |
---- |
151 |
- src/cli/tls_http_server.cpp | 8 +++++++- |
152 |
- src/cli/tls_proxy.cpp | 8 +++++++- |
153 |
- 2 files changed, 14 insertions(+), 2 deletions(-) |
154 |
- |
155 |
-diff --git a/src/cli/tls_http_server.cpp b/src/cli/tls_http_server.cpp |
156 |
-index cc59a71c33..0a6428cd65 100644 |
157 |
---- a/src/cli/tls_http_server.cpp |
158 |
-+++ b/src/cli/tls_http_server.cpp |
159 |
-@@ -41,6 +41,12 @@ |
160 |
- |
161 |
- #include "credentials.h" |
162 |
- |
163 |
-+#if BOOST_VERSION >= 107000 |
164 |
-+#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context()) |
165 |
-+#else |
166 |
-+#define GET_IO_SERVICE(s) ((s).get_io_service()) |
167 |
-+#endif |
168 |
-+ |
169 |
- namespace Botan_CLI { |
170 |
- |
171 |
- namespace { |
172 |
-@@ -435,7 +441,7 @@ class TLS_Asio_HTTP_Server final |
173 |
- session::pointer make_session() |
174 |
- { |
175 |
- return session::create( |
176 |
-- m_acceptor.get_io_service(), |
177 |
-+ GET_IO_SERVICE(m_acceptor), |
178 |
- m_session_manager, |
179 |
- m_creds, |
180 |
- m_policy); |
181 |
-diff --git a/src/cli/tls_proxy.cpp b/src/cli/tls_proxy.cpp |
182 |
-index 49ffbe3766..42ce156b12 100644 |
183 |
---- a/src/cli/tls_proxy.cpp |
184 |
-+++ b/src/cli/tls_proxy.cpp |
185 |
-@@ -33,6 +33,12 @@ |
186 |
- |
187 |
- #include "credentials.h" |
188 |
- |
189 |
-+#if BOOST_VERSION >= 107000 |
190 |
-+#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context()) |
191 |
-+#else |
192 |
-+#define GET_IO_SERVICE(s) ((s).get_io_service()) |
193 |
-+#endif |
194 |
-+ |
195 |
- namespace Botan_CLI { |
196 |
- |
197 |
- namespace { |
198 |
-@@ -370,7 +376,7 @@ class tls_proxy_server final |
199 |
- session::pointer make_session() |
200 |
- { |
201 |
- return session::create( |
202 |
-- m_acceptor.get_io_service(), |
203 |
-+ GET_IO_SERVICE(m_acceptor), |
204 |
- m_session_manager, |
205 |
- m_creds, |
206 |
- m_policy, |