summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-05-04 09:57:41 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-05-04 09:57:41 +0000
commita473f051c5a8a2276e8f11103acff812cd438035 (patch)
treee19fa40ff791afea1da0949b016c47c035bb30e3 /net-libs
parentDont bother checking for config anymore #219495 by Davide Pesavento. Load su... (diff)
downloadhistorical-a473f051c5a8a2276e8f11103acff812cd438035.tar.gz
historical-a473f051c5a8a2276e8f11103acff812cd438035.tar.bz2
historical-a473f051c5a8a2276e8f11103acff812cd438035.zip
Fix server busy loop with 64bit architectures. Fix parallel make. Fix building with GCC 4.3 wrt #218831, thanks to Peter Alfredsen. Also, run full eautoreconf to fix obscure compile failure where _init gets redefined.
Package-Manager: portage-2.1.5_rc6
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libcapsinetwork/ChangeLog13
-rw-r--r--net-libs/libcapsinetwork/Manifest7
-rw-r--r--net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-64bit.patch20
-rw-r--r--net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-gcc43.patch44
-rw-r--r--net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-parallel.patch12
-rw-r--r--net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild26
6 files changed, 110 insertions, 12 deletions
diff --git a/net-libs/libcapsinetwork/ChangeLog b/net-libs/libcapsinetwork/ChangeLog
index 72c0bd9a85ed..412e0655ab76 100644
--- a/net-libs/libcapsinetwork/ChangeLog
+++ b/net-libs/libcapsinetwork/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-libs/libcapsinetwork
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libcapsinetwork/ChangeLog,v 1.14 2007/05/15 14:09:45 bangert Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libcapsinetwork/ChangeLog,v 1.15 2008/05/04 09:57:41 drac Exp $
+
+ 04 May 2008; Samuli Suominen <drac@gentoo.org>
+ +files/libcapsinetwork-0.3.0-64bit.patch,
+ +files/libcapsinetwork-0.3.0-gcc43.patch,
+ +files/libcapsinetwork-0.3.0-parallel.patch, libcapsinetwork-0.3.0.ebuild:
+ Fix server busy loop with 64bit architectures. Fix parallel make. Fix
+ building with GCC 4.3 wrt #218831, thanks to Peter Alfredsen. Also, run
+ full eautoreconf to fix obscure compile failure where _init gets
+ redefined.
15 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
add <herd>no-herd</herd>
diff --git a/net-libs/libcapsinetwork/Manifest b/net-libs/libcapsinetwork/Manifest
index 39f3b3708fa5..caf4aa6400cd 100644
--- a/net-libs/libcapsinetwork/Manifest
+++ b/net-libs/libcapsinetwork/Manifest
@@ -1,4 +1,7 @@
+AUX libcapsinetwork-0.3.0-64bit.patch 665 RMD160 b3e078f1e779ca57e9a4349cc67d14c7c721e2ff SHA1 055bbe040535fead1952c28ad84667b790cad662 SHA256 6f18d966dd27c8fbc23dd5e2575f130a2159b9c0d6e090095fdfcbeadebe25ef
+AUX libcapsinetwork-0.3.0-gcc43.patch 1591 RMD160 f5651bb8cee262a6a3816445090e26c8e8d0faaa SHA1 d15f7248e7878864fab3ae96d732b04646197f26 SHA256 264af5499cddc5da929c648b65fadad7d22d0f11b2e907e8fff6e1be40e12b0b
+AUX libcapsinetwork-0.3.0-parallel.patch 490 RMD160 0c5301ffb75f3116cdd1b607f8d373773fe86eec SHA1 7fc9e65569b5c44c2945cd6c4ba664f35255f4bc SHA256 432d2a795e568767f674a4a1db88a4a4a9982579ec3e1e200d41fb77b9681b3b
DIST libcapsinetwork-0.3.0.tar.bz2 189244 RMD160 67595c44154b1d7eb4411725dac3e78e6bb5beb5 SHA1 ddd4ddf6b5c96719e72722dff099c119a4e736b8 SHA256 3177f82d08c125aef1cf1c3d7aaf222cdc8605ec38d6dae9deeaffcffc72e3eb
-EBUILD libcapsinetwork-0.3.0.ebuild 695 RMD160 cc87c974a2bc45a7c1fefc3cde070fdaed6dbfef SHA1 7ff0a76d1041cee889ec67bfa220cde0fc1a9aee SHA256 294c9187ad557f8c48c46576da34a873999edf6adf60245c6724e371157adf6f
-MISC ChangeLog 1530 RMD160 dfb669d0cff203fd201c64e4bb3e89fb4212646e SHA1 8bb85d6208736f96712a40437d083b399f954334 SHA256 4ceed4c5742faa2ab0d702985cbc39d8578a7bbd9ef098a6e15c63eefbad6307
+EBUILD libcapsinetwork-0.3.0.ebuild 915 RMD160 6b5563eac8e347055fc50d649a5c832957bcf2be SHA1 03f58e114aa5f3bf0faa2b373125a2ef62c103ee SHA256 9f36def6ba522be8959398d9b7bc24726514edf2312e17b7a7cdc71d3771aebb
+MISC ChangeLog 1968 RMD160 6383ec31d5dd9fa67f49e0907f4ccf26a4d0f100 SHA1 065ea07ea182a1b8662b6af55ddfcdaf92b1d27f SHA256 64c5891c88892d543704582d879d0381503eba310f8124edb58f2429e366ac60
MISC metadata.xml 231 RMD160 c13056229989c3d4f448a7c7abcff3f4ee7ce13c SHA1 2d63dfb700b223f8f37c078692a81b2237896bce SHA256 4595c2615fd7c9095517949b1a920d4457f92801eb9d46307b18aafe58ec2a8a
diff --git a/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-64bit.patch b/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-64bit.patch
new file mode 100644
index 000000000000..23cd97d23114
--- /dev/null
+++ b/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-64bit.patch
@@ -0,0 +1,20 @@
+--- libcapsinetwork-0.3.0.old/src/socket.cpp 2004-07-15 05:39:28.000000000 -0400
++++ libcapsinetwork-0.3.0/src/socket.cpp 2007-10-10 07:36:41.000000000 -0400
+@@ -49,7 +49,7 @@
+ const bool Socket::hasReadLine()
+ {
+ static std::string newLine = "\r\n";
+- unsigned int pos = m_ioBuf.find_first_of(newLine);
++ std::string::size_type pos = m_ioBuf.find_first_of(newLine);
+
+ return (!(pos == std::string::npos));
+ }
+@@ -57,7 +57,7 @@
+ const std::string Socket::readLine()
+ {
+ static std::string newLine = "\r\n";
+- unsigned int pos = m_ioBuf.find_first_of(newLine);
++ std::string::size_type pos = m_ioBuf.find_first_of(newLine);
+
+ if (pos != std::string::npos)
+ {
diff --git a/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-gcc43.patch b/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-gcc43.patch
new file mode 100644
index 000000000000..686da3390259
--- /dev/null
+++ b/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-gcc43.patch
@@ -0,0 +1,44 @@
+diff -urN libcapsinetwork-0.3.0.old/src/listener.cpp libcapsinetwork-0.3.0/src/listener.cpp
+--- libcapsinetwork-0.3.0.old/src/listener.cpp 2008-01-08 18:10:17.000000000 -0500
++++ libcapsinetwork-0.3.0/src/listener.cpp 2008-01-08 18:15:51.000000000 -0500
+@@ -31,6 +31,7 @@
+
+ #include <netdb.h>
+ #include <unistd.h>
++#include <stdlib.h>
+
+ #include "listener.h"
+ #include "listenport.h"
+diff -urN libcapsinetwork-0.3.0.old/src/listenport.cpp libcapsinetwork-0.3.0/src/listenport.cpp
+--- libcapsinetwork-0.3.0.old/src/listenport.cpp 2004-07-15 05:39:28.000000000 -0400
++++ libcapsinetwork-0.3.0/src/listenport.cpp 2008-01-08 18:15:51.000000000 -0500
+@@ -30,6 +30,7 @@
+ #include <fcntl.h>
+ #include <netdb.h>
+ #include <unistd.h>
++#include <string.h>
+
+ #include "listenport.h"
+
+diff -urN libcapsinetwork-0.3.0.old/src/server.cpp libcapsinetwork-0.3.0/src/server.cpp
+--- libcapsinetwork-0.3.0.old/src/server.cpp 2008-01-08 18:10:17.000000000 -0500
++++ libcapsinetwork-0.3.0/src/server.cpp 2008-01-08 18:15:51.000000000 -0500
+@@ -26,6 +26,7 @@
+
+ #include <string>
+ #include <stdio.h>
++#include <stdlib.h>
+
+ // In real applications, use the following include instead of the local.
+ // #include <libcapsinetwork/socket.h>
+diff -urN libcapsinetwork-0.3.0.old/src/socket.cpp libcapsinetwork-0.3.0/src/socket.cpp
+--- libcapsinetwork-0.3.0.old/src/socket.cpp 2008-01-08 18:10:17.000000000 -0500
++++ libcapsinetwork-0.3.0/src/socket.cpp 2008-01-08 18:15:13.000000000 -0500
+@@ -25,6 +25,7 @@
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <unistd.h>
++#include <string.h>
+
+ #include "socket.h"
+
diff --git a/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-parallel.patch b/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-parallel.patch
new file mode 100644
index 000000000000..6cba499c92ff
--- /dev/null
+++ b/net-libs/libcapsinetwork/files/libcapsinetwork-0.3.0-parallel.patch
@@ -0,0 +1,12 @@
+diff -urN libcapsinetwork-0.3.0.old/src/Makefile.am libcapsinetwork-0.3.0/src/Makefile.am
+--- libcapsinetwork-0.3.0.old/src/Makefile.am 2004-07-15 05:39:28.000000000 -0400
++++ libcapsinetwork-0.3.0/src/Makefile.am 2007-10-10 07:09:59.000000000 -0400
+@@ -8,7 +8,7 @@
+
+ noinst_PROGRAMS = exampleserver
+ exampleserver_SOURCES = server.cpp
+-exampleserver_LDADD = -L. -lcapsinetwork
++exampleserver_LDADD = ./libcapsinetwork.la
+ exampleserverincdir = .
+
+ noinst_HEADERS = listenport.h server.h
diff --git a/net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild b/net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild
index 7f4d770cd059..efe201f369c4 100644
--- a/net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild
+++ b/net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild
@@ -1,24 +1,34 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild,v 1.1 2004/07/19 19:14:18 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libcapsinetwork/libcapsinetwork-0.3.0.ebuild,v 1.2 2008/05/04 09:57:41 drac Exp $
-inherit flag-o-matic
+inherit autotools eutils flag-o-matic
DESCRIPTION="C++ network library to allow fast development of server daemon processes"
-HOMEPAGE="http://unixcode.org/libcapsinetwork/"
+HOMEPAGE="http://unixcode.org/libcapsinetwork"
SRC_URI="http://unixcode.org/downloads/${PN}/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="x86 ppc sparc"
+KEYWORDS="~amd64 ppc sparc x86"
IUSE=""
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-parallel.patch \
+ "${FILESDIR}"/${P}-64bit.patch
+ eautoreconf
+}
+
src_compile() {
filter-flags -fomit-frame-pointer
- econf || die
- emake -j1 || die "emake failed"
+ econf
+ emake || die "emake failed."
}
src_install() {
- make DESTDIR="${D}" install || die "make install failed"
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS ChangeLog NEWS README TODO
}