1 |
commit: ebc896b71d4c22a1ed82a068845d682fdc55a3ed |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 22:21:11 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 22:21:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebc896b7 |
7 |
|
8 |
net-libs/libssh: drop 0.10.0-r1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-libs/libssh/Manifest | 1 - |
13 |
.../files/libssh-0.10.0-fix-musl-gnu-source.patch | 58 ---------- |
14 |
net-libs/libssh/libssh-0.10.0-r1.ebuild | 126 --------------------- |
15 |
3 files changed, 185 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/libssh/Manifest b/net-libs/libssh/Manifest |
18 |
index f4d48d1a6473..4a35ffc7b747 100644 |
19 |
--- a/net-libs/libssh/Manifest |
20 |
+++ b/net-libs/libssh/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST libssh-0.10.0.tar.xz 553384 BLAKE2B 4a57e2095a4f56d06b2be591e02c9b9ded5e1fa28ed2774389a2902a8277f6e6b99014f8868f0740ca2900409d33b968f65c9eaa312e259926436afb49fc108c SHA512 d97235f78b94a980aabc844ee7614108944967441219f0c2417b207734d5200eb26efd5fd6de0da97a34fb612b843dc0a3b32a3364c1d8333e4c49680212aaaa |
23 |
DIST libssh-0.10.1.tar.xz 553808 BLAKE2B 1e0a648153122619e473481484af70b9c388e75a6586a7b5ea605fede4a592f2f1ae2978c19762ac396d3dff2a3dd03451ee293c9fbd4f861a1bb5668e2489b7 SHA512 d56b2809527d4f3c1d88881b8f7a7cd49321df8abe4fde011dfe7323e7552641b36a607f3b1b37c26703adae01d0176fc3d71c6c207598aaae5ebdf10237742e |
24 |
DIST libssh-0.9.6.tar.xz 1053056 BLAKE2B e8565279a430786b8877386a26700a39386e908546a209815b135a2bf4ef42c37b9890dc29cda9ce6c8bfe3f3bae4942097dc794302aec767d106a45c44b811d SHA512 4040ec4af937e95be2e41313ef6d4db60b46b8d4dea10c09402398127c1d1ca8843392d207088aeee3c7ef631c6ae7b66861327dcebf78ed3af0723777619fd1 |
25 |
|
26 |
diff --git a/net-libs/libssh/files/libssh-0.10.0-fix-musl-gnu-source.patch b/net-libs/libssh/files/libssh-0.10.0-fix-musl-gnu-source.patch |
27 |
deleted file mode 100644 |
28 |
index be234bab53c9..000000000000 |
29 |
--- a/net-libs/libssh/files/libssh-0.10.0-fix-musl-gnu-source.patch |
30 |
+++ /dev/null |
31 |
@@ -1,58 +0,0 @@ |
32 |
-https://gitlab.com/libssh/libssh-mirror/-/commit/8cf9c8162fc317761f19c35f60fc0cae7337ceea |
33 |
-https://gitlab.com/libssh/libssh-mirror/-/issues/141 |
34 |
- |
35 |
-From: Jakub Jelen <jjelen@××××××.com> |
36 |
-Date: Mon, 29 Aug 2022 12:48:34 +0200 |
37 |
-Subject: [PATCH] Do not force GNU_SOURCE during build to fix #141 |
38 |
- |
39 |
-Signed-off-by: Jakub Jelen <jjelen@××××××.com> |
40 |
-Reviewed-by: Andreas Schneider <asn@××××××××××.org> |
41 |
---- a/src/CMakeLists.txt |
42 |
-+++ b/src/CMakeLists.txt |
43 |
-@@ -348,10 +348,6 @@ endif (WITH_SYMBOL_VERSIONING AND HAVE_LD_VERSION_SCRIPT AND ABIMAP_FOUND) |
44 |
- # This gets built as a static library, if -DBUILD_SHARED_LIBS=OFF is passed to |
45 |
- # cmake. |
46 |
- add_library(ssh ${libssh_SRCS}) |
47 |
--target_compile_options(ssh |
48 |
-- PRIVATE |
49 |
-- ${DEFAULT_C_COMPILE_FLAGS} |
50 |
-- -D_GNU_SOURCE) |
51 |
- target_include_directories(ssh |
52 |
- PUBLIC |
53 |
- $<BUILD_INTERFACE:${libssh_SOURCE_DIR}/include> |
54 |
-@@ -408,10 +404,6 @@ install(EXPORT libssh-config |
55 |
- |
56 |
- if (BUILD_STATIC_LIB) |
57 |
- add_library(ssh-static STATIC ${libssh_SRCS}) |
58 |
-- target_compile_options(ssh-static |
59 |
-- PRIVATE |
60 |
-- ${DEFAULT_C_COMPILE_FLAGS} |
61 |
-- -D_GNU_SOURCE) |
62 |
- |
63 |
- target_include_directories(ssh-static |
64 |
- PUBLIC |
65 |
---- a/src/misc.c |
66 |
-+++ b/src/misc.c |
67 |
-@@ -1956,7 +1956,7 @@ char *ssh_strerror(int err_num, char *buf, size_t buflen) |
68 |
- #if defined(_WIN32) |
69 |
- strerror_s(buf, buflen, err_num); |
70 |
- return buf; |
71 |
--#elif defined(__linux__) && defined(_GNU_SOURCE) |
72 |
-+#elif defined(__linux__) && defined(__GLIBC__) && defined(_GNU_SOURCE) |
73 |
- /* GNU extension on Linux */ |
74 |
- return strerror_r(err_num, buf, buflen); |
75 |
- #else |
76 |
---- a/tests/torture.h |
77 |
-+++ b/tests/torture.h |
78 |
-@@ -24,10 +24,6 @@ |
79 |
- #ifndef _TORTURE_H |
80 |
- #define _TORTURE_H |
81 |
- |
82 |
--#ifndef _GNU_SOURCE |
83 |
--#define _GNU_SOURCE |
84 |
--#endif |
85 |
-- |
86 |
- #include <stdio.h> |
87 |
- #include <stdlib.h> |
88 |
- #include <stdarg.h> |
89 |
-GitLab |
90 |
|
91 |
diff --git a/net-libs/libssh/libssh-0.10.0-r1.ebuild b/net-libs/libssh/libssh-0.10.0-r1.ebuild |
92 |
deleted file mode 100644 |
93 |
index 0a5989b9a16b..000000000000 |
94 |
--- a/net-libs/libssh/libssh-0.10.0-r1.ebuild |
95 |
+++ /dev/null |
96 |
@@ -1,126 +0,0 @@ |
97 |
-# Copyright 1999-2022 Gentoo Authors |
98 |
-# Distributed under the terms of the GNU General Public License v2 |
99 |
- |
100 |
-EAPI=8 |
101 |
- |
102 |
-inherit cmake-multilib |
103 |
- |
104 |
-DESCRIPTION="Access a working SSH implementation by means of a library" |
105 |
-HOMEPAGE="https://www.libssh.org/" |
106 |
- |
107 |
-if [[ ${PV} == *9999* ]] ; then |
108 |
- inherit git-r3 |
109 |
- EGIT_REPO_URI="https://git.libssh.org/projects/libssh.git" |
110 |
-else |
111 |
- SRC_URI="https://www.libssh.org/files/$(ver_cut 1-2)/${P}.tar.xz" |
112 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
113 |
-fi |
114 |
- |
115 |
-LICENSE="LGPL-2.1" |
116 |
-SLOT="0/4" # subslot = soname major version |
117 |
-IUSE="debug doc examples gcrypt gssapi mbedtls pcap server +sftp static-libs test zlib" |
118 |
-# Maintainer: check IUSE-defaults at DefineOptions.cmake |
119 |
- |
120 |
-REQUIRED_USE="?? ( gcrypt mbedtls )" |
121 |
-RESTRICT="!test? ( test )" |
122 |
- |
123 |
-RDEPEND=" |
124 |
- !gcrypt? ( |
125 |
- !mbedtls? ( |
126 |
- >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] |
127 |
- ) |
128 |
- ) |
129 |
- gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] ) |
130 |
- gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
131 |
- mbedtls? ( net-libs/mbedtls:=[${MULTILIB_USEDEP}] ) |
132 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
133 |
-" |
134 |
-DEPEND="${RDEPEND} |
135 |
- test? ( |
136 |
- >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] |
137 |
- elibc_musl? ( sys-libs/argp-standalone ) |
138 |
- ) |
139 |
-" |
140 |
-BDEPEND="doc? ( app-doc/doxygen[dot] )" |
141 |
- |
142 |
-DOCS=( AUTHORS CHANGELOG README ) |
143 |
- |
144 |
-PATCHES=( "${FILESDIR}/${PN}-0.8.0-tests.patch" ) |
145 |
- |
146 |
-PATCHES=( |
147 |
- "${FILESDIR}"/${P}-fix-musl-gnu-source.patch |
148 |
-) |
149 |
- |
150 |
-src_prepare() { |
151 |
- cmake_src_prepare |
152 |
- |
153 |
- # just install the examples, do not compile them |
154 |
- cmake_comment_add_subdirectory examples |
155 |
- |
156 |
- # keyfile torture test is currently broken |
157 |
- sed -e "/torture_keyfiles/d" \ |
158 |
- -i tests/unittests/CMakeLists.txt || die |
159 |
- |
160 |
- # disable tests that take too long (bug #677006) |
161 |
- if use sparc; then |
162 |
- sed -e "/torture_threads_pki_rsa/d" -e "/torture_pki_dsa/d" \ |
163 |
- -i tests/unittests/CMakeLists.txt || die |
164 |
- fi |
165 |
- |
166 |
- sed -e "/^check_include_file.*HAVE_VALGRIND_VALGRIND_H/s/^/#DONT /" \ |
167 |
- -i ConfigureChecks.cmake || die |
168 |
- |
169 |
- if use test && use elibc_musl; then |
170 |
- sed -e "/SOLARIS/d" \ |
171 |
- -i tests/CMakeLists.txt || die |
172 |
- fi |
173 |
-} |
174 |
- |
175 |
-multilib_src_configure() { |
176 |
- local mycmakeargs=( |
177 |
- -DWITH_NACL=OFF |
178 |
- -DWITH_STACK_PROTECTOR=OFF |
179 |
- -DWITH_STACK_PROTECTOR_STRONG=OFF |
180 |
- -DWITH_DEBUG_CALLTRACE=$(usex debug) |
181 |
- -DWITH_DEBUG_CRYPTO=$(usex debug) |
182 |
- -DWITH_GCRYPT=$(usex gcrypt) |
183 |
- -DWITH_GSSAPI=$(usex gssapi) |
184 |
- -DWITH_MBEDTLS=$(usex mbedtls) |
185 |
- -DWITH_PCAP=$(usex pcap) |
186 |
- -DWITH_SERVER=$(usex server) |
187 |
- -DWITH_SFTP=$(usex sftp) |
188 |
- -DBUILD_STATIC_LIB=$(usex static-libs) |
189 |
- -DUNIT_TESTING=$(usex test) |
190 |
- -DWITH_ZLIB=$(usex zlib) |
191 |
- ) |
192 |
- |
193 |
- multilib_is_native_abi || mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON ) |
194 |
- |
195 |
- cmake_src_configure |
196 |
-} |
197 |
- |
198 |
-multilib_src_compile() { |
199 |
- cmake_src_compile |
200 |
- multilib_is_native_abi && use doc && cmake_src_compile docs |
201 |
-} |
202 |
- |
203 |
-multilib_src_install() { |
204 |
- cmake_src_install |
205 |
- multilib_is_native_abi && use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) |
206 |
- |
207 |
- use static-libs && dolib.a src/libssh.a |
208 |
- |
209 |
- # compatibility symlink until all consumers have been updated |
210 |
- # to no longer use libssh_threads.so |
211 |
- dosym libssh.so /usr/$(get_libdir)/libssh_threads.so |
212 |
-} |
213 |
- |
214 |
-multilib_src_install_all() { |
215 |
- use mbedtls && DOCS+=( README.mbedtls ) |
216 |
- einstalldocs |
217 |
- |
218 |
- if use examples; then |
219 |
- docinto examples |
220 |
- dodoc examples/*.{c,h,cpp} |
221 |
- fi |
222 |
-} |