Gentoo Archives: gentoo-commits

From: Stefan Strogin <stefan.strogin@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: net-libs/liboauth/, net-libs/liboauth/files/
Date: Wed, 06 Mar 2019 17:00:48
Message-Id: 1551891499.8f3b953a6fb652b2b093dc9c0860a14dd1dcc261.steils@gentoo
1 commit: 8f3b953a6fb652b2b093dc9c0860a14dd1dcc261
2 Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
3 AuthorDate: Wed Mar 6 16:56:05 2019 +0000
4 Commit: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
5 CommitDate: Wed Mar 6 16:58:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=8f3b953a
7
8 net-libs/liboauth: drop; fix no longer relevant
9
10 Current version from gentoo.git builds successfully with USE="-nss libressl".
11
12 Bug: https://bugs.gentoo.org/671178
13 Bug: https://bugs.gentoo.org/676080
14 Package-Manager: Portage-2.3.62, Repoman-2.3.12
15 Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>
16
17 net-libs/liboauth/Manifest | 5 -
18 .../files/liboauth-1.0.1-doxygen-out-of-tree.patch | 50 -------
19 .../files/liboauth-1.0.3-openssl-1.1.patch | 143 ---------------------
20 net-libs/liboauth/liboauth-1.0.3-r100.ebuild | 87 -------------
21 net-libs/liboauth/metadata.xml | 24 ----
22 5 files changed, 309 deletions(-)
23
24 diff --git a/net-libs/liboauth/Manifest b/net-libs/liboauth/Manifest
25 deleted file mode 100644
26 index 3db3624..0000000
27 --- a/net-libs/liboauth/Manifest
28 +++ /dev/null
29 @@ -1,5 +0,0 @@
30 -AUX liboauth-1.0.1-doxygen-out-of-tree.patch 2231 BLAKE2B 61523955ac500d63879dae34d5cb3507916b49edbf487ce007db7b20d2da58404161a5a6ba063cec86d9507c074a232ea58688f5de2deb6147815b9b5501cd9b SHA512 c7ac48e30ededc7079a08504ae78f421b843100dec2c8658d75ff7a3101660087de962d73ac73bf1023286b0a89c1d1b3187ba36336d1caf051b03d445571dd6
31 -AUX liboauth-1.0.3-openssl-1.1.patch 4483 BLAKE2B 4d2628448a1341cc41a676d5002c7f0f17af384fafde77687bc83235d90f4b6b853bbc9a4262fd4acaa0b04cb67d586bca308bb9c66fafbe7de1734fb39a4c1b SHA512 90ae75bbaf7296826f813df852263901ad8632579b5e5dd1e8b1edc4719d3f749ffc30e6348ffc2ddd5239de544c934382f52c4d62e90b3e655fd9630b5b4880
32 -DIST liboauth-1.0.3.tar.gz 504950 BLAKE2B 56cf10574af58995de9bf86bb7f00becb360cc899bf1ddb23804820d63ae2c7af29aa29031f68ce79a6cc441cbce27aebf5f1c9dfa029243d7732592d03620c7 SHA512 5a13818dbb3e0df76f7a3fde451eff4f90c9bebfe2076a294921af0c07c2b0789f717f0f862ac6961562d4227e016dc198ddd7efb9c7ac599c3bfbcdb2ac33fa
33 -EBUILD liboauth-1.0.3-r100.ebuild 1671 BLAKE2B 1b5c39536e46abfdbe79f389e5d54d1aeb209729c8374aa68339e9aa97371ca33be94009ad6cdcc6ecd84b2b32eb8f5cf612bc8cac5380b819ffc35cf8801024 SHA512 759e80e8e16d646fba4b0bafd3dff09525642c60eb502b8107f535a6762a54b19d863a189a87f45ddd996fff852e2b4c14481a19863ab60d56dcff687dc5c879
34 -MISC metadata.xml 879 BLAKE2B 499e638089270b30e1fc4a15008592e036c05032719e05ef06cc4c897be1bebe3d4873caacec09f6c54f65240da2582fee0776aa7e0b89508e98c4a3a668f870 SHA512 05625ec768286997f291d95e40e024c692bb8dd3be2d2eea1c3d7c90b452b9a98988a2ca43a5c6134a0e084e0a4ae40af4a00e809092edbcf3a0630781657a07
35
36 diff --git a/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch b/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch
37 deleted file mode 100644
38 index 3ed37ec..0000000
39 --- a/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch
40 +++ /dev/null
41 @@ -1,50 +0,0 @@
42 -diff -urp liboauth-1.0.1-orig/Doxyfile.in liboauth-1.0.1/Doxyfile.in
43 ---- liboauth-1.0.1-orig/Doxyfile.in 2012-11-01 04:34:49.000000000 +0000
44 -+++ liboauth-1.0.1/Doxyfile.in 2013-03-14 14:25:11.000000000 +0000
45 -@@ -45,7 +45,7 @@ PROJECT_BRIEF =
46 - # exceed 55 pixels and the maximum width should not exceed 200 pixels.
47 - # Doxygen will copy the logo to the output directory.
48 -
49 --PROJECT_LOGO = doc/libOAuth.png
50 -+PROJECT_LOGO = @top_srcdir@/doc/libOAuth.png
51 -
52 - # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
53 - # base path where the generated documentation will be put.
54 -@@ -130,7 +130,7 @@ FULL_PATH_NAMES = YES
55 - # relative paths, which will be relative from the directory where doxygen is
56 - # started.
57 -
58 --STRIP_FROM_PATH = src/
59 -+STRIP_FROM_PATH = @top_srcdir@/src/
60 -
61 - # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
62 - # the path mentioned in the documentation of a class, which tells
63 -@@ -661,8 +661,8 @@ WARN_LOGFILE =
64 - # directories like "/usr/src/myproject". Separate the files or directories
65 - # with spaces.
66 -
67 --INPUT = src/oauth.h \
68 -- doc/mainpage.dox
69 -+INPUT = @top_srcdir@/src/oauth.h \
70 -+ @top_srcdir@/doc/mainpage.dox
71 -
72 - # This tag can be used to specify the character encoding of the source files
73 - # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
74 -@@ -722,7 +722,7 @@ EXCLUDE_SYMBOLS =
75 - # directories that contain example code fragments that are included (see
76 - # the \include command).
77 -
78 --EXAMPLE_PATH = tests/
79 -+EXAMPLE_PATH = @top_srcdir@/tests/
80 -
81 - # If the value of the EXAMPLE_PATH tag contains directories, you can use the
82 - # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
83 -@@ -742,7 +742,7 @@ EXAMPLE_RECURSIVE = NO
84 - # directories that contain image that are included in the documentation (see
85 - # the \image command).
86 -
87 --IMAGE_PATH = doc/
88 -+IMAGE_PATH = @top_srcdir@/doc/
89 -
90 - # The INPUT_FILTER tag can be used to specify a program that doxygen should
91 - # invoke to filter for each input file. Doxygen will invoke the filter program
92
93 diff --git a/net-libs/liboauth/files/liboauth-1.0.3-openssl-1.1.patch b/net-libs/liboauth/files/liboauth-1.0.3-openssl-1.1.patch
94 deleted file mode 100644
95 index 829bf4a..0000000
96 --- a/net-libs/liboauth/files/liboauth-1.0.3-openssl-1.1.patch
97 +++ /dev/null
98 @@ -1,143 +0,0 @@
99 -From bf51f1f17bdfcdbf09b7edad9995ccbf17c41109 Mon Sep 17 00:00:00 2001
100 -From: Lars Wendler <polynomial-c@g.o>
101 -Date: Thu, 15 Nov 2018 12:11:11 +0100
102 -Subject: [PATCH] Fixed build with openssl-1.1
103 -
104 -https://github.com/x42/liboauth/issues/9
105 ----
106 - src/hash.c | 60 +++++++++++++++++++++++++++++++++++-------------------
107 - 1 file changed, 39 insertions(+), 21 deletions(-)
108 -
109 -diff --git a/src/hash.c b/src/hash.c
110 -index 17ff5c8..551991f 100644
111 ---- a/src/hash.c
112 -+++ b/src/hash.c
113 -@@ -362,6 +362,11 @@ looser:
114 - #include "oauth.h" // base64 encode fn's.
115 - #include <openssl/hmac.h>
116 -
117 -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
118 -+#define EVP_MD_CTX_new EVP_MD_CTX_create
119 -+#define EVP_MD_CTX_free EVP_MD_CTX_destroy
120 -+#endif
121 -+
122 - char *oauth_sign_hmac_sha1 (const char *m, const char *k) {
123 - return(oauth_sign_hmac_sha1_raw (m, strlen(m), k, strlen(k)));
124 - }
125 -@@ -386,7 +391,7 @@ char *oauth_sign_rsa_sha1 (const char *m, const char *k) {
126 - unsigned char *sig = NULL;
127 - unsigned char *passphrase = NULL;
128 - unsigned int len=0;
129 -- EVP_MD_CTX md_ctx;
130 -+ EVP_MD_CTX *md_ctx;
131 -
132 - EVP_PKEY *pkey;
133 - BIO *in;
134 -@@ -399,24 +404,31 @@ char *oauth_sign_rsa_sha1 (const char *m, const char *k) {
135 - return xstrdup("liboauth/OpenSSL: can not read private key");
136 - }
137 -
138 -+ md_ctx = EVP_MD_CTX_new();
139 -+ if (md_ctx == NULL) {
140 -+ return xstrdup("liboauth/OpenSSL: failed to allocate EVP_MD_CTX");
141 -+ }
142 -+
143 - len = EVP_PKEY_size(pkey);
144 - sig = (unsigned char*)xmalloc((len+1)*sizeof(char));
145 -
146 -- EVP_SignInit(&md_ctx, EVP_sha1());
147 -- EVP_SignUpdate(&md_ctx, m, strlen(m));
148 -- if (EVP_SignFinal (&md_ctx, sig, &len, pkey)) {
149 -+ EVP_SignInit(md_ctx, EVP_sha1());
150 -+ EVP_SignUpdate(md_ctx, m, strlen(m));
151 -+ if (EVP_SignFinal (md_ctx, sig, &len, pkey)) {
152 - char *tmp;
153 - sig[len] = '\0';
154 - tmp = oauth_encode_base64(len,sig);
155 - OPENSSL_free(sig);
156 - EVP_PKEY_free(pkey);
157 -+ EVP_MD_CTX_free(md_ctx);
158 - return tmp;
159 - }
160 -+ EVP_MD_CTX_free(md_ctx);
161 - return xstrdup("liboauth/OpenSSL: rsa-sha1 signing failed");
162 - }
163 -
164 - int oauth_verify_rsa_sha1 (const char *m, const char *c, const char *s) {
165 -- EVP_MD_CTX md_ctx;
166 -+ EVP_MD_CTX *md_ctx;
167 - EVP_PKEY *pkey;
168 - BIO *in;
169 - X509 *cert = NULL;
170 -@@ -440,10 +452,10 @@ int oauth_verify_rsa_sha1 (const char *m, const char *c, const char *s) {
171 - b64d= (unsigned char*) xmalloc(sizeof(char)*strlen(s));
172 - slen = oauth_decode_base64(b64d, s);
173 -
174 -- EVP_VerifyInit(&md_ctx, EVP_sha1());
175 -- EVP_VerifyUpdate(&md_ctx, m, strlen(m));
176 -- err = EVP_VerifyFinal(&md_ctx, b64d, slen, pkey);
177 -- EVP_MD_CTX_cleanup(&md_ctx);
178 -+ EVP_VerifyInit(md_ctx, EVP_sha1());
179 -+ EVP_VerifyUpdate(md_ctx, m, strlen(m));
180 -+ err = EVP_VerifyFinal(md_ctx, b64d, slen, pkey);
181 -+ EVP_MD_CTX_cleanup(md_ctx);
182 - EVP_PKEY_free(pkey);
183 - xfree(b64d);
184 - return (err);
185 -@@ -455,35 +467,41 @@ int oauth_verify_rsa_sha1 (const char *m, const char *c, const char *s) {
186 - */
187 - char *oauth_body_hash_file(char *filename) {
188 - unsigned char fb[BUFSIZ];
189 -- EVP_MD_CTX ctx;
190 -+ EVP_MD_CTX *ctx;
191 - size_t len=0;
192 - unsigned char *md;
193 - FILE *F= fopen(filename, "r");
194 - if (!F) return NULL;
195 -
196 -- EVP_MD_CTX_init(&ctx);
197 -- EVP_DigestInit(&ctx,EVP_sha1());
198 -+ ctx = EVP_MD_CTX_new();
199 -+ if (ctx == NULL) {
200 -+ return xstrdup("liboauth/OpenSSL: failed to allocate EVP_MD_CTX");
201 -+ }
202 -+ EVP_DigestInit(ctx,EVP_sha1());
203 - while (!feof(F) && (len=fread(fb,sizeof(char),BUFSIZ, F))>0) {
204 -- EVP_DigestUpdate(&ctx, fb, len);
205 -+ EVP_DigestUpdate(ctx, fb, len);
206 - }
207 - fclose(F);
208 - len=0;
209 - md=(unsigned char*) xcalloc(EVP_MD_size(EVP_sha1()),sizeof(unsigned char));
210 -- EVP_DigestFinal(&ctx, md,(unsigned int*) &len);
211 -- EVP_MD_CTX_cleanup(&ctx);
212 -+ EVP_DigestFinal(ctx, md,(unsigned int*) &len);
213 -+ EVP_MD_CTX_cleanup(ctx);
214 - return oauth_body_hash_encode(len, md);
215 - }
216 -
217 - char *oauth_body_hash_data(size_t length, const char *data) {
218 -- EVP_MD_CTX ctx;
219 -+ EVP_MD_CTX *ctx;
220 - size_t len=0;
221 - unsigned char *md;
222 - md=(unsigned char*) xcalloc(EVP_MD_size(EVP_sha1()),sizeof(unsigned char));
223 -- EVP_MD_CTX_init(&ctx);
224 -- EVP_DigestInit(&ctx,EVP_sha1());
225 -- EVP_DigestUpdate(&ctx, data, length);
226 -- EVP_DigestFinal(&ctx, md,(unsigned int*) &len);
227 -- EVP_MD_CTX_cleanup(&ctx);
228 -+ ctx = EVP_MD_CTX_new();
229 -+ if (ctx == NULL) {
230 -+ return xstrdup("liboauth/OpenSSL: failed to allocate EVP_MD_CTX");
231 -+ }
232 -+ EVP_DigestInit(ctx,EVP_sha1());
233 -+ EVP_DigestUpdate(ctx, data, length);
234 -+ EVP_DigestFinal(ctx, md,(unsigned int*) &len);
235 -+ EVP_MD_CTX_free(ctx);
236 - return oauth_body_hash_encode(len, md);
237 - }
238 -
239 ---
240 -2.19.1
241 -
242
243 diff --git a/net-libs/liboauth/liboauth-1.0.3-r100.ebuild b/net-libs/liboauth/liboauth-1.0.3-r100.ebuild
244 deleted file mode 100644
245 index 8674242..0000000
246 --- a/net-libs/liboauth/liboauth-1.0.3-r100.ebuild
247 +++ /dev/null
248 @@ -1,87 +0,0 @@
249 -# Copyright 1999-2018 Gentoo Authors
250 -# Distributed under the terms of the GNU General Public License v2
251 -
252 -EAPI=7
253 -
254 -DESCRIPTION="C library implementing the OAuth secure authentication protocol"
255 -HOMEPAGE="http://liboauth.sourceforge.net/"
256 -SRC_URI="mirror://sourceforge/project/${PN}/${P}.tar.gz"
257 -
258 -LICENSE="|| ( GPL-2 MIT )"
259 -SLOT="0"
260 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
261 -IUSE="bindist curl doc libressl +nss ssl"
262 -
263 -REQUIRED_USE="
264 - bindist? ( nss )
265 - libressl? ( ssl )
266 - ?? ( nss ssl )"
267 -
268 -PATCHES=(
269 - "${FILESDIR}"/${PN}-1.0.1-doxygen-out-of-tree.patch
270 - "${FILESDIR}"/${PN}-1.0.3-openssl-1.1.patch
271 -)
272 -
273 -CDEPEND="
274 - curl? ( net-misc/curl )
275 - nss? ( dev-libs/nss
276 - curl? ( || (
277 - net-misc/curl[ssl,curl_ssl_nss]
278 - net-misc/curl[-ssl]
279 - ) )
280 - )
281 - !nss? (
282 - !libressl? ( dev-libs/openssl:0=
283 - curl? ( || (
284 - net-misc/curl[ssl,curl_ssl_openssl]
285 - net-misc/curl[-ssl]
286 - ) ) )
287 - libressl? ( dev-libs/libressl:=
288 - curl? ( || (
289 - net-misc/curl[ssl,curl_ssl_libressl]
290 - net-misc/curl[-ssl]
291 - ) ) )
292 - )
293 -"
294 -
295 -RDEPEND="${CDEPEND}"
296 -
297 -DEPEND="
298 - ${CDEPEND}
299 - doc? (
300 - app-doc/doxygen
301 - media-gfx/graphviz
302 - media-fonts/freefont
303 - )
304 -"
305 -BDEPEND="
306 - virtual/pkgconfig
307 -"
308 -
309 -src_configure() {
310 - local myeconfargs=(
311 - --disable-static
312 - $(use_enable !curl curl)
313 - $(use_enable curl libcurl)
314 - $(use_enable nss)
315 - )
316 - econf "${myeconfargs[@]}"
317 -}
318 -
319 -src_compile() {
320 - default
321 -
322 - if use doc ; then
323 - # make sure fonts are found
324 - export DOTFONTPATH="${EPREFIX}"/usr/share/fonts/freefont-ttf
325 - emake dox
326 - fi
327 -}
328 -
329 -DOCS=( AUTHORS ChangeLog LICENSE.OpenSSL README )
330 -
331 -src_install() {
332 - use doc && HTML_DOCS=( doc/html/. )
333 - default
334 - find "${ED}" -name "*.la" -delete || die
335 -}
336
337 diff --git a/net-libs/liboauth/metadata.xml b/net-libs/liboauth/metadata.xml
338 deleted file mode 100644
339 index 686c8f7..0000000
340 --- a/net-libs/liboauth/metadata.xml
341 +++ /dev/null
342 @@ -1,24 +0,0 @@
343 -<?xml version="1.0" encoding="UTF-8"?>
344 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
345 -<pkgmetadata>
346 - <!-- maintainer-needed -->
347 - <use>
348 - <flag name="nss">
349 - Use Mozilla NSS (<pkg>dev-libs/nss</pkg>) as hash library; if
350 - this is disabled, <pkg>dev-libs/openssl</pkg> is used instead.
351 - </flag>
352 - <flag name="bindist">
353 - Alias for the nss USE flag, since there are license compliancy
354 - trouble when using OpenSSL.
355 - </flag>
356 - <flag name="curl">
357 - If enabled, <pkg>net-misc/curl</pkg> is used thorugh the libcurl
358 - library; if it's not, the curl command is used instead. Some
359 - features are only available when using the library, but using it
360 - as library requires matching SSL implementations.
361 - </flag>
362 - </use>
363 - <upstream>
364 - <remote-id type="sourceforge">liboauth</remote-id>
365 - </upstream>
366 -</pkgmetadata>