[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2022-01-09 Thread Andreas Sturmlechner
commit: 80ef3604cac64727db2e1380797fc3c60d0529ca
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Jan  9 18:00:09 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Jan  9 19:11:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80ef3604

net-libs/wvstreams: Drop hopelessly outdated  ebuild

A single commit was made in 2018 and nothing after that.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../files/wvstreams-9-openssl-ldflags.patch| 10 ---
 .../wvstreams/files/wvstreams-9-soname.patch   | 11 ---
 net-libs/wvstreams/wvstreams-9.ebuild  | 93 --
 3 files changed, 114 deletions(-)

diff --git a/net-libs/wvstreams/files/wvstreams-9-openssl-ldflags.patch 
b/net-libs/wvstreams/files/wvstreams-9-openssl-ldflags.patch
deleted file mode 100644
index 0bf2bc4a7b02..
--- a/net-libs/wvstreams/files/wvstreams-9-openssl-ldflags.patch
+++ /dev/null
@@ -1,10 +0,0 @@
 a/config.ac
-+++ b/config.ac
-@@ -444,7 +444,6 @@
- if test "$with_openssl" != "no"; then
- if test "$with_openssl" != ""; then
- WV_APPEND(CPPFLAGS, [-I$with_openssl/include])
--WV_APPEND(LDFLAGS, [-L$with_openssl])
- fi
- AC_CHECK_HEADERS(openssl/ssl.h,, [with_openssl=no],
-  [#define OPENSSL_NO_KRB5])

diff --git a/net-libs/wvstreams/files/wvstreams-9-soname.patch 
b/net-libs/wvstreams/files/wvstreams-9-soname.patch
deleted file mode 100644
index 9dd0d8ab8260..
--- a/net-libs/wvstreams/files/wvstreams-9-soname.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/default.so.do
-+++ b/default.so.do
-@@ -47,7 +47,7 @@
- redo-ifchange "$OUT/$2.a"
- ln -s $2.a "$sofile"
- else
--$CXX -o "$sofile" -shared \
-+$CXX -o "$sofile" -shared -Wl,-soname,$sofile \
- $zdefs \
- $LDFLAGS \
- $obj $libdep $libs

diff --git a/net-libs/wvstreams/wvstreams-9.ebuild 
b/net-libs/wvstreams/wvstreams-9.ebuild
deleted file mode 100644
index 11e465328157..
--- a/net-libs/wvstreams/wvstreams-9.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-AT_NOELIBTOOLIZE=yes
-inherit autotools flag-o-matic git-r3 multiprocessing toolchain-funcs 
out-of-source
-
-DESCRIPTION="A network programming library in C++"
-HOMEPAGE="https://github.com/apenwarr/wvstreams;
-EGIT_REPO_URI="https://github.com/apenwarr/wvstreams;
-
-LICENSE="GPL-2"
-SLOT="0/5.0"
-KEYWORDS=""
-IUSE="+dbus debug doc pam static-libs +zlib"
-
-RDEPEND="
-   =sys-apps/dbus-1.4.20 )
-   pam? ( sys-libs/pam )
-"
-DEPEND="
-   ${RDEPEND}
-   dev-util/redo
-   virtual/pkgconfig
-   doc? ( app-doc/doxygen )
-"
-PATCHES=(
-   "${FILESDIR}"/${PN}-9-openssl-ldflags.patch
-   "${FILESDIR}"/${PN}-9-soname.patch
-)
-
-src_prepare() {
-   sed -i -e 's|-pre||g' config.ac || die
-
-   default
-
-   ln -s config.ac configure.ac || die
-   eautoreconf
-}
-
-my_src_configure() {
-   append-flags -fno-strict-aliasing
-   append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
-
-   tc-export AR CC CXX
-
-   econf \
-   $(use_enable debug) \
-   $(use_with dbus) \
-   $(use_with pam) \
-   $(use_with zlib) \
-   --cache-file="${BUILD_DIR}"/config.cache \
-   --disable-optimization \
-   --localstatedir=/var \
-   --without-qt \
-   --without-valgrind
-}
-
-my_src_compile() {
-   redo -j$(makeopts_jobs) || die
-
-   if use doc; then
-   doxygen "${S}"/Doxyfile || die
-   fi
-}
-
-my_src_test() {
-   redo -j$(makeopts_jobs) test || die
-}
-
-my_src_install() {
-   DESTDIR="${D}" redo -j$(makeopts_jobs) install || die
-
-   local lib
-   for lib in $(find "${BUILD_DIR}" -name '*.so' -type l | grep -v 
libwvstatic); do
-   insinto /usr/$(get_libdir)/pkgconfig
-   doins "${BUILD_DIR}"/pkgconfig/$(basename ${lib/.so}).pc
-   done
-
-   if use doc; then
-   #the list of files is too big for dohtml -r Docs/doxy-html/*
-   docinto html
-   dodoc -r Docs/doxy-html/*
-   fi
-
-   if ! use static-libs; then
-   find "${D}/usr/$(get_libdir)" -name '*.a' -delete || die
-   fi
-}



[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2020-01-02 Thread Jeroen Roovers
commit: ba48b6eef15db93238c4646e21e67bdae135bb3f
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Thu Jan  2 08:47:15 2020 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Thu Jan  2 08:47:29 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba48b6ee

net-libs/wvstreams: Old

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers  gentoo.org>

 net-libs/wvstreams/Manifest|   1 -
 ...ytes-should-be-enough-right-question-mark.patch |  11 ---
 .../files/wvstreams-4.6.1-fix-c++14.patch  |  36 ---
 .../wvstreams/files/wvstreams-4.6.1-glibc212.patch |  23 -
 .../files/wvstreams-4.6.1-openssl-1.0.0.patch  |  16 
 net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild   | 105 -
 net-libs/wvstreams/wvstreams-4.6.1-r4.ebuild   |  95 ---
 net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild   |  96 ---
 8 files changed, 383 deletions(-)

diff --git a/net-libs/wvstreams/Manifest b/net-libs/wvstreams/Manifest
index 579ea20214d..ac908263b97 100644
--- a/net-libs/wvstreams/Manifest
+++ b/net-libs/wvstreams/Manifest
@@ -1,3 +1,2 @@
-DIST wvstreams-4.6.1.tar.gz 1118456 BLAKE2B 
62243d9adc6ff5d01b7dfeb2ce24e8e530914e6ac4540e542dc3cee31e00d32211ad1c6085d7f5bd6e5fd85ff66e8c93afa37cec81f976590ba150f039dc8580
 SHA512 
59d64e527d86394b768b35254bf95ea59c412c0e092393ea3c84ec3202949150439bb6093bd7350b64ad4767acdb8feb38806c03de4e5cf238ed893f41db4a4a
 DIST wvstreams_4.6.1-14.debian.tar.xz 21124 BLAKE2B 
2af6ec180c3130dd7def733e5ea569fd0a81cd2c2411daca25e6042dcbe78792bafc4b13f1c1fffddb6cd66273f11c62f54b415c975cbea0af052b18ff0955d1
 SHA512 
93ea7c4fbab542bd552d6e91ae0c49a27ad8aded177ae6474943acb08d204ab31eac49b3f416b4d90a38ea697f3641c09651a64f9c40d12543d454aadf2ad9e4
 DIST wvstreams_4.6.1.orig.tar.gz 1118456 BLAKE2B 
62243d9adc6ff5d01b7dfeb2ce24e8e530914e6ac4540e542dc3cee31e00d32211ad1c6085d7f5bd6e5fd85ff66e8c93afa37cec81f976590ba150f039dc8580
 SHA512 
59d64e527d86394b768b35254bf95ea59c412c0e092393ea3c84ec3202949150439bb6093bd7350b64ad4767acdb8feb38806c03de4e5cf238ed893f41db4a4a

diff --git 
a/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
 
b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
deleted file mode 100644
index 15fb13ca633..000
--- 
a/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/utils/wvtask.cc
-+++ b/utils/wvtask.cc
-@@ -429,7 +429,7 @@
-   total = (val+1) * (size_t)1024;
-   
- if (!use_shared_stack())
--total = 1024; // enough to save the do_task stack frame
-+total = 2048; // enough to save the do_task stack frame
- 
-   // set up a stack frame for the new task.  This runs once
-   // per get_stack.

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch
deleted file mode 100644
index b2c2efd5624..000
--- a/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Fix building with C++14, which errors out due to explicit operator bool() 
conversion
-See also: https://bugs.gentoo.org/show_bug.cgi?id=594058
-
 a/streams/wvstream.cc
-+++ b/streams/wvstream.cc
-@@ -907,9 +907,9 @@
- 
- if (forceable)
- {
--  si.wants.readable = readcb;
--  si.wants.writable = writecb;
--  si.wants.isexception = exceptcb;
-+  si.wants.readable = static_cast(readcb);
-+  si.wants.writable = static_cast(writecb);
-+  si.wants.isexception = static_cast(exceptcb);
- }
- else
- {
-@@ -1019,7 +1019,7 @@
- 
- IWvStream::SelectRequest WvStream::get_select_request()
- {
--return IWvStream::SelectRequest(readcb, writecb, exceptcb);
-+return IWvStream::SelectRequest(static_cast(readcb), 
static_cast(writecb), static_cast(exceptcb));
- }
- 
- 
-@@ -1107,7 +1107,7 @@
- // inefficient, because if the alarm was expired then pre_select()
- // returned true anyway and short-circuited the previous select().
- TRACE("hello-%p\n", this);
--return !alarm_was_ticking || select(0, readcb, writecb, exceptcb);
-+return !alarm_was_ticking || select(0, static_cast(readcb), 
static_cast(writecb), static_cast(exceptcb));
- }
- 
- 

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch
deleted file mode 100644
index 38218d7213a..000
--- a/net-libs/wvstreams/files/wvstreams-4.6.1-glibc212.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-http://bugs.gentoo.org/01
-
 a/ipstreams/wvunixdgsocket.cc
-+++ b/ipstreams/wvunixdgsocket.cc
-@@ -1,5 +1,5 @@
- #include "wvunixdgsocket.h"
--#ifdef MACOS
-+#if defined(MACOS) || defined(__GNUC__)
- #include 
- #include 
- #endif
 

[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2019-08-29 Thread Stefan Strogin
commit: e363428904c1586d8667335c89aabc4ceeea768e
Author: Stefan Strogin  gentoo  org>
AuthorDate: Wed Aug 28 19:41:26 2019 +
Commit: Stefan Strogin  gentoo  org>
CommitDate: Thu Aug 29 17:04:04 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3634289

net-libs/wvstreams: add USE=libressl and patch for LibreSSL support

Drop the redundant "ssl" flag, since wvstreams is always built with SSL
support.

Closes: https://bugs.gentoo.org/687096
Closes: https://github.com/gentoo/gentoo/pull/12233
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Stefan Strogin  gentoo.org>

 .../files/wvstreams-4.6.1_p14-libressl.patch   | 114 +
 net-libs/wvstreams/wvstreams-4.6.1_p14-r1.ebuild   |   6 +-
 net-libs/wvstreams/wvstreams-9.ebuild  |   7 +-
 3 files changed, 122 insertions(+), 5 deletions(-)

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1_p14-libressl.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1_p14-libressl.patch
new file mode 100644
index 000..e897c95bf09
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1_p14-libressl.patch
@@ -0,0 +1,114 @@
+From cb8a81da928054c2e8174d671f2abc88f4f35b87 Mon Sep 17 00:00:00 2001
+From: Stefan Strogin 
+Date: Mon, 10 Jun 2019 17:07:06 +0300
+Subject: [PATCH] Fix LibreSSL support
+
+---
+ crypto/wvocsp.cc| 34 ++
+ crypto/wvx509mgr.cc | 14 ++
+ include/wvdigest.h  |  1 +
+ 3 files changed, 49 insertions(+)
+
+diff --git a/crypto/wvocsp.cc b/crypto/wvocsp.cc
+index 7d5da072..7a157f90 100644
+--- a/crypto/wvocsp.cc
 b/crypto/wvocsp.cc
+@@ -130,6 +130,7 @@ bool WvOCSPResp::signedbycert(const WvX509 ) const
+ }
+ 
+ 
++#ifndef LIBRESSL_VERSION_NUMBER
+ WvX509 WvOCSPResp::get_signing_cert() const
+ {
+ const STACK_OF(X509) *certs = OCSP_resp_get0_certs(bs);
+@@ -143,6 +144,39 @@ WvX509 WvOCSPResp::get_signing_cert() const
+ 
+ return WvX509();
+ }
++#else
++WvX509 WvOCSPResp::get_signing_cert() const
++{
++if (!bs || !sk_X509_num(bs->certs))
++return WvX509();
++
++// note: the following bit of code is taken almost verbatim from
++// ocsp_vfy.c in OpenSSL 0.9.8. Copyright and attribution should
++// properly belong to them
++
++OCSP_RESPID *id = bs->tbsResponseData->responderId;
++
++if (id->type == V_OCSP_RESPID_NAME)
++{
++X509 *x = X509_find_by_subject(bs->certs, id->value.byName);
++if (x)
++return WvX509(X509_dup(x));
++}
++
++if (id->value.byKey->length != SHA_DIGEST_LENGTH) return NULL;
++unsigned char tmphash[SHA_DIGEST_LENGTH];
++unsigned char *keyhash = id->value.byKey->data;
++for (int i = 0; i < sk_X509_num(bs->certs); i++)
++{
++X509 *x = sk_X509_value(bs->certs, i);
++X509_pubkey_digest(x, EVP_sha1(), tmphash, NULL);
++if(!memcmp(keyhash, tmphash, SHA_DIGEST_LENGTH))
++return WvX509(X509_dup(x));
++}
++
++return WvX509();
++}
++#endif /* LIBRESSL_VERSION_NUMBER */
+ 
+ 
+ WvOCSPResp::Status WvOCSPResp::get_status(const WvX509 , 
+diff --git a/crypto/wvx509mgr.cc b/crypto/wvx509mgr.cc
+index 156d3a49..e2bb3ffe 100644
+--- a/crypto/wvx509mgr.cc
 b/crypto/wvx509mgr.cc
+@@ -350,8 +350,15 @@ bool WvX509Mgr::signcert(WvX509 ) const
+ return false;
+ }
+ 
++#ifndef LIBRESSL_VERSION_NUMBER
+ uint32_t ex_flags = X509_get_extension_flags(cert);
+ uint32_t ex_kusage = X509_get_key_usage(cert);
++#else
++X509_check_purpose(cert, -1, -1);
++uint32_t ex_flags = cert->ex_flags;
++uint32_t ex_kusage = (cert->ex_flags & EXFLAG_KUSAGE) ?
++ cert->ex_kusage : UINT32_MAX;
++#endif
+ if (cert == unsignedcert.cert)
+ {
+   debug("Self Signing!\n");
+@@ -392,8 +399,15 @@ bool WvX509Mgr::signcert(WvX509 ) const
+ 
+ bool WvX509Mgr::signcrl(WvCRL ) const
+ {
++#ifndef LIBRESSL_VERSION_NUMBER
+ uint32_t ex_flags = X509_get_extension_flags(cert);
+ uint32_t ex_kusage = X509_get_key_usage(cert);
++#else
++X509_check_purpose(cert, -1, -1);
++uint32_t ex_flags = cert->ex_flags;
++uint32_t ex_kusage = (cert->ex_flags & EXFLAG_KUSAGE) ?
++ cert->ex_kusage : UINT32_MAX;
++#endif
+ if (!isok() || !crl.isok())
+ {
+ debug(WvLog::Warning, "Asked to sign CRL, but certificate or CRL (or "
+diff --git a/include/wvdigest.h b/include/wvdigest.h
+index f2eed401..e637fb49 100644
+--- a/include/wvdigest.h
 b/include/wvdigest.h
+@@ -10,6 +10,7 @@
+ #include "wvencoder.h"
+ #include 
+ #include 
++#include 
+ 
+ 
+ /**
+-- 
+2.21.0
+

diff --git a/net-libs/wvstreams/wvstreams-4.6.1_p14-r1.ebuild 
b/net-libs/wvstreams/wvstreams-4.6.1_p14-r1.ebuild
index 58f5b66846d..34a203bd673 100644
--- a/net-libs/wvstreams/wvstreams-4.6.1_p14-r1.ebuild
+++ b/net-libs/wvstreams/wvstreams-4.6.1_p14-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa 

[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2018-12-18 Thread Jeroen Roovers
commit: 7b3d714731f10129f9af881ae8fb58890d6c55f3
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Tue Dec 18 13:49:06 2018 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Tue Dec 18 13:49:24 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b3d7147

Revert "net-libs/wvstreams: OpenSSL 1.1 compatibility"

This reverts commit 875f94f85a365c3fd22f07fe22634afb49e9febd.

Signed-off-by: Jeroen Roovers  gentoo.org>

 .../files/wvstreams-4.6.1-openssl-1.1.patch| 555 -
 net-libs/wvstreams/wvstreams-4.6.1-r6.ebuild   |  96 
 net-libs/wvstreams/wvstreams-9.ebuild  |   2 +-
 3 files changed, 1 insertion(+), 652 deletions(-)

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.1.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.1.patch
deleted file mode 100644
index 88d854e2755..000
--- a/net-libs/wvstreams/files/wvstreams-4.6.1-openssl-1.1.patch
+++ /dev/null
@@ -1,555 +0,0 @@
-From 5506a74e1b033776ad441b4554716cdcfa88fe03 Mon Sep 17 00:00:00 2001
-From: Reiner Herrmann 
-Date: Sat, 28 Jul 2018 23:26:17 +0200
-Subject: [PATCH] Port to OpenSSL 1.1
-

- crypto/wvcrl.cc   | 38 +-
- crypto/wvdiffiehellman.cc | 30 +++---
- crypto/wvdigest.cc| 16 
- crypto/wvocsp.cc  | 35 +--
- crypto/wvx509.cc  | 31 ---
- crypto/wvx509mgr.cc   | 27 ---
- include/wvdiffiehellman.h |  2 +-
- include/wvdigest.h| 14 ++
- include/wvtripledes.h | 10 +-
- 9 files changed, 93 insertions(+), 110 deletions(-)
-
-diff --git a/crypto/wvcrl.cc b/crypto/wvcrl.cc
-index fa00c760..880ad85d 100644
 a/crypto/wvcrl.cc
-+++ b/crypto/wvcrl.cc
-@@ -357,31 +357,19 @@ bool WvCRL::isrevoked(WvStringParm serial_number) const
-   ASN1_INTEGER *serial = serial_to_int(serial_number);
-   if (serial)
-   {
--  X509_REVOKED mayberevoked;
--  mayberevoked.serialNumber = serial;
--  if (crl->crl->revoked)
--  {
--  int idx = sk_X509_REVOKED_find(crl->crl->revoked, 
-- );
--  ASN1_INTEGER_free(serial);
--  if (idx >= 0)
--{
--debug("Certificate is revoked.\n");
--  return true;
--}
--else
--{
--debug("Certificate is not revoked.\n");
--  return false;
--}
--  }
--  else
--  {
--  ASN1_INTEGER_free(serial);
--  debug("CRL does not have revoked list.\n");
--return false;
--  }
--  
-+  X509_REVOKED *revoked_entry = NULL;
-+  int idx = X509_CRL_get0_by_serial(crl, _entry, serial);
-+  ASN1_INTEGER_free(serial);
-+  if (idx >= 1 || revoked_entry)
-+{
-+debug("Certificate is revoked.\n");
-+  return true;
-+}
-+else
-+{
-+debug("Certificate is not revoked.\n");
-+  return false;
-+}
-   }
-   else
-   debug(WvLog::Warning, "Can't convert serial number to ASN1 format. "
-diff --git a/crypto/wvdiffiehellman.cc b/crypto/wvdiffiehellman.cc
-index 7c0bf329..15cd1040 100644
 a/crypto/wvdiffiehellman.cc
-+++ b/crypto/wvdiffiehellman.cc
-@@ -39,24 +39,25 @@ WvDiffieHellman::WvDiffieHellman(const unsigned char 
*_key, int _keylen,
- {
- int problems;
- int check;
--{
-+
-   info = DH_new();
--  info->p = BN_bin2bn(_key, _keylen, NULL);
-+  BIGNUM *p = BN_bin2bn(_key, _keylen, NULL);
- //info->p->top = 0;
- //info->p->dmax = _keylen * 8 / BN_BITS2;
- //info->p->neg = 0;
- //info->p->flags = 0;
- 
--  info->g = BN_new();
--  BN_set_word(info->g, generator);
-+  BIGNUM *g = BN_new();
-+  BN_set_word(g, generator);
- //info->g->d = 
- //info->g->top = 0;
- //info->g->dmax = 1;
- //info->g->neg = 0;
- //info->g->flags = 0;
--}
- 
--check = BN_mod_word(info->p, 24);
-+  DH_set0_pqg(info, p, NULL, g);
-+
-+check = BN_mod_word(p, 24);
- DH_check(info, );
- if (problems & DH_CHECK_P_NOT_PRIME)
-   log(WvLog::Error, "Using a composite number for authentication.\n");
-@@ -64,7 +65,7 @@ WvDiffieHellman::WvDiffieHellman(const unsigned char *_key, 
int _keylen,
-   log(WvLog::Error,"Using an unsafe prime number for authentication.\n");
- if (problems & DH_NOT_SUITABLE_GENERATOR)
-   log(WvLog::Error, "Can you just use 2 instead of %s (%s)!!\n",
--  BN_bn2hex(info->g), check);
-+  BN_bn2hex(g), check);
- if (problems & DH_UNABLE_TO_CHECK_GENERATOR)
-   log(WvLog::Notice, "Using a strange argument 

[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2017-07-27 Thread Jeroen Roovers
commit: 5a27b2e7330527a3b1020be3a43ad021197226dc
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Thu Jul 27 13:25:56 2017 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Thu Jul 27 13:25:56 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a27b2e7

net-libs/wvstreams: Add patch for bug #614810.

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 ...ytes-should-be-enough-right-question-mark.patch | 11 +++
 net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild   | 96 ++
 2 files changed, 107 insertions(+)

diff --git 
a/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
 
b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
new file mode 100644
index 000..15fb13ca633
--- /dev/null
+++ 
b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch
@@ -0,0 +1,11 @@
+--- a/utils/wvtask.cc
 b/utils/wvtask.cc
+@@ -429,7 +429,7 @@
+   total = (val+1) * (size_t)1024;
+   
+ if (!use_shared_stack())
+-total = 1024; // enough to save the do_task stack frame
++total = 2048; // enough to save the do_task stack frame
+ 
+   // set up a stack frame for the new task.  This runs once
+   // per get_stack.

diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild 
b/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild
new file mode 100644
index 000..8d33d4bb718
--- /dev/null
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils flag-o-matic toolchain-funcs versionator
+
+DESCRIPTION="A network programming library in C++"
+HOMEPAGE="http://alumnit.ca/wiki/?WvStreams;
+SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="pam doc +ssl +dbus debug boost"
+
+#Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
+RESTRICT="test"
+
+#QA Fail: xplc is compiled as a part of wvstreams.
+#It'll take a larger patching effort to get it extracted, since upstream 
integrated it
+#more tightly this time. Probably for the better since upstream xplc seems 
dead.
+
+RDEPEND="
+   =sys-apps/dbus-1.4.20 )
+   pam? ( virtual/pam )
+"
+DEPEND="
+   ${RDEPEND}
+   virtual/pkgconfig
+   doc? ( app-doc/doxygen )
+   boost? ( >=dev-libs/boost-1.34.1:= )
+"
+DOCS="ChangeLog README*"
+PATCHES=(
+   "${FILESDIR}"/${P}-autoconf.patch
+   "${FILESDIR}"/${P}-fix-c++14.patch
+   "${FILESDIR}"/${P}-gcc47.patch
+   "${FILESDIR}"/${P}-glibc212.patch
+   "${FILESDIR}"/${P}-openssl-1.0.0.patch
+   "${FILESDIR}"/${P}-parallel-make.patch
+   "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
+   "${FILESDIR}"/${P}-2048-bytes-should-be-enough-right-question-mark.patch
+)
+
+src_prepare() {
+   default
+
+   eautoreconf
+}
+
+src_configure() {
+   append-flags -fno-strict-aliasing
+   append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375
+
+   tc-export AR CXX
+
+   use boost && export ac_cv_header_tr1_functional=no
+
+   econf \
+   $(use_enable debug) \
+   $(use_with dbus) \
+   $(use_with pam) \
+   --cache-file=${T}/config.cache \
+   --disable-optimization \
+   --localstatedir=/var \
+   --with-openssl \
+   --with-zlib \
+   --without-qt \
+   --without-tcl \
+   --without-valgrind
+}
+
+src_compile() {
+   default
+
+   if use doc; then
+   doxygen || die
+   fi
+}
+
+src_test() {
+   emake test
+}
+
+src_install() {
+   default
+
+   if use doc; then
+   #the list of files is too big for dohtml -r Docs/doxy-html/*
+   docinto html
+   dodoc -r Docs/doxy-html/*
+   fi
+}



[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2017-07-26 Thread Jeroen Roovers
commit: 7442974f018c4f58ca1a25228ab1f01170ff441e
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Wed Jul 26 19:10:18 2017 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Wed Jul 26 19:10:44 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7442974f

net-libs/wvstreams: EAPI bump.

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 .../files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch| 11 
 .../wvstreams/files/wvstreams-4.6.1-autoconf.patch | 31 ++
 net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild   |  2 +-
 ...s-4.6.1-r3.ebuild => wvstreams-4.6.1-r4.ebuild} | 68 +-
 4 files changed, 72 insertions(+), 40 deletions(-)

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch
new file mode 100644
index 000..1084a5be21e
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-_DEFAULT_SOURCE.patch
@@ -0,0 +1,11 @@
+--- a/wvrules.mk
 b/wvrules.mk
+@@ -83,7 +83,7 @@
+ 
+ INCFLAGS=$(addprefix -I,$(WVSTREAMS_INC) $(XPATH))
+ CPPFLAGS+=$(INCFLAGS) \
+-  -D_BSD_SOURCE -D_GNU_SOURCE $(OSDEFINE) \
++  -D_DEFAULT_SOURCE $(OSDEFINE) \
+   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
+   -DUNSTABLE
+ 

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch
new file mode 100644
index 000..a9b9a5ac90c
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-autoconf.patch
@@ -0,0 +1,31 @@
+--- a/configure.ac
 b/configure.ac
+@@ -641,6 +641,8 @@
+ 
+ AC_CONFIG_HEADERS(include/wvautoconf.h)
+ 
++AC_CONFIG_SUBDIRS(argp)
++
+ AC_OUTPUT
+ 
+ # Now convert PACKAGE_* macros into WVPACKAGE_* in include/wvautoconf.h
+--- a/argp/configure.ac
 b/argp/configure.ac
+@@ -4,7 +4,7 @@
+ AC_PREREQ(2.54)
+ AC_INIT(argp-ba.c)
+ AM_INIT_AUTOMAKE(argp, standalone-1.3)
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ 
+ # GNU libc defaults to supplying the ISO C library functions only. The
+ # _GNU_SOURCE define enables these extensions, in particular we want
+@@ -18,7 +18,7 @@
+ AC_PROG_RANLIB
+ AC_PROGRAM_CHECK(AR,ar,ar,:)
+ AC_PROGRAM_CHECK(AR,gar,gar,:)
+-AM_PROG_CC_STDC
++AC_PROG_CC
+ 
+ AC_SUBST(AR)
+ 

diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild 
b/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
index af37675388d..dad2d2f206a 100644
--- a/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
@@ -23,7 +23,7 @@ RESTRICT="test"
 RDEPEND="sys-libs/readline:0=
sys-libs/zlib
dbus? ( >=sys-apps/dbus-1.4.20 )
-   dev-libs/openssl:0=
+   https://wvstreams.googlecode.com/files/${P}.tar.gz;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="alpha amd64 hppa ppc sparc x86"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
 IUSE="pam doc +ssl +dbus debug boost"
 
 #Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL!
@@ -20,45 +20,34 @@ RESTRICT="test"
 #It'll take a larger patching effort to get it extracted, since upstream 
integrated it
 #more tightly this time. Probably for the better since upstream xplc seems 
dead.
 
-RDEPEND="sys-libs/readline:0=
+RDEPEND="
+   =sys-apps/dbus-1.4.20 )
-   dev-libs/openssl:0=
-   pam? ( virtual/pam )"
-DEPEND="${RDEPEND}
+   pam? ( virtual/pam )
+"
+DEPEND="
+   ${RDEPEND}
virtual/pkgconfig
doc? ( app-doc/doxygen )
-   boost? ( >=dev-libs/boost-1.34.1:= )"
-
+   boost? ( >=dev-libs/boost-1.34.1:= )
+"
 DOCS="ChangeLog README*"
-
-pkg_pretend() {
-   [[ ${MERGE_TYPE} == "binary" ]] && return
-
-   if ! use boost && ! version_is_at_least 4.1 "$(gcc-fullversion)"; then
-   eerror "This package requires the active gcc to be at least 
version 4.1"
-   eerror "or USE=boost must be installed."
-   die "Please activate >=sys-devel/gcc-4.1 with gcc-config."
-   fi
-}
+PATCHES=(
+   "${FILESDIR}"/${P}-autoconf.patch
+   "${FILESDIR}"/${P}-fix-c++14.patch
+   "${FILESDIR}"/${P}-gcc47.patch
+   "${FILESDIR}"/${P}-glibc212.patch
+   "${FILESDIR}"/${P}-openssl-1.0.0.patch
+   "${FILESDIR}"/${P}-parallel-make.patch
+   "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
+)
 
 src_prepare() {
-   epatch \
-   "${FILESDIR}"/${P}-parallel-make.patch \
-   "${FILESDIR}"/${P}-openssl-1.0.0.patch \
-   "${FILESDIR}"/${P}-glibc212.patch \
-   "${FILESDIR}"/${P}-gcc47.patch \
-   "${FILESDIR}"/${P}-fix-c++14.patch
-
-   sed -i \
-   -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
-   -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
-   argp/configure.ac || die
+   default
 
eautoreconf
-   pushd argp >/dev/null
-   eautoreconf
-   popd >/dev/null
 }
 
 src_configure() {
@@ -70,15 +59,16 @@ src_configure() {
use boost && export 

[gentoo-commits] repo/gentoo:master commit in: net-libs/wvstreams/files/, net-libs/wvstreams/

2016-09-18 Thread David Seifert
commit: cf1f89cf9056c80498a07796b28092671688d316
Author: David Seifert  gentoo  org>
AuthorDate: Sun Sep 18 13:07:37 2016 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Sep 18 13:08:10 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf1f89cf

net-libs/wvstreams: Allow for compiling with GCC 6

Gentoo-bug: 594058
* Add missing slot operators

Package-Manager: portage-2.3.0

 .../files/wvstreams-4.6.1-fix-c++14.patch  | 36 ++
 net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild   |  9 +++---
 2 files changed, 41 insertions(+), 4 deletions(-)

diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch 
b/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch
new file mode 100644
index ..b2c2efd
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-fix-c++14.patch
@@ -0,0 +1,36 @@
+Fix building with C++14, which errors out due to explicit operator bool() 
conversion
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594058
+
+--- a/streams/wvstream.cc
 b/streams/wvstream.cc
+@@ -907,9 +907,9 @@
+ 
+ if (forceable)
+ {
+-  si.wants.readable = readcb;
+-  si.wants.writable = writecb;
+-  si.wants.isexception = exceptcb;
++  si.wants.readable = static_cast(readcb);
++  si.wants.writable = static_cast(writecb);
++  si.wants.isexception = static_cast(exceptcb);
+ }
+ else
+ {
+@@ -1019,7 +1019,7 @@
+ 
+ IWvStream::SelectRequest WvStream::get_select_request()
+ {
+-return IWvStream::SelectRequest(readcb, writecb, exceptcb);
++return IWvStream::SelectRequest(static_cast(readcb), 
static_cast(writecb), static_cast(exceptcb));
+ }
+ 
+ 
+@@ -1107,7 +1107,7 @@
+ // inefficient, because if the alarm was expired then pre_select()
+ // returned true anyway and short-circuited the previous select().
+ TRACE("hello-%p\n", this);
+-return !alarm_was_ticking || select(0, readcb, writecb, exceptcb);
++return !alarm_was_ticking || select(0, static_cast(readcb), 
static_cast(writecb), static_cast(exceptcb));
+ }
+ 
+ 

diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild 
b/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
index 394d4d0..33711e8 100644
--- a/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -21,10 +21,10 @@ RESTRICT="test"
 #It'll take a larger patching effort to get it extracted, since upstream 
integrated it
 #more tightly this time. Probably for the better since upstream xplc seems 
dead.
 
-RDEPEND="sys-libs/readline
+RDEPEND="sys-libs/readline:0=
sys-libs/zlib
dbus? ( >=sys-apps/dbus-1.4.20 )
-   dev-libs/openssl:0
+   dev-libs/openssl:0=
pam? ( virtual/pam )"
 DEPEND="${RDEPEND}
virtual/pkgconfig
@@ -48,7 +48,8 @@ src_prepare() {
"${FILESDIR}"/${P}-parallel-make.patch \
"${FILESDIR}"/${P}-openssl-1.0.0.patch \
"${FILESDIR}"/${P}-glibc212.patch \
-   "${FILESDIR}"/${P}-gcc47.patch
+   "${FILESDIR}"/${P}-gcc47.patch \
+   "${FILESDIR}"/${P}-fix-c++14.patch
 
sed -i \
-e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \