Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libssh2/files/, net-libs/libssh2/
Date: Sun, 27 Oct 2019 08:26:27
Message-Id: 1572164780.73f52c13f609bcbaccd9a28021a8ed087a10fe21.jer@gentoo
1 commit: 73f52c13f609bcbaccd9a28021a8ed087a10fe21
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 27 08:26:01 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 27 08:26:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73f52c13
7
8 net-libs/libssh2: Old
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/libssh2/Manifest | 2 -
14 .../files/libssh2-1.8.0-libgcrypt-prefix.patch | 30 ----------
15 .../files/libssh2-1.8.0-openssl11-memleak.patch | 23 -------
16 .../libssh2/files/libssh2-1.8.0-openssl11.patch | 70 ----------------------
17 net-libs/libssh2/libssh2-1.8.0-r1.ebuild | 46 --------------
18 net-libs/libssh2/libssh2-1.8.0-r2.ebuild | 61 -------------------
19 net-libs/libssh2/libssh2-1.8.2.ebuild | 61 -------------------
20 7 files changed, 293 deletions(-)
21
22 diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest
23 index 3750c1955eb..c124fff5db1 100644
24 --- a/net-libs/libssh2/Manifest
25 +++ b/net-libs/libssh2/Manifest
26 @@ -1,3 +1 @@
27 -DIST libssh2-1.8.0.tar.gz 854916 BLAKE2B 618c4a19789f2e5eda85852760dffff5672d420d2fa50393b05b7398a1913f74e5f6695f078628050ac9851965d6e45cf410b7c4590a8f18d67c718c829ab352 SHA512 289aa45c4f99653bebf5f99565fe9c519abc204feb2084b47b7cc3badc8bf4ecdedd49ea6acdce8eb902b3c00995d5f92a3ca77b2508b92f04ae0e7de7287558
28 -DIST libssh2-1.8.2.tar.gz 859587 BLAKE2B 58e0854e83001c424a767ceb4ddfb535373320d8319aa632244dc14434276db7c8b7a77d4a5f22fe8e397f1050b33516d2fca1162658a9f414166f560bc1f358 SHA512 390ab4ad93bb738415ec11a6eb92806c9b9e9e5d8ee7c442d841a58b4292c1c447a9bc99e153ba464e2e11f9c0d1913469303598c3046722d1ae821991e8cb93
29 DIST libssh2-1.9.0.tar.gz 888551 BLAKE2B 7bce5cd38b88654f0ca0f8b562e4bddc56346e3359e5873000cad7619607b2ec01c3945112dd8815d5de6daf650a750a4727cebe7d8996cc62f07ded06f3235f SHA512 41a3ebcf84e32eab69b7411ffb0a3b6e6db71491c968602b17392cfe3490ef00239726ec28acb3d25bf0ed62700db7f4d0bb5a9175618f413865f40badca6e17
30
31 diff --git a/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch b/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch
32 deleted file mode 100644
33 index 10065626fe2..00000000000
34 --- a/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch
35 +++ /dev/null
36 @@ -1,30 +0,0 @@
37 ---- a/acinclude.m4
38 -+++ b/acinclude.m4
39 -@@ -412,9 +412,9 @@ AC_DEFUN([LIBSSH2_CHECKFOR_GCRYPT], [
40 -
41 - old_LDFLAGS=$LDFLAGS
42 - old_CFLAGS=$CFLAGS
43 -- if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
44 -- LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
45 -- CFLAGS="$CFLAGS -I$use_libgcrypt/include"
46 -+ if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
47 -+ LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
48 -+ CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
49 - fi
50 - AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [
51 - #include <gcrypt.h>
52 ---- a/configure
53 -+++ b/configure
54 -@@ -14250,9 +14235,9 @@
55 -
56 - old_LDFLAGS=$LDFLAGS
57 - old_CFLAGS=$CFLAGS
58 -- if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
59 -- LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
60 -- CFLAGS="$CFLAGS -I$use_libgcrypt/include"
61 -+ if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
62 -+ LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
63 -+ CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
64 - fi
65 -
66 -
67
68 diff --git a/net-libs/libssh2/files/libssh2-1.8.0-openssl11-memleak.patch b/net-libs/libssh2/files/libssh2-1.8.0-openssl11-memleak.patch
69 deleted file mode 100644
70 index d7d41f976cc..00000000000
71 --- a/net-libs/libssh2/files/libssh2-1.8.0-openssl11-memleak.patch
72 +++ /dev/null
73 @@ -1,23 +0,0 @@
74 -From 97518ca8bda91ce12c503197a98fa71690cb67f9 Mon Sep 17 00:00:00 2001
75 -From: Will Cosgrove <will@×××××.com>
76 -Date: Fri, 12 May 2017 16:34:26 -0700
77 -Subject: [PATCH] Fix memory leak of crypt_ctx->h using openSSL 1.1+ (#177)
78 -
79 -Need to use EVP_CIPHER_CTX_free instead of EVP_CIPHER_CTX_reset.
80 ----
81 - src/openssl.h | 2 +-
82 - 1 file changed, 1 insertion(+), 1 deletion(-)
83 -
84 -diff --git a/src/openssl.h b/src/openssl.h
85 -index 6aa12192..2bd80b96 100644
86 ---- a/src/openssl.h
87 -+++ b/src/openssl.h
88 -@@ -267,7 +267,7 @@ int _libssh2_md5_init(libssh2_md5_ctx *ctx);
89 - #define _libssh2_cipher_3des EVP_des_ede3_cbc
90 -
91 - #ifdef HAVE_OPAQUE_STRUCTS
92 --#define _libssh2_cipher_dtor(ctx) EVP_CIPHER_CTX_reset(*(ctx))
93 -+#define _libssh2_cipher_dtor(ctx) EVP_CIPHER_CTX_free(*(ctx))
94 - #else
95 - #define _libssh2_cipher_dtor(ctx) EVP_CIPHER_CTX_cleanup(ctx)
96 - #endif
97
98 diff --git a/net-libs/libssh2/files/libssh2-1.8.0-openssl11.patch b/net-libs/libssh2/files/libssh2-1.8.0-openssl11.patch
99 deleted file mode 100644
100 index 0824dd06176..00000000000
101 --- a/net-libs/libssh2/files/libssh2-1.8.0-openssl11.patch
102 +++ /dev/null
103 @@ -1,70 +0,0 @@
104 -From c423b543ca45d6caca7b94763bf65ff79d07e811 Mon Sep 17 00:00:00 2001
105 -From: Marcel Raad <MarcelRaad@××××××××××××××××××××.com>
106 -Date: Wed, 24 May 2017 19:21:22 +0200
107 -Subject: [PATCH] openssl: fix build with OpenSSL 1.1 API (#176)
108 -
109 -When building with OPENSSL_API_COMPAT=0x10100000L, OpenSSL_add_all_algorithms
110 -and OpenSSL_add_all_ciphers don't exist. The corresponding functionality is
111 -handled automatically with OpenSSL 1.1.
112 ----
113 - src/openssl.c | 4 ++++
114 - src/openssl.h | 6 ++++++
115 - 2 files changed, 10 insertions(+)
116 -
117 -diff --git a/src/openssl.c b/src/openssl.c
118 -index f10f2921..25cef082 100644
119 ---- a/src/openssl.c
120 -+++ b/src/openssl.c
121 -@@ -1056,6 +1056,7 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session,
122 - "Unable to extract public key from private key "
123 - "file: Unable to open private key file");
124 - }
125 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L
126 - if (!EVP_get_cipherbyname("des")) {
127 - /* If this cipher isn't loaded it's a pretty good indication that none
128 - * are. I have *NO DOUBT* that there's a better way to deal with this
129 -@@ -1064,6 +1065,7 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session,
130 - */
131 - OpenSSL_add_all_ciphers();
132 - }
133 -+#endif
134 - BIO_reset(bp);
135 - pk = PEM_read_bio_PrivateKey(bp, NULL, NULL, (void*)passphrase);
136 - BIO_free(bp);
137 -@@ -1132,6 +1134,7 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session,
138 - if (!bp) {
139 - return -1;
140 - }
141 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L
142 - if (!EVP_get_cipherbyname("des")) {
143 - /* If this cipher isn't loaded it's a pretty good indication that none
144 - * are. I have *NO DOUBT* that there's a better way to deal with this
145 -@@ -1140,6 +1143,7 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session,
146 - */
147 - OpenSSL_add_all_ciphers();
148 - }
149 -+#endif
150 - BIO_reset(bp);
151 - pk = PEM_read_bio_PrivateKey(bp, NULL, NULL, (void*)passphrase);
152 - BIO_free(bp);
153 -diff --git a/src/openssl.h b/src/openssl.h
154 -index 2bd80b96..d8874286 100644
155 ---- a/src/openssl.h
156 -+++ b/src/openssl.h
157 -@@ -226,10 +226,16 @@ int _libssh2_md5_init(libssh2_md5_ctx *ctx);
158 - #define libssh2_hmac_cleanup(ctx) HMAC_cleanup(ctx)
159 - #endif
160 -
161 -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
162 -+#define libssh2_crypto_init() \
163 -+ ENGINE_load_builtin_engines(); \
164 -+ ENGINE_register_all_complete()
165 -+#else
166 - #define libssh2_crypto_init() \
167 - OpenSSL_add_all_algorithms(); \
168 - ENGINE_load_builtin_engines(); \
169 - ENGINE_register_all_complete()
170 -+#endif
171 -
172 - #define libssh2_crypto_exit()
173 -
174
175 diff --git a/net-libs/libssh2/libssh2-1.8.0-r1.ebuild b/net-libs/libssh2/libssh2-1.8.0-r1.ebuild
176 deleted file mode 100644
177 index 2cbb730d3d7..00000000000
178 --- a/net-libs/libssh2/libssh2-1.8.0-r1.ebuild
179 +++ /dev/null
180 @@ -1,46 +0,0 @@
181 -# Copyright 1999-2018 Gentoo Foundation
182 -# Distributed under the terms of the GNU General Public License v2
183 -
184 -EAPI=6
185 -inherit multilib-minimal
186 -
187 -DESCRIPTION="Library implementing the SSH2 protocol"
188 -HOMEPAGE="https://www.libssh2.org"
189 -SRC_URI="https://www.${PN}.org/download/${P}.tar.gz"
190 -
191 -LICENSE="BSD"
192 -SLOT="0"
193 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
194 -IUSE="gcrypt libressl static-libs test zlib"
195 -
196 -RDEPEND="
197 - !gcrypt? (
198 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
199 - libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
200 - )
201 - gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
202 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
203 -"
204 -DEPEND="${RDEPEND}"
205 -
206 -PATCHES=(
207 - "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch
208 - "${FILESDIR}"/${PN}-1.8.0-mansyntax_sh.patch
209 - "${FILESDIR}"/${PN}-1.8.0-openssl11.patch
210 - "${FILESDIR}"/${PN}-1.8.0-openssl11-memleak.patch
211 -)
212 -
213 -multilib_src_configure() {
214 - # Disable tests that require extra permissions (bug #333319)
215 - use test && local -x ac_cv_path_SSHD=
216 -
217 - ECONF_SOURCE=${S} econf \
218 - $(use_with zlib libz) \
219 - $(usex gcrypt --with-libgcrypt --with-openssl) \
220 - $(use_enable static-libs static)
221 -}
222 -
223 -multilib_src_install_all() {
224 - einstalldocs
225 - find "${D}" -name '*.la' -delete || die
226 -}
227
228 diff --git a/net-libs/libssh2/libssh2-1.8.0-r2.ebuild b/net-libs/libssh2/libssh2-1.8.0-r2.ebuild
229 deleted file mode 100644
230 index 4a971721dd1..00000000000
231 --- a/net-libs/libssh2/libssh2-1.8.0-r2.ebuild
232 +++ /dev/null
233 @@ -1,61 +0,0 @@
234 -# Copyright 1999-2019 Gentoo Authors
235 -# Distributed under the terms of the GNU General Public License v2
236 -
237 -EAPI=6
238 -inherit cmake-multilib
239 -
240 -DESCRIPTION="Library implementing the SSH2 protocol"
241 -HOMEPAGE="https://www.libssh2.org"
242 -SRC_URI="https://www.${PN}.org/download/${P}.tar.gz"
243 -
244 -LICENSE="BSD"
245 -SLOT="0"
246 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
247 -IUSE="gcrypt libressl mbedtls zlib"
248 -REQUIRED_USE="?? ( gcrypt mbedtls )"
249 -RESTRICT="test"
250 -
251 -RDEPEND="
252 - gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
253 - !gcrypt? (
254 - mbedtls? ( net-libs/mbedtls[${MULTILIB_USEDEP}] )
255 - !mbedtls? (
256 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
257 - libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
258 - )
259 - )
260 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
261 -"
262 -DEPEND="
263 - ${RDEPEND}
264 -"
265 -
266 -PATCHES=(
267 - "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch
268 - "${FILESDIR}"/${PN}-1.8.0-mansyntax_sh.patch
269 - "${FILESDIR}"/${PN}-1.8.0-openssl11-memleak.patch
270 - "${FILESDIR}"/${PN}-1.8.0-openssl11.patch
271 -)
272 -
273 -multilib_src_configure() {
274 - local crypto_backend=OpenSSL
275 - if use gcrypt; then
276 - crypto_backend=Libgcrypt
277 - elif use mbedtls; then
278 - crypto_backend=mbedTLS
279 - fi
280 -
281 - local mycmakeargs=(
282 - -DBUILD_SHARED_LIBS=ON
283 - -DCRYPTO_BACKEND=${crypto_backend}
284 - -DENABLE_ZLIB_COMPRESSION=$(usex zlib)
285 - )
286 - cmake-utils_src_configure
287 -}
288 -
289 -multilib_src_install_all() {
290 - einstalldocs
291 - find "${ED}" -name '*.la' -delete || die
292 - mv "${ED}"/usr/share/doc/${PN}/* "${ED}"/usr/share/doc/${PF}/ || die
293 - rm -r "${ED}"/usr/share/doc/${PN}/ || die
294 -}
295
296 diff --git a/net-libs/libssh2/libssh2-1.8.2.ebuild b/net-libs/libssh2/libssh2-1.8.2.ebuild
297 deleted file mode 100644
298 index 4c8055cf027..00000000000
299 --- a/net-libs/libssh2/libssh2-1.8.2.ebuild
300 +++ /dev/null
301 @@ -1,61 +0,0 @@
302 -# Copyright 1999-2019 Gentoo Authors
303 -# Distributed under the terms of the GNU General Public License v2
304 -
305 -EAPI=6
306 -inherit cmake-multilib
307 -
308 -DESCRIPTION="Library implementing the SSH2 protocol"
309 -HOMEPAGE="https://www.libssh2.org"
310 -SRC_URI="https://www.${PN}.org/download/${P}.tar.gz"
311 -
312 -LICENSE="BSD"
313 -SLOT="0"
314 -KEYWORDS="alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
315 -IUSE="gcrypt libressl mbedtls zlib"
316 -REQUIRED_USE="?? ( gcrypt mbedtls )"
317 -RESTRICT="test"
318 -
319 -RDEPEND="
320 - gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
321 - !gcrypt? (
322 - mbedtls? ( net-libs/mbedtls[${MULTILIB_USEDEP}] )
323 - !mbedtls? (
324 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
325 - libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] )
326 - )
327 - )
328 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
329 -"
330 -DEPEND="
331 - ${RDEPEND}
332 -"
333 -
334 -PATCHES=(
335 - "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch
336 - "${FILESDIR}"/${PN}-1.8.0-mansyntax_sh.patch
337 - "${FILESDIR}"/${PN}-1.8.0-openssl11-memleak.patch
338 - "${FILESDIR}"/${PN}-1.8.0-openssl11.patch
339 -)
340 -
341 -multilib_src_configure() {
342 - local crypto_backend=OpenSSL
343 - if use gcrypt; then
344 - crypto_backend=Libgcrypt
345 - elif use mbedtls; then
346 - crypto_backend=mbedTLS
347 - fi
348 -
349 - local mycmakeargs=(
350 - -DBUILD_SHARED_LIBS=ON
351 - -DCRYPTO_BACKEND=${crypto_backend}
352 - -DENABLE_ZLIB_COMPRESSION=$(usex zlib)
353 - )
354 - cmake-utils_src_configure
355 -}
356 -
357 -multilib_src_install_all() {
358 - einstalldocs
359 - find "${ED}" -name '*.la' -delete || die
360 - mv "${ED}"/usr/share/doc/${PN}/* "${ED}"/usr/share/doc/${PF}/ || die
361 - rm -r "${ED}"/usr/share/doc/${PN}/ || die
362 -}