pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/socket++ - add DragonFly support (positive lists f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a44951ef53a
branches:  trunk
changeset: 512595:3a44951ef53a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri May 12 07:44:26 2006 +0000

description:
- add DragonFly support (positive lists for broken platforms would
simplify this...)
- disable propolice on DragonFly
- use void (*)(int) as type of sa_handler as by SUS
- correctly annotate info usage, bump revision for this

diffstat:

 net/socket++/Makefile         |   6 ++++--
 net/socket++/distinfo         |   7 +++++--
 net/socket++/hacks.mk         |  18 ++++++++++++++++++
 net/socket++/patches/patch-aa |  10 ++++++----
 net/socket++/patches/patch-ae |  13 +++++++++++++
 net/socket++/patches/patch-af |  13 +++++++++++++
 net/socket++/patches/patch-ag |  22 ++++++++++++++++++++++
 7 files changed, 81 insertions(+), 8 deletions(-)

diffs (147 lines):

diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/Makefile
--- a/net/socket++/Makefile     Fri May 12 07:29:37 2006 +0000
+++ b/net/socket++/Makefile     Fri May 12 07:44:26 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2006/02/05 23:10:31 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2006/05/12 07:44:26 joerg Exp $
 #
 
 DISTNAME=              socket++-1.12.10
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            net
 MASTER_SITES=          http://www.linuxhacker.at/linux/downloads/src/
 
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://www.linuxhacker.at/socketxx/
 COMMENT=               C++ class library for UNIX Sockets with exception handling
 
+INFO_FILES=            # PLIST
+USE_LANGUAGES=         c c++
 USE_LIBTOOL=           YES
 USE_TOOLS+=            automake14
 AUTOCONF_REQD=          2.50
diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/distinfo
--- a/net/socket++/distinfo     Fri May 12 07:29:37 2006 +0000
+++ b/net/socket++/distinfo     Fri May 12 07:44:26 2006 +0000
@@ -1,9 +1,12 @@
-$NetBSD: distinfo,v 1.2 2005/03/27 21:05:08 wiz Exp $
+$NetBSD: distinfo,v 1.3 2006/05/12 07:44:26 joerg Exp $
 
 SHA1 (socket++-1.12.10.tar.gz) = a59a6d30803a686b65f17f3dae1a67ec601fa5e9
 RMD160 (socket++-1.12.10.tar.gz) = d8c2d4d58d36f7f1e46542a670b494982cf1849d
 Size (socket++-1.12.10.tar.gz) = 62741 bytes
-SHA1 (patch-aa) = e8f2e2d4b77edeb82402df1ca6a4492ce7c4be92
+SHA1 (patch-aa) = ce6c86c04b1f27abe8f895bb0f657997442c2fc8
 SHA1 (patch-ab) = 2fa03c7ee83dca495db14887e3c179388f71c71a
 SHA1 (patch-ac) = a7e48aa5795fd4d78bc2d133e72c51417172b6f9
 SHA1 (patch-ad) = 7f0ffbf79592b340a45f2c7868b7a6904a63c9f3
+SHA1 (patch-ae) = df00fd55c4af18ec1aaed4a1a16432146e026aff
+SHA1 (patch-af) = 5e298f495802fb7fb64785b083b1c8b51015749d
+SHA1 (patch-ag) = 403b04500cb267d70f4bb6254a1b479f181eda32
diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/hacks.mk     Fri May 12 07:44:26 2006 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: hacks.mk,v 1.1 2006/05/12 07:44:26 joerg Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "DragonFly" && ${PKGSRC_COMPILER} == "gcc"
+#
+# Workaround an ICE in the stack-smashing protection in GCC 3.4.x.
+#
+.if !defined(HAS_PROPOLICE)
+HAS_PROPOLICE!=        ( ${CC} -v 2>&1 | ${GREP} 'propolice' ) 2>/dev/null || echo no
+MAKEVARS+=     HAS_PROPOLICE
+.endif
+
+.if ${HAS_PROPOLICE} != "no"
+CFLAGS+=       -fno-stack-protector
+CXXFLAGS+=     -fno-stack-protector
+.endif
+.endif
diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/patches/patch-aa
--- a/net/socket++/patches/patch-aa     Fri May 12 07:29:37 2006 +0000
+++ b/net/socket++/patches/patch-aa     Fri May 12 07:44:26 2006 +0000
@@ -1,14 +1,16 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2006/05/12 07:44:26 joerg Exp $
 
---- socket++/local.h.orig      2003-03-14 19:02:40.000000000 +0100
+--- socket++/local.h.orig      2003-03-14 18:02:40.000000000 +0000
 +++ socket++/local.h
-@@ -90,7 +90,9 @@ extern "C" unsigned long inet_addr (cons
+@@ -90,8 +90,10 @@ extern "C" unsigned long inet_addr (cons
  extern "C" char* inet_ntoa (in_addr ina);
  
  #if !defined (__linux__)
 +#if !defined (__NetBSD__)
    extern "C" int gethostname (char* hostname, int len);
+-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
 +#endif
- #if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__))
    extern char* SYS_SIGLIST [];
  #endif
+ #endif
diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-ae     Fri May 12 07:44:26 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2006/05/12 07:44:26 joerg Exp $
+
+--- socket++/sockstream.h.orig 2006-05-12 07:22:35.000000000 +0000
++++ socket++/sockstream.h
+@@ -153,7 +153,7 @@ public:
+     msg_peek          = MSG_PEEK,
+     msg_dontroute     = MSG_DONTROUTE,
+ 
+-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__))
++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__))
+     msg_maxiovlen     = MSG_MAXIOVLEN
+ #endif
+   };
diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-af     Fri May 12 07:44:26 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2006/05/12 07:44:26 joerg Exp $
+
+--- socket++/sockstream.cpp.orig       2006-05-12 07:23:32.000000000 +0000
++++ socket++/sockstream.cpp
+@@ -245,7 +245,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
+   case EAGAIN:
+ #endif
+     return true;
diff -r 149d96a5e145 -r 3a44951ef53a net/socket++/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socket++/patches/patch-ag     Fri May 12 07:44:26 2006 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ag,v 1.1 2006/05/12 07:44:26 joerg Exp $
+
+--- socket++/sig.cpp.orig      2006-05-12 07:32:01.000000000 +0000
++++ socket++/sig.cpp
+@@ -21,7 +21,7 @@ typedef sig::phndlist phndlist;
+ siginit siginit::init;
+ sig& sig::nal = *siginit::init.s;
+ 
+-typedef void (*sighnd_type) (...);
++typedef void (*sighnd_type) (int);
+ 
+ extern "C" {
+   static void sighandler (int signo) {
+@@ -153,7 +153,7 @@ void sig::sysresume (int signo, bool set
+     sa.sa_flags = 0;
+   }
+ 
+-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__sun__) || defined(__linux__) || defined(__APPLE))
++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__sun__) || defined(__linux__) || defined(__APPLE) || defined(__DragonFly__))
+ // Early SunOS versions may have SA_INTERRUPT. I can't confirm.
+   if (set == false)
+     sa.sa_flags |= SA_INTERRUPT;



Home | Main Index | Thread Index | Old Index