diff options
author | 2007-12-18 19:57:57 +0000 | |
---|---|---|
committer | 2007-12-18 19:57:57 +0000 | |
commit | 854c9bb382d1b9169398c3bd63c9110d1139c1fb (patch) | |
tree | 9302bf11a1f6a614e934e3bab7660aaa94828b7c /dev-libs/sucs | |
parent | Marked ~hppa (bug #195815). (diff) | |
download | gentoo-2-854c9bb382d1b9169398c3bd63c9110d1139c1fb.tar.gz gentoo-2-854c9bb382d1b9169398c3bd63c9110d1139c1fb.tar.bz2 gentoo-2-854c9bb382d1b9169398c3bd63c9110d1139c1fb.zip |
Fixed bug #199530. Unified resulting diffs. Dropped old version.
(Portage version: 2.1.4_rc10)
Diffstat (limited to 'dev-libs/sucs')
-rw-r--r-- | dev-libs/sucs/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/sucs/files/digest-sucs-0.7.0 | 3 | ||||
-rw-r--r-- | dev-libs/sucs/files/sucs-1.0.0-gcc4.diff | 45 | ||||
-rw-r--r-- | dev-libs/sucs/files/sucs-1.0.0-signals.diff | 11 | ||||
-rw-r--r-- | dev-libs/sucs/files/sucs-1.0.0-thread.diff | 12 | ||||
-rw-r--r-- | dev-libs/sucs/files/sucs-1.0.0-various_fixes.diff | 242 | ||||
-rw-r--r-- | dev-libs/sucs/files/sucs-1.0.0-xml.diff | 13 | ||||
-rw-r--r-- | dev-libs/sucs/sucs-0.7.0.ebuild | 20 | ||||
-rw-r--r-- | dev-libs/sucs/sucs-1.0.0.ebuild | 9 |
9 files changed, 252 insertions, 111 deletions
diff --git a/dev-libs/sucs/ChangeLog b/dev-libs/sucs/ChangeLog index 8e10919b7910..1bf8161f472e 100644 --- a/dev-libs/sucs/ChangeLog +++ b/dev-libs/sucs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/sucs # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/sucs/ChangeLog,v 1.10 2007/02/22 01:11:27 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/sucs/ChangeLog,v 1.11 2007/12/18 19:57:56 dev-zero Exp $ + + 18 Dec 2007; Tiziano Müller <dev-zero@gentoo.org> + -files/sucs-1.0.0-gcc4.diff, -files/sucs-1.0.0-signals.diff, + -files/sucs-1.0.0-thread.diff, +files/sucs-1.0.0-various_fixes.diff, + -files/sucs-1.0.0-xml.diff, -sucs-0.7.0.ebuild, sucs-1.0.0.ebuild: + Fixed bug #199530. Unified resulting diffs. Dropped old version. 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/dev-libs/sucs/files/digest-sucs-0.7.0 b/dev-libs/sucs/files/digest-sucs-0.7.0 deleted file mode 100644 index dbc895fe8a62..000000000000 --- a/dev-libs/sucs/files/digest-sucs-0.7.0 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 c49a839c31e61de4af5318f3ef261f58 sucs-0.7.0.tar.bz2 95642 -RMD160 bdfd182f79bbabe9d044b05427ebf2b466ff5926 sucs-0.7.0.tar.bz2 95642 -SHA256 3a97ed0256fad8b7405c4fef83529f30ff5285bb9350b1c7c0c13a72e01b1ebd sucs-0.7.0.tar.bz2 95642 diff --git a/dev-libs/sucs/files/sucs-1.0.0-gcc4.diff b/dev-libs/sucs/files/sucs-1.0.0-gcc4.diff deleted file mode 100644 index 0c1159214dd1..000000000000 --- a/dev-libs/sucs/files/sucs-1.0.0-gcc4.diff +++ /dev/null @@ -1,45 +0,0 @@ -diff --exclude='*~' --exclude='.*' -I '$Id:' -urN sucs-1.0.0.orig/ipc/sema.cpp sucs-1.0.0/ipc/sema.cpp ---- sucs-1.0.0.orig/ipc/sema.cpp 2005-05-17 01:25:17.000000000 -0400 -+++ sucs-1.0.0/ipc/sema.cpp 2005-05-17 01:26:15.000000000 -0400 -@@ -15,6 +15,7 @@ - #pragma implementation - - #include <iostream> -+#include <cerrno> - using namespace std; - - #include <semaphore.h> -diff --exclude='*~' --exclude='.*' -I '$Id:' -urN sucs-1.0.0.orig/network/link.cpp sucs-1.0.0/network/link.cpp ---- sucs-1.0.0.orig/network/link.cpp 2005-05-17 01:25:17.000000000 -0400 -+++ sucs-1.0.0/network/link.cpp 2005-05-17 01:40:35.000000000 -0400 -@@ -17,6 +17,7 @@ - #include <string> - //#include <cstring> - #include <cassert> -+#include <cerrno> - using namespace std; - - #include <netinet/in.h> -diff --exclude='*~' --exclude='.*' -I '$Id:' -urN sucs-1.0.0.orig/signals/signallistener.cpp sucs-1.0.0/signals/signallistener.cpp ---- sucs-1.0.0.orig/signals/signallistener.cpp 2005-05-17 01:25:17.000000000 -0400 -+++ sucs-1.0.0/signals/signallistener.cpp 2005-05-17 01:39:04.000000000 -0400 -@@ -79,7 +79,7 @@ - theHandlers.erase(signal); - } - --void sucs::actualHandler(int signal) -+void actualHandler(int signal) - { - // cerr << "actualHandler: Received signal " << signal << "." << endl << flush; - SignalListener *l = SignalListener::signalListener(); -diff --exclude='*~' --exclude='.*' -I '$Id:' -urN sucs-1.0.0.orig/thread/thread.cpp sucs-1.0.0/thread/thread.cpp ---- sucs-1.0.0.orig/thread/thread.cpp 2005-05-17 01:25:17.000000000 -0400 -+++ sucs-1.0.0/thread/thread.cpp 2005-05-17 01:30:05.000000000 -0400 -@@ -17,6 +17,7 @@ - #include <iostream> - #include <string> - #include <cassert> -+#include <cerrno> - using namespace std; - - #include <csignal> diff --git a/dev-libs/sucs/files/sucs-1.0.0-signals.diff b/dev-libs/sucs/files/sucs-1.0.0-signals.diff deleted file mode 100644 index ec9d93c1e16a..000000000000 --- a/dev-libs/sucs/files/sucs-1.0.0-signals.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- signals/signallistener.cpp.orig 2006-10-20 19:30:24.000000000 +0000 -+++ signals/signallistener.cpp 2006-10-20 19:30:50.000000000 +0000 -@@ -29,6 +29,8 @@ - namespace sucs - { - -+void actualHandler(int signal); -+ - SignalListener *SignalListener::theOne = NULL; - - SignalListener::SignalListener() diff --git a/dev-libs/sucs/files/sucs-1.0.0-thread.diff b/dev-libs/sucs/files/sucs-1.0.0-thread.diff deleted file mode 100644 index 0576c61f916c..000000000000 --- a/dev-libs/sucs/files/sucs-1.0.0-thread.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- thread/thread.cpp.orig 2006-10-20 19:32:13.000000000 +0000 -+++ thread/thread.cpp 2006-10-20 19:33:16.000000000 +0000 -@@ -29,6 +29,9 @@ - - Sema sucs::__output; - -+void *sucs::gameOn(void *arg); -+void sucs::cleanup(void *arg); -+ - int Thread::theIdCount = 0, Thread::theCount = 0, Thread::theNowRunningCount = 0; - Sema Thread::theNowRunning; - pthread_t Thread::theMainId = (pthread_t)NULL; diff --git a/dev-libs/sucs/files/sucs-1.0.0-various_fixes.diff b/dev-libs/sucs/files/sucs-1.0.0-various_fixes.diff new file mode 100644 index 000000000000..56677c6ea289 --- /dev/null +++ b/dev-libs/sucs/files/sucs-1.0.0-various_fixes.diff @@ -0,0 +1,242 @@ +diff -Naur sucs-1.0.0.orig/ipc/sema.cpp sucs-1.0.0/ipc/sema.cpp +--- sucs-1.0.0.orig/ipc/sema.cpp 2007-12-18 20:43:20.000000000 +0100 ++++ sucs-1.0.0/ipc/sema.cpp 2007-12-18 20:49:08.000000000 +0100 +@@ -15,6 +15,7 @@ + #pragma implementation + + #include <iostream> ++#include <cerrno> + using namespace std; + + #include <semaphore.h> +diff -Naur sucs-1.0.0.orig/network/link.cpp sucs-1.0.0/network/link.cpp +--- sucs-1.0.0.orig/network/link.cpp 2007-12-18 20:43:20.000000000 +0100 ++++ sucs-1.0.0/network/link.cpp 2007-12-18 20:49:08.000000000 +0100 +@@ -17,6 +17,7 @@ + #include <string> + //#include <cstring> + #include <cassert> ++#include <cerrno> + using namespace std; + + #include <netinet/in.h> +diff -Naur sucs-1.0.0.orig/signals/signallistener.cpp sucs-1.0.0/signals/signallistener.cpp +--- sucs-1.0.0.orig/signals/signallistener.cpp 2007-12-18 20:43:20.000000000 +0100 ++++ sucs-1.0.0/signals/signallistener.cpp 2007-12-18 20:49:08.000000000 +0100 +@@ -29,6 +29,8 @@ + namespace sucs + { + ++void actualHandler(int signal); ++ + SignalListener *SignalListener::theOne = NULL; + + SignalListener::SignalListener() +@@ -79,7 +81,7 @@ + theHandlers.erase(signal); + } + +-void sucs::actualHandler(int signal) ++void actualHandler(int signal) + { + // cerr << "actualHandler: Received signal " << signal << "." << endl << flush; + SignalListener *l = SignalListener::signalListener(); +diff -Naur sucs-1.0.0.orig/signals/signallistener.cpp.orig sucs-1.0.0/signals/signallistener.cpp.orig +--- sucs-1.0.0.orig/signals/signallistener.cpp.orig 1970-01-01 01:00:00.000000000 +0100 ++++ sucs-1.0.0/signals/signallistener.cpp.orig 2007-12-18 20:48:54.000000000 +0100 +@@ -0,0 +1,93 @@ ++// ++// C++ Implementation: signallistener ++// ++// Description: ++// ++// ++// Author: Gav Wood <gav@indigoarchive.net>, (C) 2004 ++// ++// Copyright: See COPYING file that comes with this distribution ++// ++// ++ ++#ifdef HAVE_CONFIG_H ++#include <config.h> ++#endif ++ ++#define __SUCS 1 ++ ++#include <iostream> ++using namespace std; ++ ++#include <signal.h> ++ ++#include "thread.h" ++#include "signalhandler.h" ++#include "signallistener.h" ++using namespace sucs; ++ ++namespace sucs ++{ ++ ++void actualHandler(int signal); ++ ++SignalListener *SignalListener::theOne = NULL; ++ ++SignalListener::SignalListener() ++{ ++} ++ ++SignalListener::~SignalListener() ++{ ++} ++ ++void SignalListener::set(int signal, SignalHandler *handler) ++{ ++/* struct sigaction *act = new struct sigaction; ++ act->sa_sigaction = actualHandler; ++ act->sa_mask = 0; ++ act->sa_flags = SA_SIGINFO; ++ sigaction(a, act, NULL); ++ delect act; ++*/ ++ tdbg("SignalListener::set: Object " << handler << " is handling signal " << signal << "." << endl); ++ if(!theHandlers.count(signal)) ++ ::signal(signal, actualHandler); ++ theHandlers.insert(make_pair<int, SignalHandler *>(signal, handler)); ++} ++ ++void SignalListener::reset(int signal, SignalHandler *handler) ++{ ++ tdbg("SignalListener::reset: Object " << handler << " is not handling signal " << signal << "." << endl); ++ ++ // erase the signal handler from the handlers list ++ for(multimap<int, SignalHandler *>::iterator i = theHandlers.lower_bound(signal); i != theHandlers.upper_bound(signal); i++) ++ if((*i).second == handler) ++ { theHandlers.erase(i); ++ break; ++ } ++ ++ // if no signals are being handled, resort to the default action ++ if(!theHandlers.count(signal)) ++ ::signal(signal, SIG_DFL); ++} ++ ++void SignalListener::ignore(int signal) ++{ ++ tdbg("SignalListener::ignore: Ignoring signal " << signal << "." << endl); ++ ::signal(signal, SIG_IGN); ++ for(multimap<int, SignalHandler *>::iterator i = theHandlers.lower_bound(signal); i != theHandlers.upper_bound(signal); i++) ++ (*i).second->unregister(signal); ++ theHandlers.erase(signal); ++} ++ ++void sucs::actualHandler(int signal) ++{ ++// cerr << "actualHandler: Received signal " << signal << "." << endl << flush; ++ SignalListener *l = SignalListener::signalListener(); ++ for(multimap<int, SignalHandler *>::iterator i = l->theHandlers.lower_bound(signal); i != l->theHandlers.upper_bound(signal); i++) ++ (*i).second->handler(signal); ++ ::signal(signal, actualHandler); ++} ++ ++}; +diff -Naur sucs-1.0.0.orig/thread/thread.cpp sucs-1.0.0/thread/thread.cpp +--- sucs-1.0.0.orig/thread/thread.cpp 2007-12-18 20:43:20.000000000 +0100 ++++ sucs-1.0.0/thread/thread.cpp 2007-12-18 20:49:08.000000000 +0100 +@@ -17,6 +17,7 @@ + #include <iostream> + #include <string> + #include <cassert> ++#include <cerrno> + using namespace std; + + #include <csignal> +@@ -28,17 +29,24 @@ + + Sema sucs::__output; + ++namespace sucs { ++ void *gameOn(void *arg); ++ void cleanup(void *arg); ++} ++ + int Thread::theIdCount = 0, Thread::theCount = 0, Thread::theNowRunningCount = 0; + Sema Thread::theNowRunning; + pthread_t Thread::theMainId = (pthread_t)NULL; + map<pthread_t, Thread *> Thread::theThreads; + +-ostream &sucs::operator<<(ostream &out, const Thread &t) +-{ +- if(&t) +- return out << t.id() << " (" << t.name() << "-" << t.threadId() << ")"; +- else +- return out << "0 (main-" << Thread::theMainId << ")"; ++namespace sucs { ++ ostream &operator<<(ostream &out, const Thread &t) ++ { ++ if(&t) ++ return out << t.id() << " (" << t.name() << "-" << t.threadId() << ")"; ++ else ++ return out << "0 (main-" << Thread::theMainId << ")"; ++ } + } + + void Thread::waitForDeath() const +diff -Naur sucs-1.0.0.orig/xml/xmlreader.cpp sucs-1.0.0/xml/xmlreader.cpp +--- sucs-1.0.0.orig/xml/xmlreader.cpp 2007-12-18 20:43:20.000000000 +0100 ++++ sucs-1.0.0/xml/xmlreader.cpp 2007-12-18 20:46:02.000000000 +0100 +@@ -24,6 +24,12 @@ + + using namespace sucs; + ++namespace sucs { ++ void cStartElement(void *userdata, const char *name, const char **atts); ++ void cEndElement(void *userdata, const char *name); ++ void cCharData(void *userdata, const XML_Char *s, int len); ++} ++ + XMLReader::XMLReader(bool newStripWhite) + { + StripWhite = newStripWhite; +@@ -39,7 +45,9 @@ + XML_ParserFree(theParser); + } + +-istream &sucs::operator>>(istream &in, XMLReader &me) ++namespace sucs { ++ ++istream &operator>>(istream &in, XMLReader &me) + { + char Buffer[256]; + while(!in.eof()) +@@ -52,9 +60,9 @@ + } + } + return in; +-}; ++} + +-void sucs::cStartElement(void *userdata, const char *name, const char **atts) ++void cStartElement(void *userdata, const char *name, const char **atts) + { + map<string, string> Attributes; + +@@ -64,12 +72,12 @@ + ((XMLReader *)userdata)->StartElement(name, Attributes); + } + +-void sucs::cEndElement(void *userdata, const char *name) ++void cEndElement(void *userdata, const char *name) + { + ((XMLReader *)userdata)->EndElement(name); + } + +-void sucs::cCharData(void *userdata, const XML_Char *s, int len) ++void cCharData(void *userdata, const XML_Char *s, int len) + { + char Buffer[len + 1]; + +@@ -89,3 +97,5 @@ + ((XMLReader *)userdata)->CharData(Buffer); + } + } ++ ++} diff --git a/dev-libs/sucs/files/sucs-1.0.0-xml.diff b/dev-libs/sucs/files/sucs-1.0.0-xml.diff deleted file mode 100644 index f5ee0f8a36a9..000000000000 --- a/dev-libs/sucs/files/sucs-1.0.0-xml.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- xml/xmlreader.cpp.orig 2006-10-20 19:34:49.000000000 +0000 -+++ xml/xmlreader.cpp 2006-10-20 19:35:35.000000000 +0000 -@@ -24,6 +24,10 @@ - - using namespace sucs; - -+void sucs::cStartElement(void *userdata, const char *name, const char **atts); -+void sucs::cEndElement(void *userdata, const char *name); -+void sucs::cCharData(void *userdata, const XML_Char *s, int len); -+ - XMLReader::XMLReader(bool newStripWhite) - { - StripWhite = newStripWhite; diff --git a/dev-libs/sucs/sucs-0.7.0.ebuild b/dev-libs/sucs/sucs-0.7.0.ebuild deleted file mode 100644 index a0957a768c82..000000000000 --- a/dev-libs/sucs/sucs-0.7.0.ebuild +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/sucs/sucs-0.7.0.ebuild,v 1.8 2005/02/11 11:46:06 ka0ttic Exp $ - -DESCRIPTION="The Simple Utility Classes are C++ libraries of common C-based algorithms and libraries" -HOMEPAGE="http://sucs.sourceforge.net/" -SRC_URI="mirror://sourceforge/sucs/${P}.tar.bz2" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="" - -DEPEND=">=dev-libs/libpcre-3.9 - >=dev-libs/expat-1.95.4" - -src_install() { - make DESTDIR="${D}" install || die "make install failed" - dodoc AUTHORS ChangeLog README COPYING -} diff --git a/dev-libs/sucs/sucs-1.0.0.ebuild b/dev-libs/sucs/sucs-1.0.0.ebuild index 0c39c65f584b..10a49b6d50e6 100644 --- a/dev-libs/sucs/sucs-1.0.0.ebuild +++ b/dev-libs/sucs/sucs-1.0.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/sucs/sucs-1.0.0.ebuild,v 1.4 2006/10/20 19:37:30 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/sucs/sucs-1.0.0.ebuild,v 1.5 2007/12/18 19:57:56 dev-zero Exp $ inherit eutils @@ -20,10 +20,7 @@ RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" - epatch "${FILESDIR}/${P}-gcc4.diff" - epatch "${FILESDIR}/${P}-thread.diff" - epatch "${FILESDIR}/${P}-signals.diff" - epatch "${FILESDIR}/${P}-xml.diff" + epatch "${FILESDIR}/${P}-various_fixes.diff" } src_install() { |