Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libssh/, net-libs/libssh/files/
Date: Sun, 26 Jan 2020 10:55:07
Message-Id: 1580036089.78a2814f6e83699b6d46d6d28097e5a5d0fbecc4.asturm@gentoo
1 commit: 78a2814f6e83699b6d46d6d28097e5a5d0fbecc4
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 26 10:53:50 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 26 10:54:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78a2814f
7
8 net-libs/libssh: Drop 0.9.0
9
10 Bug: https://bugs.gentoo.org/701598
11 Package-Manager: Portage-2.3.85, Repoman-2.3.20
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 net-libs/libssh/Manifest | 1 -
15 net-libs/libssh/files/libssh-0.9.0-libressl.patch | 33 ------
16 net-libs/libssh/libssh-0.9.0.ebuild | 117 ----------------------
17 3 files changed, 151 deletions(-)
18
19 diff --git a/net-libs/libssh/Manifest b/net-libs/libssh/Manifest
20 index 514dfeaaa99..46c2c2c9b3f 100644
21 --- a/net-libs/libssh/Manifest
22 +++ b/net-libs/libssh/Manifest
23 @@ -1,2 +1 @@
24 -DIST libssh-0.9.0.tar.xz 487628 BLAKE2B 43c9c889160089f8ab4ce9d486e1892ef9fb7941d7473baf2c27e3fe05da0299bd8a7fa5c4392f24411ec0970f61fc302fbe18b8c807efe07d65f6fc326467e3 SHA512 8c91b31e49652d93c295ca62c2ff1ae30f26c263195a8bc2390e44f6e688959507f609125d342ee8180fc03cec2d73258ac72f864696281b53ba9ad244060865
25 DIST libssh-0.9.3.tar.xz 500068 BLAKE2B 9532db5f0fd9a6f4167f57dc25a1131f7483aff2f0fa659d967b21a7eff8507843c09dae1fe8161c9b41aed1bb1dae6d619a35122812d3d9b4c71f78ff1817e2 SHA512 6e59718565daeca6d224426cc1095a112deff9af8e0b021917e04f08bb7409263c35724de95f591f38e26f0fb3bbbbc69b679b6775edc21dec158d241b076c6f
26
27 diff --git a/net-libs/libssh/files/libssh-0.9.0-libressl.patch b/net-libs/libssh/files/libssh-0.9.0-libressl.patch
28 deleted file mode 100644
29 index 355e832308e..00000000000
30 --- a/net-libs/libssh/files/libssh-0.9.0-libressl.patch
31 +++ /dev/null
32 @@ -1,33 +0,0 @@
33 -From 08bdd5b26388f92867ab03e36d73e32481faed88 Mon Sep 17 00:00:00 2001
34 -From: Stefan Strogin <steils@g.o>
35 -Date: Mon, 1 Jul 2019 13:35:09 +0300
36 -Subject: [PATCH] libcrypto: fix compilation with LibreSSL
37 -
38 -LibreSSL does not support FIPS, so do not check it.
39 -
40 -Signed-off-by: Stefan Strogin <steils@g.o>
41 -Upstream-Status: Submitted
42 -[https://www.libssh.org/archive/libssh/2019-07/0000000.html]
43 ----
44 - include/libssh/libcrypto.h | 4 ++++
45 - 1 file changed, 4 insertions(+)
46 -
47 -diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h
48 -index 541912b5..1a1df635 100644
49 ---- a/include/libssh/libcrypto.h
50 -+++ b/include/libssh/libcrypto.h
51 -@@ -112,7 +112,11 @@ typedef BN_CTX* bignum_CTX;
52 -
53 -
54 - /* Returns true if the OpenSSL is operating in FIPS mode */
55 -+#ifndef LIBRESSL_VERSION_NUMBER
56 - #define ssh_fips_mode() (FIPS_mode() != 0)
57 -+#else
58 -+#define ssh_fips_mode() false
59 -+#endif
60 -
61 - #endif /* HAVE_LIBCRYPTO */
62 -
63 ---
64 -2.22.0
65 -
66
67 diff --git a/net-libs/libssh/libssh-0.9.0.ebuild b/net-libs/libssh/libssh-0.9.0.ebuild
68 deleted file mode 100644
69 index 32102181030..00000000000
70 --- a/net-libs/libssh/libssh-0.9.0.ebuild
71 +++ /dev/null
72 @@ -1,117 +0,0 @@
73 -# Copyright 1999-2019 Gentoo Authors
74 -# Distributed under the terms of the GNU General Public License v2
75 -
76 -EAPI=7
77 -
78 -CMAKE_ECLASS=cmake
79 -inherit cmake-multilib
80 -
81 -DESCRIPTION="Access a working SSH implementation by means of a library"
82 -HOMEPAGE="https://www.libssh.org/"
83 -
84 -if [[ "${PV}" == *9999 ]] ; then
85 - inherit git-r3
86 - EGIT_REPO_URI="https://git.libssh.org/projects/libssh.git"
87 -else
88 - SRC_URI="https://www.libssh.org/files/$(ver_cut 1-2)/${P}.tar.xz"
89 - KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
90 -fi
91 -
92 -LICENSE="LGPL-2.1"
93 -SLOT="0/4" # subslot = soname major version
94 -IUSE="debug doc examples gcrypt gssapi libressl mbedtls pcap server +sftp static-libs test zlib"
95 -RESTRICT="!test? ( test )"
96 -# Maintainer: check IUSE-defaults at DefineOptions.cmake
97 -
98 -REQUIRED_USE="?? ( gcrypt mbedtls ) test? ( static-libs )"
99 -
100 -RDEPEND="
101 - !gcrypt? (
102 - !mbedtls? (
103 - !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
104 - libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
105 - )
106 - )
107 - gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
108 - gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
109 - mbedtls? ( net-libs/mbedtls[${MULTILIB_USEDEP}] )
110 - zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
111 -"
112 -DEPEND="${RDEPEND}
113 - doc? ( app-doc/doxygen[dot] )
114 - test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
115 -"
116 -
117 -DOCS=( AUTHORS README ChangeLog )
118 -
119 -PATCHES=(
120 - "${FILESDIR}/${PN}-0.8.0-tests.patch"
121 - "${FILESDIR}/${PN}-0.9.0-libressl.patch"
122 -)
123 -
124 -src_prepare() {
125 - cmake_src_prepare
126 -
127 - # just install the examples, do not compile them
128 - cmake_comment_add_subdirectory examples
129 -
130 - # keyfile torture test is currently broken
131 - sed -e "/torture_keyfiles/d" \
132 - -i tests/unittests/CMakeLists.txt || die
133 -
134 - # disable tests that take too long (bug #677006)
135 - if use sparc; then
136 - sed -e "/torture_threads_pki_rsa/d" -e "/torture_pki_dsa/d" \
137 - -i tests/unittests/CMakeLists.txt || die
138 - fi
139 -
140 - sed -e "/^check_include_file.*HAVE_VALGRIND_VALGRIND_H/s/^/#DONT /" \
141 - -i ConfigureChecks.cmake || die
142 -}
143 -
144 -multilib_src_configure() {
145 - local mycmakeargs=(
146 - -DWITH_NACL=OFF
147 - -DWITH_STACK_PROTECTOR=OFF
148 - -DWITH_STACK_PROTECTOR_STRONG=OFF
149 - -DWITH_DEBUG_CALLTRACE="$(usex debug)"
150 - -DWITH_DEBUG_CRYPTO="$(usex debug)"
151 - -DWITH_GCRYPT="$(usex gcrypt)"
152 - -DWITH_GSSAPI="$(usex gssapi)"
153 - -DWITH_MBEDTLS="$(usex mbedtls)"
154 - -DWITH_PCAP="$(usex pcap)"
155 - -DWITH_SERVER="$(usex server)"
156 - -DWITH_SFTP="$(usex sftp)"
157 - -DWITH_STATIC_LIB="$(usex static-libs)"
158 - -DUNIT_TESTING="$(usex test)"
159 - -DWITH_ZLIB="$(usex zlib)"
160 - )
161 -
162 - multilib_is_native_abi || mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON )
163 -
164 - cmake_src_configure
165 -}
166 -
167 -multilib_src_compile() {
168 - cmake_src_compile
169 - multilib_is_native_abi && use doc && cmake_src_compile docs
170 -}
171 -
172 -multilib_src_install() {
173 - cmake_src_install
174 - multilib_is_native_abi && use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
175 -
176 - # compatibility symlink until all consumers have been updated
177 - # to no longer use libssh_threads.so
178 - dosym libssh.so /usr/$(get_libdir)/libssh_threads.so
179 -}
180 -
181 -multilib_src_install_all() {
182 - use mbedtls && DOCS+=( README.mbedtls )
183 - einstalldocs
184 -
185 - if use examples; then
186 - docinto examples
187 - dodoc examples/*.{c,h,cpp}
188 - fi
189 -}