summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorexplorer <explorer@pkgsrc.org>1999-11-12 20:27:16 +0000
committerexplorer <explorer@pkgsrc.org>1999-11-12 20:27:16 +0000
commite6659b374641b3461de37af5477e30116aa1aae0 (patch)
tree4f1faf60be0bc0091211aa1657417e00d211505d /devel
parent91ea3762ebea84f4be42eb877d1054220002b705 (diff)
downloadpkgsrc-e6659b374641b3461de37af5477e30116aa1aae0.tar.gz
Import unproven-pthreads, the mit-pthreads based cleanup I'm hacking on.
Why am I using MIT-Pthreads? Because all the alternatives seem to have very low level problems. PTL2 has a locking problem of some sort that I cannot track down, and the author insists that lock = PTHREAD_MUTEX_INIT; is always to be legal, so he uses a pointer for locks. This means pthread_lock() can break in out of memory situations, and therefore so can pthread_once(), and if you're using that to protect logging, and you need to report a memory depletion, you're screwed. --Michael
Diffstat (limited to 'devel')
-rw-r--r--devel/unproven-pthreads/Makefile35
-rw-r--r--devel/unproven-pthreads/files/md53
-rw-r--r--devel/unproven-pthreads/pkg/COMMENT1
-rw-r--r--devel/unproven-pthreads/pkg/DESCR6
-rw-r--r--devel/unproven-pthreads/pkg/PLIST36
5 files changed, 81 insertions, 0 deletions
diff --git a/devel/unproven-pthreads/Makefile b/devel/unproven-pthreads/Makefile
new file mode 100644
index 00000000000..13ccb8414f7
--- /dev/null
+++ b/devel/unproven-pthreads/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/11/12 20:27:16 explorer Exp $
+#
+
+DISTNAME= unproven-pthreads-0.5
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.flame.org/pub/netbsd/
+
+MAINTAINER= explorer@netbsd.org
+#HOMEPAGE= http://www.mit.edu:8001/people/proven/pthreads.html
+
+#ONLY_FOR_PLATFORM= NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 \
+# NetBSD-*-sparc NetBSD-*-m68k
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+
+HAS_CONFIGURE= yes
+MAKE_ENV+= NOLINT=1 NOPROFILE=1 OBJECT_FMT=${OBJECT_FMT}
+CONFIGURE_ARGS+= --prefix=${PREFIX}/pthreads
+
+post-configure:
+ @echo "#define HAVE_SYSCALL_SIGACTION 1" >> ${WRKSRC}/config.h
+ @echo "#define HAVE_SYSCALL_SIGPAUSE 1" >> ${WRKSRC}/config.h
+ @echo "#define HAVE_SYSCALL_SIGPROCMASK 1" >> ${WRKSRC}/config.h
+ @echo "#define HAVE_SYSCALL_SIGSUSPEND 1" >> ${WRKSRC}/config.h
+
+pre-install:
+ ${MKDIR} ${PREFIX}/pthreads
+
+post-install:
+ @${RM} -f ${PREFIX}/pthreads/lib/libpthread_pic.a
+ @find ${PREFIX}/pthreads/include -name '*.orig'|xargs rm
+ @find ${PREFIX}/pthreads/include -type f -print|xargs chmod 644
+ @find ${PREFIX}/pthreads/include -type d -print|xargs chmod 755
+ @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/pthreads/include
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/unproven-pthreads/files/md5 b/devel/unproven-pthreads/files/md5
new file mode 100644
index 00000000000..b358994cead
--- /dev/null
+++ b/devel/unproven-pthreads/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/11/12 20:27:17 explorer Exp $
+
+MD5 (unproven-pthreads-0.5.tar.gz) = 4077f8e30af6c232cd7bb5ad80abcfa3
diff --git a/devel/unproven-pthreads/pkg/COMMENT b/devel/unproven-pthreads/pkg/COMMENT
new file mode 100644
index 00000000000..e3bc82d4ad6
--- /dev/null
+++ b/devel/unproven-pthreads/pkg/COMMENT
@@ -0,0 +1 @@
+Chris Provenzano's (MIT) POSIX threads library
diff --git a/devel/unproven-pthreads/pkg/DESCR b/devel/unproven-pthreads/pkg/DESCR
new file mode 100644
index 00000000000..1730b670141
--- /dev/null
+++ b/devel/unproven-pthreads/pkg/DESCR
@@ -0,0 +1,6 @@
+This is Chris Provenzano's MIT Pthreads library.
+
+Pthreads stands for POSIX threads and is based on the POSIX 1003.1c 1995
+thread standard. This standard passed international Standards Organization
+(ISO) Committee Document (CD) balloting in February 1995 and got the
+IEEE Standards Board approval in June 1995.
diff --git a/devel/unproven-pthreads/pkg/PLIST b/devel/unproven-pthreads/pkg/PLIST
new file mode 100644
index 00000000000..ef736f9b633
--- /dev/null
+++ b/devel/unproven-pthreads/pkg/PLIST
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/11/12 20:27:17 explorer Exp $
+pthreads/bin/pgcc
+pthreads/bin/pg++
+pthreads/lib/libpthread.a
+pthreads/lib/libpthread.so.1.60
+pthreads/include/Makefile.inc
+pthreads/include/netdb.h
+pthreads/include/pthread.h
+pthreads/include/resolv.h
+pthreads/include/sched.h
+pthreads/include/arpa/nameser.h
+pthreads/include/pthread/cleanup.h
+pthreads/include/pthread/cond.h
+pthreads/include/pthread/debug_out.h
+pthreads/include/pthread/fd.h
+pthreads/include/pthread/fd_pipe.h
+pthreads/include/pthread/kernel.h
+pthreads/include/pthread/kthread.h
+pthreads/include/pthread/mutex.h
+pthreads/include/pthread/prio_queue.h
+pthreads/include/pthread/pthread_attr.h
+pthreads/include/pthread/pthread_once.h
+pthreads/include/pthread/queue.h
+pthreads/include/pthread/sleep.h
+pthreads/include/pthread/specific.h
+pthreads/include/pthread/state.def
+pthreads/include/pthread/unistd.h
+pthreads/include/pthread/util.h
+pthreads/include/pthread/version.h
+pthreads/include/pthread/machdep.h
+@dirrm pthreads/lib
+@dirrm pthreads/bin
+@dirrm pthreads/include/arpa
+@dirrm pthreads/include/pthread
+@dirrm pthreads/include
+@dirrm pthreads