pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/socket++ socket++: fix assorted bitrot



details:   https://anonhg.NetBSD.org/pkgsrc/rev/128bb924b21a
branches:  trunk
changeset: 377957:128bb924b21a
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Apr 25 16:17:48 2022 +0000

description:
socket++: fix assorted bitrot

diffstat:

 net/socket++/distinfo                        |   7 ++++---
 net/socket++/patches/patch-aa                |   4 ++--
 net/socket++/patches/patch-af                |  28 ++++++++++++++++++++++++----
 net/socket++/patches/patch-doc_socket++.texi |  23 +++++++++++++++++++++++
 4 files changed, 53 insertions(+), 9 deletions(-)

diffs (107 lines):

diff -r 024656280303 -r 128bb924b21a net/socket++/distinfo
--- a/net/socket++/distinfo     Mon Apr 25 16:09:53 2022 +0000
+++ b/net/socket++/distinfo     Mon Apr 25 16:17:48 2022 +0000
@@ -1,13 +1,14 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 11:06:57 nia Exp $
+$NetBSD: distinfo,v 1.9 2022/04/25 16:17:48 tnn Exp $
 
 BLAKE2s (socket++-1.12.10.tar.gz) = d09b25892fbd45493a08daf416cee43f6ea349560ead28e9d3c213ce46f803bf
 SHA512 (socket++-1.12.10.tar.gz) = 297dfc7283e8fcfb717679fa2e8b02c51115e6bda1586badead35bc4a37d0defeef3b198bc14e64b59a74cbd3fe61b9496516205e7d5bfa6f5d65890d629db6c
 Size (socket++-1.12.10.tar.gz) = 62741 bytes
-SHA1 (patch-aa) = 7d59c11daba6cd05c7e9bbff032dfb85532e06e4
+SHA1 (patch-aa) = 6fc10ecc5e4a78d452bd4264fea0b88628de360f
 SHA1 (patch-ab) = 2fa03c7ee83dca495db14887e3c179388f71c71a
 SHA1 (patch-ac) = a7e48aa5795fd4d78bc2d133e72c51417172b6f9
 SHA1 (patch-ad) = 7f0ffbf79592b340a45f2c7868b7a6904a63c9f3
 SHA1 (patch-ae) = df00fd55c4af18ec1aaed4a1a16432146e026aff
-SHA1 (patch-af) = 5e298f495802fb7fb64785b083b1c8b51015749d
+SHA1 (patch-af) = 11a301e5b4ce55e048dbafbf41465a3513d96bb1
 SHA1 (patch-ag) = 403b04500cb267d70f4bb6254a1b479f181eda32
 SHA1 (patch-configure.in) = f1e1f1466553f619254f477bf9343bdeb2aaeec1
+SHA1 (patch-doc_socket++.texi) = 53b6d2d01b99252ba19eddcd67516034ff8f4850
diff -r 024656280303 -r 128bb924b21a net/socket++/patches/patch-aa
--- a/net/socket++/patches/patch-aa     Mon Apr 25 16:09:53 2022 +0000
+++ b/net/socket++/patches/patch-aa     Mon Apr 25 16:17:48 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2009/04/07 18:05:08 hasso Exp $
+$NetBSD: patch-aa,v 1.4 2022/04/25 16:17:48 tnn Exp $
 
 --- socket++/local.h.orig      2003-03-14 18:02:40.000000000 +0000
 +++ socket++/local.h
@@ -6,7 +6,7 @@
  extern "C" char* inet_ntoa (in_addr ina);
  
  #if !defined (__linux__)
-+#if !defined (__NetBSD__) && !defined (__DragonFly__)
++#if !defined (__NetBSD__) && !defined (__DragonFly__) && !defined(__sun)
    extern "C" int gethostname (char* hostname, int len);
 -#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
 +#endif
diff -r 024656280303 -r 128bb924b21a net/socket++/patches/patch-af
--- a/net/socket++/patches/patch-af     Mon Apr 25 16:09:53 2022 +0000
+++ b/net/socket++/patches/patch-af     Mon Apr 25 16:17:48 2022 +0000
@@ -1,13 +1,33 @@
-$NetBSD: patch-af,v 1.1 2006/05/12 07:44:26 joerg Exp $
+$NetBSD: patch-af,v 1.2 2022/04/25 16:17:48 tnn Exp $
 
---- socket++/sockstream.cpp.orig       2006-05-12 07:23:32.000000000 +0000
+--- socket++/sockstream.cpp.orig       2003-03-14 18:26:07.000000000 +0000
 +++ socket++/sockstream.cpp
-@@ -245,7 +245,7 @@ bool sockerr::benign () const
+@@ -71,6 +71,10 @@
+ #if defined(__APPLE__)
+ #typedef int socklen_t;
+ #endif
++#if defined(__sun)
++#include <sys/filio.h>
++#include <sys/sockio.h>
++#endif
+ 
+ #ifndef WIN32
+       EXTERN_C_BEGIN
+@@ -200,7 +204,7 @@ bool sockerr::op () const
+   case EHOSTDOWN:
+   case EHOSTUNREACH:
+   case ENOTEMPTY:
+-#     if !defined(__linux__) // LN
++#     if defined(EPROCLIM)
+   case EPROCLIM:
+ #     endif
+   case EUSERS:
+@@ -245,7 +249,7 @@ bool sockerr::benign () const
    case EWOULDBLOCK:
  // On FreeBSD (and probably on Linux too) 
  // EAGAIN has the same value as EWOULDBLOCK
 -#if !defined(__linux__) && !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) // LN
-+#if !defined(__linux__) && !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)) // LN
++#if !defined(__linux__) && !defined(__sun) && !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)) // LN
    case EAGAIN:
  #endif
      return true;
diff -r 024656280303 -r 128bb924b21a net/socket++/patches/patch-doc_socket++.texi
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-doc_socket++.texi      Mon Apr 25 16:17:48 2022 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-doc_socket++.texi,v 1.1 2022/04/25 16:17:48 tnn Exp $
+
+socket++.texi:2337: raising the section level of @subsection which is too low
+socket++.texi:2452: raising the section level of @subsection which is too low
+
+--- doc/socket++.texi.orig     2002-11-25 12:31:56.000000000 +0000
++++ doc/socket++.texi
+@@ -2334,7 +2334,6 @@ an @code{echo} object is a smart pointer
+ 
+ @end table
+ 
+-@subsection tsecho.C
+ @example
+ // echo server. Serves clients at port 4000.
+ #include <echo.h>
+@@ -2449,7 +2448,6 @@ recipient previously established through
+ 
+ @end table
+ 
+-@subsection tcsmtp.C
+ @example
+ // smtp client.
+ // The president sends a message to gs4t@@virginia.edu.



Home | Main Index | Thread Index | Old Index