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/opusfile/files/, media-libs/opusfile/
Date: Thu, 07 Jan 2021 11:33:39
Message-Id: 1610019203.ad06c59965c3c5d69ca9bbfb89e1acd1bd255353.sam@gentoo
1 commit: ad06c59965c3c5d69ca9bbfb89e1acd1bd255353
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 11:33:03 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 11:33:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad06c599
7
8 media-libs/opusfile: 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/opusfile/Manifest | 1 -
14 .../opusfile/files/opusfile-0.11-libressl.patch | 142 ---------------------
15 media-libs/opusfile/opusfile-0.11.ebuild | 43 -------
16 3 files changed, 186 deletions(-)
17
18 diff --git a/media-libs/opusfile/Manifest b/media-libs/opusfile/Manifest
19 index 8b094452949..9926dad15af 100644
20 --- a/media-libs/opusfile/Manifest
21 +++ b/media-libs/opusfile/Manifest
22 @@ -1,2 +1 @@
23 -DIST opusfile-0.11.tar.gz 467420 BLAKE2B e3e6ee2d1d4c7030bdd5f7ec14503d46ebbfcbc4481ab4652a0be9171d45fe2e855e0f17801cf28fda66f44496ba9f9a2996af7e5aaf5b008e4c3b14263f3160 SHA512 ec3e282310cc4f25475c27b7bc8d1652dcb25d3ac6badf87bd1b4e5397fbe106a0dab81c60d88d198003a23d8a2c9bae8b661edc9b31433effeca438ce56a349
24 DIST opusfile-0.12.tar.gz 471354 BLAKE2B d54d9b8ed011c018dc6de77afab524d2e47ba6cca69b911efacf361b41f3b59a31424cb15a778db14166815ba5e2352f33f8aa7987c30e5e14339c652558d18d SHA512 e25e6968a3183ac0628ce1000840fd6f9f636e92ba984d6a72b76fb2a98ec632d2de4c66a8e4c05ef30655c2a4a13ab35f89606fa7d79a54cfa8506543ca57af
25
26 diff --git a/media-libs/opusfile/files/opusfile-0.11-libressl.patch b/media-libs/opusfile/files/opusfile-0.11-libressl.patch
27 deleted file mode 100644
28 index 72d807623a8..00000000000
29 --- a/media-libs/opusfile/files/opusfile-0.11-libressl.patch
30 +++ /dev/null
31 @@ -1,142 +0,0 @@
32 -From 27ab318babb96e10a9f007b7c7936fd42425f488 Mon Sep 17 00:00:00 2001
33 -From: Stefan Strogin <stefan.strogin@×××××.com>
34 -Date: Thu, 27 Sep 2018 04:53:29 +0300
35 -Subject: [PATCH] http: fix compilation with LibreSSL
36 -
37 -LibreSSL defines OPENSSL_VERSION_NUMBER to 0x20000000L, but its API is
38 -compatible with OpenSSL 1.0.1.
39 -Therefore redefine OPENSSL_VERSION_NUMBER to 0x1000115fL (1.0.1u) if
40 -LibreSSL is used.
41 -
42 -Fixes: #2327
43 -
44 -http: use new API with LibreSSL >=2.7.0
45 -
46 -LibreSSL is not yet fully API compatible with OpenSSL 1.0.2 and later,
47 -However many APIs from OpenSSL 1.0.2 and 1.1 are already implemented in
48 -LibreSSL 2.7.0 and later. Old approach works in newer LibreSSL version
49 -as well, but it's not nice to force deprecated functions on LibreSSL
50 -users.
51 -
52 -Add additional conditionals for new LibreSSL versions to use the
53 -available new APIs.
54 ----
55 - src/http.c | 27 ++++++++++++++++-----------
56 - 1 file changed, 16 insertions(+), 11 deletions(-)
57 -
58 -diff --git a/src/http.c b/src/http.c
59 -index 8ba9b28..a47648f 100644
60 ---- a/src/http.c
61 -+++ b/src/http.c
62 -@@ -358,6 +358,11 @@ typedef int op_sock;
63 - # include <sys/timeb.h>
64 - # include <openssl/x509v3.h>
65 -
66 -+# if (defined(LIBRESSL_VERSION_NUMBER)&&OPENSSL_VERSION_NUMBER==0x20000000L)
67 -+# undef OPENSSL_VERSION_NUMBER
68 -+# define OPENSSL_VERSION_NUMBER 0x1000115fL
69 -+# endif
70 -+
71 - /*The maximum number of simultaneous connections.
72 - RFC 2616 says this SHOULD NOT be more than 2, but everyone on the modern web
73 - ignores that (e.g., IE 8 bumped theirs up from 2 to 6, Firefox uses 15).
74 -@@ -1530,7 +1535,7 @@ static long op_bio_retry_ctrl(BIO *_b,int _cmd,long _num,void *_ptr){
75 - return ret;
76 - }
77 -
78 --# if OPENSSL_VERSION_NUMBER<0x10100000L
79 -+# if (OPENSSL_VERSION_NUMBER<0x10100000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
80 - # define BIO_set_data(_b,_ptr) ((_b)->ptr=(_ptr))
81 - # define BIO_set_init(_b,_init) ((_b)->init=(_init))
82 - # define ASN1_STRING_get0_data ASN1_STRING_data
83 -@@ -1538,7 +1543,7 @@ static long op_bio_retry_ctrl(BIO *_b,int _cmd,long _num,void *_ptr){
84 -
85 - static int op_bio_retry_new(BIO *_b){
86 - BIO_set_init(_b,1);
87 --# if OPENSSL_VERSION_NUMBER<0x10100000L
88 -+# if (OPENSSL_VERSION_NUMBER<0x10100000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
89 - _b->num=0;
90 - # endif
91 - BIO_set_data(_b,NULL);
92 -@@ -1549,7 +1554,7 @@ static int op_bio_retry_free(BIO *_b){
93 - return _b!=NULL;
94 - }
95 -
96 --# if OPENSSL_VERSION_NUMBER<0x10100000L
97 -+# if (OPENSSL_VERSION_NUMBER<0x10100000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
98 - /*This is not const because OpenSSL doesn't allow it, even though it won't
99 - write to it.*/
100 - static BIO_METHOD op_bio_retry_method={
101 -@@ -1570,7 +1575,7 @@ static BIO_METHOD op_bio_retry_method={
102 - proxying https URL requests.*/
103 - static int op_http_conn_establish_tunnel(OpusHTTPStream *_stream,
104 - OpusHTTPConn *_conn,op_sock _fd,SSL *_ssl_conn,BIO *_ssl_bio){
105 --# if OPENSSL_VERSION_NUMBER>=0x10100000L
106 -+# if (OPENSSL_VERSION_NUMBER>=0x10100000L||LIBRESSL_VERSION_NUMBER>=0x2070000fL)
107 - BIO_METHOD *bio_retry_method;
108 - # endif
109 - BIO *retry_bio;
110 -@@ -1583,7 +1588,7 @@ static int op_http_conn_establish_tunnel(OpusHTTPStream *_stream,
111 - ret=op_http_conn_write_fully(_conn,
112 - _stream->proxy_connect.buf,_stream->proxy_connect.nbuf);
113 - if(OP_UNLIKELY(ret<0))return ret;
114 --# if OPENSSL_VERSION_NUMBER>=0x10100000L
115 -+# if (OPENSSL_VERSION_NUMBER>=0x10100000L||LIBRESSL_VERSION_NUMBER>=0x2070000fL)
116 - bio_retry_method=BIO_meth_new(BIO_TYPE_NULL,"retry");
117 - if(bio_retry_method==NULL)return OP_EFAULT;
118 - BIO_meth_set_write(bio_retry_method,op_bio_retry_write);
119 -@@ -1606,7 +1611,7 @@ static int op_http_conn_establish_tunnel(OpusHTTPStream *_stream,
120 - /*This shouldn't succeed, since we can't read yet.*/
121 - OP_ALWAYS_TRUE(SSL_connect(_ssl_conn)<0);
122 - SSL_set_bio(_ssl_conn,_ssl_bio,_ssl_bio);
123 --# if OPENSSL_VERSION_NUMBER>=0x10100000L
124 -+# if (OPENSSL_VERSION_NUMBER>=0x10100000L||LIBRESSL_VERSION_NUMBER>=0x2070000fL)
125 - BIO_meth_free(bio_retry_method);
126 - # endif
127 - /*Only now do we disable write coalescing, to allow the CONNECT
128 -@@ -1635,7 +1640,7 @@ static struct addrinfo *op_inet_pton(const char *_host){
129 - return NULL;
130 - }
131 -
132 --# if OPENSSL_VERSION_NUMBER<0x10002000L
133 -+# if (OPENSSL_VERSION_NUMBER<0x10002000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
134 - /*Match a host name against a host with a possible wildcard pattern according
135 - to the rules of RFC 6125 Section 6.4.3.
136 - Return: 0 if the pattern doesn't match, and a non-zero value if it does.*/
137 -@@ -1893,7 +1898,7 @@ static int op_http_conn_start_tls(OpusHTTPStream *_stream,OpusHTTPConn *_conn,
138 - SSL_set_tlsext_host_name(_ssl_conn,_stream->url.host);
139 - # endif
140 - skip_certificate_check=_stream->skip_certificate_check;
141 --# if OPENSSL_VERSION_NUMBER>=0x10002000L
142 -+# if (OPENSSL_VERSION_NUMBER>=0x10002000L||LIBRESSL_VERSION_NUMBER>=0x2070000fL)
143 - /*As of version 1.0.2, OpenSSL can finally do hostname checks automatically.
144 - Of course, they make it much more complicated than it needs to be.*/
145 - if(!skip_certificate_check){
146 -@@ -1956,13 +1961,13 @@ static int op_http_conn_start_tls(OpusHTTPStream *_stream,OpusHTTPConn *_conn,
147 - if(OP_UNLIKELY(ret<=0))return OP_FALSE;
148 - ssl_session=_stream->ssl_session;
149 - if(ssl_session==NULL
150 --# if OPENSSL_VERSION_NUMBER<0x10002000L
151 -+# if (OPENSSL_VERSION_NUMBER<0x10002000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
152 - ||!skip_certificate_check
153 - # endif
154 - ){
155 - ret=op_do_ssl_step(_ssl_conn,_fd,SSL_do_handshake);
156 - if(OP_UNLIKELY(ret<=0))return OP_FALSE;
157 --# if OPENSSL_VERSION_NUMBER<0x10002000L
158 -+# if (OPENSSL_VERSION_NUMBER<0x10002000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
159 - /*OpenSSL before version 1.0.2 does not do automatic hostname verification,
160 - despite the fact that we just passed it the hostname above in the call
161 - to SSL_set_tlsext_host_name().
162 -@@ -2314,7 +2319,7 @@ static int op_http_stream_open(OpusHTTPStream *_stream,const char *_url,
163 - /*Initialize the SSL library if necessary.*/
164 - if(OP_URL_IS_SSL(&_stream->url)&&_stream->ssl_ctx==NULL){
165 - SSL_CTX *ssl_ctx;
166 --# if OPENSSL_VERSION_NUMBER<0x10100000L
167 -+# if (OPENSSL_VERSION_NUMBER<0x10100000L&&LIBRESSL_VERSION_NUMBER<0x2070000fL)
168 - # if !defined(OPENSSL_NO_LOCKING)
169 - /*The documentation says SSL_library_init() is not reentrant.
170 - We don't want to add our own depenencies on a threading library, and it
171 ---
172 -2.19.1
173 -
174
175 diff --git a/media-libs/opusfile/opusfile-0.11.ebuild b/media-libs/opusfile/opusfile-0.11.ebuild
176 deleted file mode 100644
177 index f8f7409434e..00000000000
178 --- a/media-libs/opusfile/opusfile-0.11.ebuild
179 +++ /dev/null
180 @@ -1,43 +0,0 @@
181 -# Copyright 1999-2020 Gentoo Authors
182 -# Distributed under the terms of the GNU General Public License v2
183 -
184 -EAPI=7
185 -
186 -DESCRIPTION="A high-level decoding and seeking API for .opus files"
187 -HOMEPAGE="https://www.opus-codec.org/"
188 -SRC_URI="https://downloads.xiph.org/releases/opus/${P}.tar.gz"
189 -
190 -LICENSE="BSD"
191 -SLOT="0"
192 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
193 -IUSE="doc fixed-point +float +http libressl static-libs"
194 -
195 -RDEPEND="media-libs/libogg
196 - media-libs/opus
197 - http? (
198 - !libressl? ( dev-libs/openssl:0= )
199 - libressl? ( dev-libs/libressl:0= )
200 - )"
201 -
202 -DEPEND="${RDEPEND}
203 - doc? ( app-doc/doxygen )"
204 -
205 -REQUIRED_USE="^^ ( fixed-point float )"
206 -
207 -PATCHES=( "${FILESDIR}/opusfile-0.11-libressl.patch" )
208 -
209 -src_configure() {
210 - local myeconfargs=(
211 - $(use_enable doc)
212 - $(use_enable fixed-point)\
213 - $(use_enable float)
214 - $(use_enable http)
215 - $(use_enable static-libs static)
216 - )
217 - econf "${myeconfargs[@]}"
218 -}
219 -
220 -src_install() {
221 - default
222 - find "${ED}" -name "*.la" -delete || die
223 -}