Gentoo Archives: gentoo-commits

From: Quentin Retornaz <gentoo@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: dev-cpp/commoncpp2/, dev-cpp/commoncpp2/files/
Date: Sun, 03 Jul 2022 17:47:36
Message-Id: 1656870419.b721a19b0276ce4dce98449e501d7eb2f8d35506.quentin@gentoo
1 commit: b721a19b0276ce4dce98449e501d7eb2f8d35506
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Sat Jul 2 23:28:36 2022 +0000
4 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
5 CommitDate: Sun Jul 3 17:46:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=b721a19b
7
8 dev-cpp/commoncpp2: Remove package
9
10 Works with libressl-3.5.x and commoncpp2-1.8.1-r4::gentoo.
11
12 Signed-off-by: orbea <orbea <AT> riseup.net>
13 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
14
15 dev-cpp/commoncpp2/Manifest | 1 -
16 dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild | 70 ----------------------
17 dev-cpp/commoncpp2/files/1.8.0-glibc212.patch | 12 ----
18 .../commoncpp2/files/1.8.1-autoconf-update.patch | 61 -------------------
19 .../files/1.8.1-configure_detect_netfilter.patch | 14 -----
20 .../files/1.8.1-fix-buffer-overflow.patch | 13 ----
21 dev-cpp/commoncpp2/files/1.8.1-fix-c++14.patch | 52 ----------------
22 dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch | 28 ---------
23 dev-cpp/commoncpp2/files/1.8.1-gnutls-3.4.patch | 36 -----------
24 dev-cpp/commoncpp2/files/1.8.1-libgcrypt.patch | 48 ---------------
25 dev-cpp/commoncpp2/files/1.8.1-libressl.patch | 15 -----
26 .../commoncpp2/files/1.8.1-parallel-build.patch | 11 ----
27 dev-cpp/commoncpp2/metadata.xml | 5 --
28 13 files changed, 366 deletions(-)
29
30 diff --git a/dev-cpp/commoncpp2/Manifest b/dev-cpp/commoncpp2/Manifest
31 deleted file mode 100644
32 index 102921c..0000000
33 --- a/dev-cpp/commoncpp2/Manifest
34 +++ /dev/null
35 @@ -1 +0,0 @@
36 -DIST commoncpp2-1.8.1.tar.gz 908678 BLAKE2B 93868286230b4b0507127627f0a1c24b4f340e4af50d7592774b57bfc7a8f1e31bacc0cee5d17b4237aac85be0265cf3aabd65708e988159daaac85b4145c398 SHA512 949823461d20429c2b0acfa22554a5a9dacc977e3ee097f34416f65d322df84fbdb27c644435c6c6caaed800347dfbe789cee7f19b39b306165c97b4f4012bfe
37
38 diff --git a/dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild b/dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild
39 deleted file mode 100644
40 index 5f50d01..0000000
41 --- a/dev-cpp/commoncpp2/commoncpp2-1.8.1-r4.ebuild
42 +++ /dev/null
43 @@ -1,70 +0,0 @@
44 -# Copyright 1999-2021 Gentoo Authors
45 -# Distributed under the terms of the GNU General Public License v2
46 -
47 -EAPI=7
48 -
49 -inherit autotools
50 -
51 -DESCRIPTION="C++ library offering portable support for system-related services"
52 -HOMEPAGE="https://www.gnu.org/software/commoncpp/"
53 -SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
54 -
55 -LICENSE="GPL-2"
56 -SLOT="0"
57 -KEYWORDS="amd64 ppc ppc64 x86"
58 -IUSE="debug doc examples gnutls ipv6 ssl static-libs"
59 -
60 -RDEPEND="
61 - sys-libs/zlib:=
62 - ssl? (
63 - gnutls? (
64 - dev-libs/libgcrypt:0=
65 - net-libs/gnutls:=
66 - )
67 - !gnutls? ( dev-libs/openssl:0= )
68 - )"
69 -DEPEND="${RDEPEND}
70 - doc? ( >=app-doc/doxygen-1.3.6 )"
71 -
72 -PATCHES=(
73 - "${FILESDIR}/1.8.1-configure_detect_netfilter.patch"
74 - "${FILESDIR}/1.8.0-glibc212.patch"
75 - "${FILESDIR}/1.8.1-autoconf-update.patch"
76 - "${FILESDIR}/1.8.1-fix-buffer-overflow.patch"
77 - "${FILESDIR}/1.8.1-parallel-build.patch"
78 - "${FILESDIR}/1.8.1-libgcrypt.patch"
79 - "${FILESDIR}/1.8.1-fix-c++14.patch"
80 - "${FILESDIR}/1.8.1-gnutls-3.4.patch"
81 - "${FILESDIR}/1.8.1-libressl.patch" # bug 674416
82 - "${FILESDIR}/1.8.1-fix-gcc9.patch" # bug 686012
83 -)
84 -
85 -src_prepare() {
86 - default
87 - eautoreconf
88 -}
89 -
90 -src_configure() {
91 - econf \
92 - $(use_enable debug) \
93 - $(use_with ipv6) \
94 - $(use_with ssl $(usex gnutls gnutls openssl)) \
95 - $(use_enable static-libs static) \
96 - $(use_with doc doxygen)
97 -}
98 -
99 -src_install() {
100 - use doc && local HTML_DOCS=( doc/html/. )
101 - default
102 -
103 - # package provides .pc files
104 - find "${D}" -name '*.la' -delete || die
105 -
106 - dodoc COPYING.addendum
107 -
108 - if use examples; then
109 - docinto examples
110 - dodoc demo/{*.cpp,*.h,*.xml,README}
111 - docompress -x /usr/share/doc/${PF}/examples
112 - fi
113 -}
114
115 diff --git a/dev-cpp/commoncpp2/files/1.8.0-glibc212.patch b/dev-cpp/commoncpp2/files/1.8.0-glibc212.patch
116 deleted file mode 100644
117 index 5132554..0000000
118 --- a/dev-cpp/commoncpp2/files/1.8.0-glibc212.patch
119 +++ /dev/null
120 @@ -1,12 +0,0 @@
121 -http://bugs.gentoo.org/334135
122 -
123 ---- a/src/applog.cpp
124 -+++ b/src/applog.cpp
125 -@@ -44,6 +44,7 @@
126 - #include <cstdio>
127 - #include <stdarg.h>
128 - #include <errno.h>
129 -+#include <sys/stat.h>
130 -
131 - // TODO sc: test if has to move up now that it is into commoncpp
132 - // NOTE: the order of inclusion is important do not move following include line
133
134 diff --git a/dev-cpp/commoncpp2/files/1.8.1-autoconf-update.patch b/dev-cpp/commoncpp2/files/1.8.1-autoconf-update.patch
135 deleted file mode 100644
136 index c64ba2f..0000000
137 --- a/dev-cpp/commoncpp2/files/1.8.1-autoconf-update.patch
138 +++ /dev/null
139 @@ -1,61 +0,0 @@
140 ---- a/configure.ac
141 -+++ b/configure.ac
142 -@@ -9,7 +9,8 @@
143 - # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
144 - # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
145 -
146 --AC_INIT(src/thread.cpp)
147 -+AC_INIT
148 -+AC_CONFIG_SRCDIR([src/thread.cpp])
149 - AC_CONFIG_MACRO_DIR([m4])
150 - m4_pattern_allow(LT_VERSION)
151 -
152 -@@ -81,17 +82,17 @@
153 - AC_SUBST(ccincludedir)
154 -
155 - AC_CONFIG_AUX_DIR(autoconf)
156 --AC_CANONICAL_SYSTEM
157 -+AC_CANONICAL_TARGET
158 - AC_PROG_CPP
159 - AC_PROG_CC
160 - AC_PROG_CXXCPP
161 - AC_PROG_CXX
162 - OST_PROG_CC_POSIX
163 - NP_PROG_MSC
164 --AC_LIBTOOL_WIN32_DLL
165 --AM_PROG_LIBTOOL
166 -+
167 -+LT_INIT([win32-dll,disable-static])
168 - AM_INIT_AUTOMAKE(commoncpp2, [$VERSION])
169 --AM_CONFIG_HEADER(config.h)
170 -+AC_CONFIG_HEADERS([config.h])
171 -
172 - AC_C_RESTRICT
173 - AC_C_VOLATILE
174 -@@ -395,10 +396,11 @@
175 - #endif
176 -
177 - ])
178 --
179 -+AC_ARG_WITH([doxygen],
180 -+ AS_HELP_STRING([--without-doxygen], [Do not build documentation]))
181 - AC_PATH_PROG(DOXYGEN, doxygen, no)
182 - AC_SUBST(DOXYGEN)
183 --AM_CONDITIONAL(DOXY, test "$DOXYGEN" != "no")
184 -+AM_CONDITIONAL([DOXY], [test "x$with_doxygen" != "xno"])
185 -
186 - AM_CONDITIONAL(GETOPT_LONG, [test ! -z "$LIBGETOPTOBJS"])
187 -
188 -@@ -408,10 +410,11 @@
189 - AC_SUBST(LIB_VERSION)
190 - AC_SUBST(LIB_MAJOR)
191 -
192 --AC_OUTPUT([src/ccgnu2-config src/libccext2.pc src/libccgnu2.pc
193 -+AC_CONFIG_FILES([src/ccgnu2-config src/libccext2.pc src/libccgnu2.pc
194 - src/Makefile w32/Makefile w32/vs2008/Makefile w32/vs2008/ccext2.vcproj w32/vs2008/ccgnu2.vcproj w32/vs2008/common.sln m4/Makefile doc/Doxyfile
195 - doc/Makefile demo/Makefile inc/Makefile inc/cc++/Makefile Makefile
196 - commoncpp2.spec tests/Makefile commoncpp2.list w32/ccgnu2.dsp w32/ccext2.dsp w32/ccgnu2.vcproj w32/ccext2.vcproj])
197 -+AC_OUTPUT
198 -
199 - # if test ! -f inc/cc++/thread.h ; then
200 - # cp ${srcdir}/inc/cc++/*.h inc/cc++ ; fi
201
202 diff --git a/dev-cpp/commoncpp2/files/1.8.1-configure_detect_netfilter.patch b/dev-cpp/commoncpp2/files/1.8.1-configure_detect_netfilter.patch
203 deleted file mode 100644
204 index b6ebf0e..0000000
205 --- a/dev-cpp/commoncpp2/files/1.8.1-configure_detect_netfilter.patch
206 +++ /dev/null
207 @@ -1,14 +0,0 @@
208 -diff --git a/m4/ost_socket.m4 b/m4/ost_socket.m4
209 -index bd9db7c..122c938 100644
210 ---- a/m4/ost_socket.m4
211 -+++ b/m4/ost_socket.m4
212 -@@ -93,6 +93,9 @@ AC_DEFUN([OST_SYS_SOCKET],[
213 - AC_CHECK_HEADERS([linux/netfilter_ipv4.h linux/netfilter_ipv6.h],,,
214 - [#ifdef HAVE_LIMITS_H
215 - #include <limits.h>
216 -+ #endif
217 -+ #ifdef HAVE_NETINET_IN_H
218 -+ #include <netinet/in.h>
219 - #endif])
220 - if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes" &&
221 - [ test "$ac_cv_header_linux_netfilter_ipv6_h" = "yes" &&
222
223 diff --git a/dev-cpp/commoncpp2/files/1.8.1-fix-buffer-overflow.patch b/dev-cpp/commoncpp2/files/1.8.1-fix-buffer-overflow.patch
224 deleted file mode 100644
225 index e68b005..0000000
226 --- a/dev-cpp/commoncpp2/files/1.8.1-fix-buffer-overflow.patch
227 +++ /dev/null
228 @@ -1,13 +0,0 @@
229 -diff --git a/src/inaddr.cpp b/src/inaddr.cpp
230 -index 5a4b9c4..50127f3 100644
231 ---- a/src/inaddr.cpp
232 -+++ b/src/inaddr.cpp
233 -@@ -333,7 +333,7 @@ void IPV4Address::setAddress(const char *host)
234 - if(ipaddr)
235 - delete[] ipaddr;
236 - ipaddr = new struct in_addr[1];
237 -- memset((void *)&ipaddr[0], 0, sizeof(ipaddr));
238 -+ memset((void *)&ipaddr[0], 0, sizeof(*ipaddr));
239 - return;
240 - }
241 -
242
243 diff --git a/dev-cpp/commoncpp2/files/1.8.1-fix-c++14.patch b/dev-cpp/commoncpp2/files/1.8.1-fix-c++14.patch
244 deleted file mode 100644
245 index cc92106..0000000
246 --- a/dev-cpp/commoncpp2/files/1.8.1-fix-c++14.patch
247 +++ /dev/null
248 @@ -1,52 +0,0 @@
249 -Fix building with C++14, which errors out due changed noexcept()
250 -semantics for dtors caught by -Werror=terminate.
251 -
252 -See also: https://bugs.gentoo.org/show_bug.cgi?id=595422
253 -
254 ---- a/src/nat.cpp
255 -+++ b/src/nat.cpp
256 -@@ -145,11 +145,11 @@
257 - "nat lookup successful",
258 - "nat address not in table",
259 - "nat not supported/implemented",
260 -- "unable to open device "NAT_DEVICE,
261 -+ "unable to open device " NAT_DEVICE,
262 - "unable to get socket name",
263 - "unable to get peer name",
264 - "unable to get socket type",
265 -- "unable to lookup, nat "NAT_SYSCALL" failed",
266 -+ "unable to lookup, nat " NAT_SYSCALL " failed",
267 - "unkown nat error code"
268 - };
269 -
270 ---- a/src/socket.cpp
271 -+++ b/src/socket.cpp
272 -@@ -2971,12 +2971,7 @@
273 -
274 - TCPStream::~TCPStream()
275 - {
276 --#ifdef CCXX_EXCEPTIONS
277 -- try { endStream(); }
278 -- catch( ... ) { if ( ! std::uncaught_exception()) throw;};
279 --#else
280 -- endStream();
281 --#endif
282 -+ endStream();
283 - }
284 -
285 - #ifdef HAVE_GETADDRINFO
286 ---- a/src/ssl.cpp
287 -+++ b/src/ssl.cpp
288 -@@ -441,12 +441,7 @@
289 -
290 - SSLStream::~SSLStream()
291 - {
292 --#ifdef CCXX_EXCEPTIONS
293 -- try { endStream(); }
294 -- catch( ...) { if ( ! std::uncaught_exception()) throw;};
295 --#else
296 - endStream();
297 --#endif
298 - }
299 -
300 - #ifdef CCXX_NAMESPACES
301
302 diff --git a/dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch b/dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch
303 deleted file mode 100644
304 index 795e441..0000000
305 --- a/dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch
306 +++ /dev/null
307 @@ -1,28 +0,0 @@
308 -https://bugs.gentoo.org/686012
309 -In file included from ../inc/cc++/thread.h:50,
310 - from thread.cpp:41:
311 -../inc/cc++/string.h:734:35: error: friend declaration of ‘std::istream& getline(std::istream&, ost::String&, char, size_t)’ specifies default arguments and isn’t a definition [-fpermissive]
312 - 734 | friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
313 - | ^~~~~~~
314 -
315 ---- a/inc/cc++/string.h
316 -+++ b/inc/cc++/string.h
317 -@@ -58,6 +58,9 @@
318 -
319 - class MemPager;
320 -
321 -+class String;
322 -+__EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
323 -+
324 - /**
325 - * This is a generic and portable string class. It uses optimized
326 - * memory allocation strategies to efficiently handle smaller string
327 -@@ -731,7 +734,7 @@
328 - * @param delim deliminator to use.
329 - * @param size optional size limitor.
330 - */
331 -- friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
332 -+ friend std::istream &getline(std::istream &is, String &str, char delim, size_t size);
333 -
334 - /**
335 - * Stream the content of our string variable directly to a C++
336
337 diff --git a/dev-cpp/commoncpp2/files/1.8.1-gnutls-3.4.patch b/dev-cpp/commoncpp2/files/1.8.1-gnutls-3.4.patch
338 deleted file mode 100644
339 index b7365b8..0000000
340 --- a/dev-cpp/commoncpp2/files/1.8.1-gnutls-3.4.patch
341 +++ /dev/null
342 @@ -1,36 +0,0 @@
343 -From ba702b6034444c2e30b0990d06e28bb2dea8ecb7 Mon Sep 17 00:00:00 2001
344 -From: Alon Bar-Lev <alon.barlev@×××××.com>
345 -Date: Sat, 4 Mar 2017 01:36:23 +0200
346 -Subject: [PATCH] ssl: support gnutls-3.4
347 -
348 -Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com>
349 ----
350 - src/ssl.cpp | 5 +----
351 - 1 file changed, 1 insertion(+), 4 deletions(-)
352 -
353 -diff --git a/src/ssl.cpp b/src/ssl.cpp
354 -index 5bf526d..38ef0a7 100644
355 ---- a/src/ssl.cpp
356 -+++ b/src/ssl.cpp
357 -@@ -344,9 +344,6 @@ ssize_t SSLStream::readData(void *target, size_t size, char separator, timeout_t
358 - #ifdef CCXX_GNUTLS
359 - bool SSLStream::getSession(void)
360 - {
361 -- const int cert_priority[3] =
362 -- {GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0};
363 --
364 - if(ssl)
365 - return true;
366 -
367 -@@ -362,7 +359,7 @@ bool SSLStream::getSession(void)
368 -
369 - gnutls_set_default_priority(ssl->session);
370 - gnutls_certificate_allocate_credentials(&ssl->xcred);
371 -- gnutls_certificate_type_set_priority(ssl->session, cert_priority);
372 -+ gnutls_priority_set_direct(ssl->session, "NORMAL:+CTYPE-OPENPGP", NULL);
373 - gnutls_credentials_set(ssl->session, GNUTLS_CRD_CERTIFICATE, ssl->xcred);
374 - gnutls_transport_set_ptr(ssl->session, (gnutls_transport_ptr)so);
375 - if(gnutls_handshake(ssl->session)) {
376 ---
377 -2.10.2
378 -
379
380 diff --git a/dev-cpp/commoncpp2/files/1.8.1-libgcrypt.patch b/dev-cpp/commoncpp2/files/1.8.1-libgcrypt.patch
381 deleted file mode 100644
382 index 08e24e1..0000000
383 --- a/dev-cpp/commoncpp2/files/1.8.1-libgcrypt.patch
384 +++ /dev/null
385 @@ -1,48 +0,0 @@
386 ---- a/src/ssl.cpp
387 -+++ b/src/ssl.cpp
388 -@@ -99,35 +99,7 @@
389 - return 0;
390 - }
391 -
392 --extern "C" {
393 -- static int _wrap_mutex_init(void **priv)
394 -- {
395 -- return _gcry_mutex_init((Mutex **)(priv));
396 -- }
397 --
398 -- static int _wrap_mutex_destroy(void **priv)
399 -- {
400 -- return _gcry_mutex_destroy((Mutex **)(priv));
401 -- }
402 --
403 -- static int _wrap_mutex_lock(void **priv)
404 -- {
405 -- return _gcry_mutex_lock((Mutex **)(priv));
406 -- }
407 --
408 -- static int _wrap_mutex_unlock(void **priv)
409 -- {
410 -- return _gcry_mutex_unlock((Mutex **)(priv));
411 -- }
412 --
413 -- static struct gcry_thread_cbs _gcry_threads =
414 -- {
415 -- GCRY_THREAD_OPTION_PTHREAD, NULL,
416 -- _wrap_mutex_init, _wrap_mutex_destroy,
417 -- _wrap_mutex_lock, _wrap_mutex_unlock
418 -- };
419 --
420 --};
421 -+GCRY_THREAD_OPTION_PTHREAD_IMPL;
422 -
423 - #endif
424 -
425 -@@ -135,7 +107,7 @@
426 - public:
427 - _ssl_global() {
428 - #ifndef WIN32
429 -- gcry_control(GCRYCTL_SET_THREAD_CBS, &_gcry_threads);
430 -+ gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
431 - #endif
432 - gnutls_global_init();
433 - }
434
435 diff --git a/dev-cpp/commoncpp2/files/1.8.1-libressl.patch b/dev-cpp/commoncpp2/files/1.8.1-libressl.patch
436 deleted file mode 100644
437 index 9779a53..0000000
438 --- a/dev-cpp/commoncpp2/files/1.8.1-libressl.patch
439 +++ /dev/null
440 @@ -1,15 +0,0 @@
441 -Upstream-Status: Submitted [bug-commoncpp@×××.org]
442 -
443 -diff --git a/src/ssl.cpp b/src/ssl.cpp
444 -index 5bf526d..3cd7040 100644
445 ---- a/src/ssl.cpp
446 -+++ b/src/ssl.cpp
447 -@@ -386,7 +386,7 @@ bool SSLStream::getSession(void)
448 - if(so == INVALID_SOCKET)
449 - return false;
450 -
451 -- ctx = SSL_CTX_new(SSLv3_client_method());
452 -+ ctx = SSL_CTX_new(SSLv23_client_method());
453 - if(!ctx) {
454 - SSL_CTX_free(ctx);
455 - return false;
456
457 diff --git a/dev-cpp/commoncpp2/files/1.8.1-parallel-build.patch b/dev-cpp/commoncpp2/files/1.8.1-parallel-build.patch
458 deleted file mode 100644
459 index 149677c..0000000
460 --- a/dev-cpp/commoncpp2/files/1.8.1-parallel-build.patch
461 +++ /dev/null
462 @@ -1,11 +0,0 @@
463 ---- a/src/Makefile.am
464 -+++ b/src/Makefile.am
465 -@@ -47,6 +47,7 @@
466 -
467 - if EXTRAS
468 - libccext2_la_LIBADD = @THREAD_LIBS@ @BASE_LIB@ @SSL_LIBS@ @ZSTREAM_LIBS@
469 -+libccext2_la_DEPENDENCIES = libccgnu2.la
470 - libccext2_la_LDFLAGS = $(RELEASE) $(SHARED_FLAGS)
471 -
472 - if GETOPT_LONG
473 -
474
475 diff --git a/dev-cpp/commoncpp2/metadata.xml b/dev-cpp/commoncpp2/metadata.xml
476 deleted file mode 100644
477 index 6f49eba..0000000
478 --- a/dev-cpp/commoncpp2/metadata.xml
479 +++ /dev/null
480 @@ -1,5 +0,0 @@
481 -<?xml version="1.0" encoding="UTF-8"?>
482 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
483 -<pkgmetadata>
484 -<!-- maintainer-needed -->
485 -</pkgmetadata>