summaryrefslogtreecommitdiff
path: root/devel/lwp
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2007-04-11 17:58:23 +0000
committergdt <gdt@pkgsrc.org>2007-04-11 17:58:23 +0000
commit8063006a168fb49932bff685b71915596b79aaea (patch)
tree1f4e3cd71189ee0359a2a4275d5a62bf7397b1a8 /devel/lwp
parent9f4ee10c835e44d92d24927e36ba59e6ef14764b (diff)
downloadpkgsrc-8063006a168fb49932bff685b71915596b79aaea.tar.gz
Update to 2.3. (patch-aa was applied upstream.) Drop
ONLY_FOR_PLATFORM because lwp uses ucontext in preference to the old process.s asm code. New in 2.3: * LWP builds and passes simple tests on amd64/em64t. * Avoid crash when running lwp_basher. * Work around broken makecontext on amd64 * Fix warning in rw.c * Fix some autoconf/automake warnings during bootstrap. * On bootstrap, get rid of the autom4te.cache. (Phil Nelson) * struct ucontext changed to struct lwp_ucontext. (Phil Nelson) New in 2.2: * Removed cross-compilation spec files. * Avoid stack overflow in the tdb test program on sparc64. * FC5 build fixes. * Don't package the link created by ldconfig. New in 2.1: * Sometimes we can only switch to a context created by makecontext once. Refreshing the context information with getcontext to make the jump into the thread reaper repeatable. * Move declarations before code, gcc-2.95 likes that better. (Greg Troxel) * The uc_stack in a ucontext may be clobbered by the context switching functions. Use a separate copy in the lwp process info for stack overflow checks and deallocation purposes. * Use setjmp/longjmp to jump out of the signal context when using sigaltstack to spawn a new thread instead of simply returning. This avoids corruption of the newly created context. (Phil Nelson)
Diffstat (limited to 'devel/lwp')
-rw-r--r--devel/lwp/Makefile10
-rw-r--r--devel/lwp/distinfo9
-rw-r--r--devel/lwp/patches/patch-aa28
3 files changed, 6 insertions, 41 deletions
diff --git a/devel/lwp/Makefile b/devel/lwp/Makefile
index d15caf895dc..54c1e3e7b5f 100644
--- a/devel/lwp/Makefile
+++ b/devel/lwp/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2005/08/15 01:14:05 xtraeme Exp $
+# $NetBSD: Makefile,v 1.25 2007/04/11 17:58:23 gdt Exp $
#
-DISTNAME= lwp-2.0
+DISTNAME= lwp-2.3
CATEGORIES= devel
MASTER_SITES= http://www.coda.cs.cmu.edu/pub/lwp/src/
@@ -9,12 +9,6 @@ MAINTAINER= phil@cs.wwu.edu
HOMEPAGE= http://www.coda.cs.cmu.edu/
COMMENT= Light Weight Process style threads
-# ${WRKSRC}/src/process.ss needs pmap handling assembly for
-# each arch. Mips has it, but it evidently needs more work.
-#
-ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-m68k NetBSD-*-sparc* \
- NetBSD-*-arm NetBSD-*-arm32 Linux-*-i386 NetBSD-*-x86_64
-
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
diff --git a/devel/lwp/distinfo b/devel/lwp/distinfo
index 6a385928807..08fb0ea740d 100644
--- a/devel/lwp/distinfo
+++ b/devel/lwp/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.11 2005/09/22 12:05:39 rillig Exp $
+$NetBSD: distinfo,v 1.12 2007/04/11 17:58:23 gdt Exp $
-SHA1 (lwp-2.0.tar.gz) = 4188f5df42a9f879f67c9294ebf9bf59056a0e25
-RMD160 (lwp-2.0.tar.gz) = cf42e3324ed94fe67ae817281763eb1f2f475935
-Size (lwp-2.0.tar.gz) = 362141 bytes
-SHA1 (patch-aa) = 02ff9a57c996c67b722987d4dde3899056341df5
+SHA1 (lwp-2.3.tar.gz) = 6bab5b13e61c9039ca24a4298e94fb4e94f95efe
+RMD160 (lwp-2.3.tar.gz) = c4a82e93f33014e8efcd9517deebc85547dc8382
+Size (lwp-2.3.tar.gz) = 381102 bytes
diff --git a/devel/lwp/patches/patch-aa b/devel/lwp/patches/patch-aa
deleted file mode 100644
index d2ac9bb983b..00000000000
--- a/devel/lwp/patches/patch-aa
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2005/09/22 12:05:39 rillig Exp $
-
-ISO C90 does not allow declarations after code.
-
---- src/lwp_ucontext.c.orig Thu Mar 3 19:53:51 2005
-+++ src/lwp_ucontext.c Thu Sep 22 14:02:14 2005
-@@ -109,6 +109,10 @@ void makecontext(ucontext_t *ucp, void (
- {
- va_list ap;
- char *stack = ucp->uc_stack.ss_sp;
-+ struct sigaction action, oldaction;
-+ sigset_t sigs, oldsigs;
-+ stack_t oldstack;
-+
- assert(stack != NULL);
-
- child = ucp;
-@@ -132,10 +136,6 @@ void makecontext(ucontext_t *ucp, void (
- savecontext(_thread, &parent, stack);
-
- #else /* HAVE_SIGALTSTACK */
-- struct sigaction action, oldaction;
-- sigset_t sigs, oldsigs;
-- stack_t oldstack;
--
- action.sa_handler = (void(*)(int))_thread;
- action.sa_flags = SA_ONSTACK;
- sigemptyset(&action.sa_mask);