pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lwp Update to 2.3. (patch-aa was applied upstre...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d49374b5c263
branches:  trunk
changeset: 527638:d49374b5c263
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Wed Apr 11 17:58:23 2007 +0000

description:
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:

 devel/lwp/Makefile         |  10 ++--------
 devel/lwp/distinfo         |   9 ++++-----
 devel/lwp/patches/patch-aa |  28 ----------------------------
 3 files changed, 6 insertions(+), 41 deletions(-)

diffs (72 lines):

diff -r 5dd72a3fbfb4 -r d49374b5c263 devel/lwp/Makefile
--- a/devel/lwp/Makefile        Wed Apr 11 17:56:40 2007 +0000
+++ b/devel/lwp/Makefile        Wed Apr 11 17:58:23 2007 +0000
@@ -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 @@
 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 -r 5dd72a3fbfb4 -r d49374b5c263 devel/lwp/distinfo
--- a/devel/lwp/distinfo        Wed Apr 11 17:56:40 2007 +0000
+++ b/devel/lwp/distinfo        Wed Apr 11 17:58:23 2007 +0000
@@ -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 -r 5dd72a3fbfb4 -r d49374b5c263 devel/lwp/patches/patch-aa
--- a/devel/lwp/patches/patch-aa        Wed Apr 11 17:56:40 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index