Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libshout/, media-libs/libshout/files/
Date: Thu, 07 Jan 2021 19:04:08
Message-Id: 1610046215.aa416a3334ac2a92532484e4441c1af2aa56412c.sam@gentoo
1 commit: aa416a3334ac2a92532484e4441c1af2aa56412c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 19:03:35 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 19:03:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa416a33
7
8 media-libs/libshout: cleanup old
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 media-libs/libshout/Manifest | 1 -
14 ...hout-2.4.1-tls-compile-with-OpenSSL-1.1.0.patch | 58 --------------------
15 ...hout-2.4.2-tls-compile-with-OpenSSL-1.1.0.patch | 61 ----------------------
16 media-libs/libshout/libshout-2.4.1-r2.ebuild | 59 ---------------------
17 4 files changed, 179 deletions(-)
18
19 diff --git a/media-libs/libshout/Manifest b/media-libs/libshout/Manifest
20 index 1394514c5f3..c1123e9c32e 100644
21 --- a/media-libs/libshout/Manifest
22 +++ b/media-libs/libshout/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST libshout-2.4.1.tar.gz 516161 BLAKE2B bedea3c043018eff4675fdb8b95e0bb8ff02a98994a4afcc76537124ebf7357f012f2e9445ebd207b576fc4166fb761d65066fe166fc8b611b96f5c5482a0e92 SHA512 4d4b958947e020de3330d49d39d59220fc89315f25f653a7456b9aa24ca9566fca30bb3d65e6348e79958656096b6b864ea8885157d24e55c8d84d6604670219
25 DIST libshout-2.4.3.tar.gz 529563 BLAKE2B 30d982fcf52507e07af23113560cfc9e43ca4ce37c286854326ea09215dc30c3c0d57320dce46dd4faec43b3d473df2f7882ad759479fb023166cec3f24327c5 SHA512 fe36778c6640e620f27504cb21234940e18a65a33f9178bf7e77d4baf854a9affc82d85db8ed8c1c8e2d80399685d8be10106fff5be1ddf76e03e2ffeeed1d34
26 DIST libshout-2.4.5.tar.gz 543991 BLAKE2B a3ceabd150413e9d1cee2118fe9576959bfa05d86e261b2574969a9a665aba3da4ac1c39db2b27d033fe587232a69a569d80362f856bba667277b5454dd170ca SHA512 290844185da16961f03434d3e341573dd6cb0139e5fa81902903021b641382d2629302d7c356bc591b35656754e07f4e44a8d9e782e092b17a051b9ae8f54341
27
28 diff --git a/media-libs/libshout/files/libshout-2.4.1-tls-compile-with-OpenSSL-1.1.0.patch b/media-libs/libshout/files/libshout-2.4.1-tls-compile-with-OpenSSL-1.1.0.patch
29 deleted file mode 100644
30 index befd16e3846..00000000000
31 --- a/media-libs/libshout/files/libshout-2.4.1-tls-compile-with-OpenSSL-1.1.0.patch
32 +++ /dev/null
33 @@ -1,58 +0,0 @@
34 -From 01fafc449f0de56743d08e7976933c49e2915bfa Mon Sep 17 00:00:00 2001
35 -From: Sebastian Andrzej Siewior <sebastian@××××××××××.cc>
36 -Date: Wed, 15 Nov 2017 12:46:25 +0000
37 -Subject: [PATCH] tls: compile with OpenSSL 1.1.0
38 -
39 -The init functions are not longer required in OpenSSL 1.1 so I dropped
40 -them.
41 -
42 -TLSv1_client_method() should not be used because it enables only the
43 -TLSv1.0 protocol. Better is to use SSLv23_client_method() which enable
44 -all the protocols including TLSv1.2. With this functions SSLv2 and SSLv3
45 -is theoretically possible but as of today those protocols are usually
46 -build-time disabled.
47 -To avoid all this OpenSSL 1.1 provides TLS_client_method() which is aim
48 -to provide to highest TLS protocol version (same as
49 -SSLv23_client_method() but it is deprecated in 1.1).
50 -
51 -Signed-off-by: Sebastian Andrzej Siewior <sebastian@××××××××××.cc>
52 ----
53 - src/tls.c | 12 ++++++++----
54 - 1 file changed, 8 insertions(+), 4 deletions(-)
55 -
56 -diff --git a/src/tls.c b/src/tls.c
57 -index 4562c7327077..e0e5c1a5f079 100644
58 ---- a/src/tls.c
59 -+++ b/src/tls.c
60 -@@ -24,6 +24,7 @@
61 - #endif
62 -
63 - #include <shout/shout.h>
64 -+#include <string.h>
65 - #include "shout_private.h"
66 -
67 - #ifndef XXX_HAVE_X509_check_host
68 -@@ -61,14 +62,17 @@ shout_tls_t *shout_tls_new(shout_t *self, sock_t socket)
69 -
70 - static inline int tls_setup(shout_tls_t *tls)
71 - {
72 -- SSL_METHOD *meth;
73 --
74 -+ const SSL_METHOD *meth;
75 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
76 - SSL_library_init();
77 - SSL_load_error_strings();
78 - SSLeay_add_all_algorithms();
79 -- SSLeay_add_ssl_algorithms();
80 -+ SSLeay_add_ssl_algorithms();
81 -
82 -- meth = TLSv1_client_method();
83 -+ meth = SSLv23_client_method();
84 -+#else
85 -+ meth = TLS_client_method();
86 -+#endif
87 - if (!meth)
88 - goto error;
89 -
90 ---
91 -2.15.0
92
93 diff --git a/media-libs/libshout/files/libshout-2.4.2-tls-compile-with-OpenSSL-1.1.0.patch b/media-libs/libshout/files/libshout-2.4.2-tls-compile-with-OpenSSL-1.1.0.patch
94 deleted file mode 100644
95 index 55f2189e15f..00000000000
96 --- a/media-libs/libshout/files/libshout-2.4.2-tls-compile-with-OpenSSL-1.1.0.patch
97 +++ /dev/null
98 @@ -1,61 +0,0 @@
99 -From 3f07c95482c15f151e10f06c89302d3700c6430f Mon Sep 17 00:00:00 2001
100 -From: Sebastian Andrzej Siewior <sebastian@××××××××××.cc>
101 -Date: Mon, 6 May 2019 13:33:48 +0200
102 -Subject: [PATCH] tls: compile with OpenSSL 1.1.0
103 -
104 -The init functions are not longer required in OpenSSL 1.1 so I dropped
105 -them.
106 -
107 -TLSv1_client_method() should not be used because it enables only the
108 -TLSv1.0 protocol. Better is to use SSLv23_client_method() which enable
109 -all the protocols including TLSv1.2. With this functions SSLv2 and SSLv3
110 -is theoretically possible but as of today those protocols are usually
111 -build-time disabled.
112 -To avoid all this OpenSSL 1.1 provides TLS_client_method() which is aim
113 -to provide to highest TLS protocol version (same as
114 -SSLv23_client_method() but it is deprecated in 1.1).
115 -
116 -Signed-off-by: Sebastian Andrzej Siewior <sebastian@××××××××××.cc>
117 -
118 -Forward-ported to libshout-2.4.2 by Lars Wendler <polynomial-c@g.o>
119 -Signed-off-by: Lars Wendler <polynomial-c@g.o>
120 ----
121 - src/tls.c | 10 +++++++---
122 - 1 file changed, 7 insertions(+), 3 deletions(-)
123 -
124 -diff --git a/src/tls.c b/src/tls.c
125 -index aed5bfc..d60fb57 100644
126 ---- a/src/tls.c
127 -+++ b/src/tls.c
128 -@@ -26,6 +26,7 @@
129 - #include <string.h>
130 -
131 - #include <shout/shout.h>
132 -+#include <string.h>
133 - #include "shout_private.h"
134 -
135 - #ifndef XXX_HAVE_X509_check_host
136 -@@ -86,14 +87,17 @@ shout_tls_t *shout_tls_new(shout_t *self, sock_t socket)
137 -
138 - static inline int tls_setup(shout_tls_t *tls)
139 - {
140 -- SSL_METHOD *meth;
141 --
142 -+ const SSL_METHOD *meth;
143 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
144 - SSL_library_init();
145 - SSL_load_error_strings();
146 - SSLeay_add_all_algorithms();
147 - SSLeay_add_ssl_algorithms();
148 -
149 -- meth = TLSv1_client_method();
150 -+ meth = SSLv23_client_method();
151 -+#else
152 -+ meth = TLS_client_method();
153 -+#endif
154 - if (!meth)
155 - goto error;
156 -
157 ---
158 -2.21.0
159 -
160
161 diff --git a/media-libs/libshout/libshout-2.4.1-r2.ebuild b/media-libs/libshout/libshout-2.4.1-r2.ebuild
162 deleted file mode 100644
163 index 345c937f291..00000000000
164 --- a/media-libs/libshout/libshout-2.4.1-r2.ebuild
165 +++ /dev/null
166 @@ -1,59 +0,0 @@
167 -# Copyright 1999-2020 Gentoo Authors
168 -# Distributed under the terms of the GNU General Public License v2
169 -
170 -EAPI=7
171 -
172 -inherit autotools multilib-minimal
173 -
174 -DESCRIPTION="library for connecting and sending data to icecast servers"
175 -HOMEPAGE="https://www.icecast.org/"
176 -SRC_URI="http://downloads.xiph.org/releases/${PN}/${P}.tar.gz"
177 -
178 -LICENSE="LGPL-2"
179 -SLOT="0"
180 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
181 -IUSE="libressl speex static-libs theora"
182 -
183 -RDEPEND="
184 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}]
185 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
186 - !libressl? ( dev-libs/openssl:0= )
187 - libressl? ( dev-libs/libressl:0= )
188 - speex? ( >=media-libs/speex-1.2_rc1-r1[${MULTILIB_USEDEP}] )
189 - theora? ( >=media-libs/libtheora-1.1.1[${MULTILIB_USEDEP}] )
190 -"
191 -DEPEND="${RDEPEND}
192 - virtual/pkgconfig
193 -"
194 -
195 -MULTILIB_WRAPPED_HEADERS=(
196 - /usr/include/shout/shout.h
197 -)
198 -
199 -DOCS=( README examples/example.c )
200 -
201 -PATCHES=(
202 - "${FILESDIR}"/${PN}-2.4.1-underlinking.patch
203 - "${FILESDIR}"/${PN}-2.4.1-tls-compile-with-OpenSSL-1.1.0.patch
204 -)
205 -
206 -src_prepare() {
207 - default
208 - eautoreconf
209 - multilib_copy_sources
210 -}
211 -
212 -multilib_src_configure() {
213 - local myeconfargs=(
214 - $(use_enable static-libs static)
215 - $(use_enable theora)
216 - $(use_enable speex)
217 - )
218 - ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
219 -}
220 -
221 -multilib_src_install_all() {
222 - einstalldocs
223 - rm -rf "${ED}"/usr/share/doc/${PN} || die
224 - find "${D}" -name '*.la' -delete || die
225 -}