summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-09-01 20:58:11 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-09-01 20:58:11 +0000
commitdc317de8b8580493feaf1f28117f8e0fd01db5fd (patch)
tree85199daf6690d06d573e816ff355f2f09537f3e7
parent73970d32851cc22eaf2eb3fd61597c5142172576 (diff)
downloadpkgsrc-dc317de8b8580493feaf1f28117f8e0fd01db5fd.tar.gz
Remove pthread-stublib.
"Provide dummy implementations of pthread functions like mutex operations to enable libraries to be used in both thread-aware and non-threaded programs. This is for NetBSD<=2; newer operating systems don't need it." Announced on tech-pkg on 2018-03-25.
-rw-r--r--devel/Makefile3
-rw-r--r--devel/pthread-stublib/DESCR3
-rw-r--r--devel/pthread-stublib/Makefile20
-rw-r--r--devel/pthread-stublib/PLIST2
-rw-r--r--devel/pthread-stublib/buildlink3.mk14
-rw-r--r--devel/pthread-stublib/files/Makefile13
-rw-r--r--devel/pthread-stublib/files/pthread-stubs.c53
7 files changed, 1 insertions, 107 deletions
diff --git a/devel/Makefile b/devel/Makefile
index e67c3ee0ad0..8d47c51d7dd 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2723 2018/08/29 06:16:40 wiz Exp $
+# $NetBSD: Makefile,v 1.2724 2018/09/01 20:58:11 bsiegert Exp $
#
COMMENT= Development utilities
@@ -1872,7 +1872,6 @@ SUBDIR+= pstreams
SUBDIR+= psvn
SUBDIR+= pth
SUBDIR+= pthread-sem
-SUBDIR+= pthread-stublib
SUBDIR+= ptlib
SUBDIR+= pvs
SUBDIR+= pwlib
diff --git a/devel/pthread-stublib/DESCR b/devel/pthread-stublib/DESCR
deleted file mode 100644
index 60d4eebd0aa..00000000000
--- a/devel/pthread-stublib/DESCR
+++ /dev/null
@@ -1,3 +0,0 @@
-Provide dummy implementations of pthread functions like mutex operations
-to enable libraries to be used in both thread-aware and non-threaded programs.
-This is for NetBSD<=2; newer operating systems don't need it.
diff --git a/devel/pthread-stublib/Makefile b/devel/pthread-stublib/Makefile
deleted file mode 100644
index 8687e90ef54..00000000000
--- a/devel/pthread-stublib/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-# $NetBSD: Makefile,v 1.5 2018/08/19 20:16:39 wiz Exp $
-
-DISTNAME= pthread-stublib-1.0
-CATEGORIES= devel
-DISTFILES= # empty
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-COMMENT= Library providing noop-stubs for pthread functions
-
-WRKSRC= ${WRKDIR}
-USE_LIBTOOL= yes
-
-ONLY_FOR_PLATFORM= NetBSD-[12].*-*
-
-INSTALLATION_DIRS= lib
-
-do-extract:
- ${CP} ${FILESDIR}/pthread-stubs.c ${FILESDIR}/Makefile ${WRKSRC}
-
-.include "../../mk/bsd.pkg.mk"
diff --git a/devel/pthread-stublib/PLIST b/devel/pthread-stublib/PLIST
deleted file mode 100644
index 712786296ee..00000000000
--- a/devel/pthread-stublib/PLIST
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $
-lib/libpthstub.la
diff --git a/devel/pthread-stublib/buildlink3.mk b/devel/pthread-stublib/buildlink3.mk
deleted file mode 100644
index c3d8647b6f1..00000000000
--- a/devel/pthread-stublib/buildlink3.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-# $NetBSD: buildlink3.mk,v 1.8 2018/01/07 13:04:10 rillig Exp $
-
-BUILDLINK_TREE+= pthread-stublib
-
-.if !defined(PTHREAD_STUBLIB_BUILDLINK3_MK)
-PTHREAD_STUBLIB_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.pthread-stublib+= pthread-stublib>=1.0
-BUILDLINK_PKGSRCDIR.pthread-stublib?= ../../devel/pthread-stublib
-
-IS_BUILTIN.pthread-stublib= no
-.endif # PTHREAD_STUBLIB_BUILDLINK3_MK
-
-BUILDLINK_TREE+= -pthread-stublib
diff --git a/devel/pthread-stublib/files/Makefile b/devel/pthread-stublib/files/Makefile
deleted file mode 100644
index 023abd19041..00000000000
--- a/devel/pthread-stublib/files/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-# $NetBSD: Makefile,v 1.2 2008/01/12 12:35:39 joerg Exp $
-
-all: libpthstub.la
-
-libpthstub.la: pthread-stubs.lo
- ${LIBTOOL} --mode=link ${CC} -o $@ $? -rpath ${PREFIX}/lib
-
-pthread-stubs.lo: pthread-stubs.c
- ${LIBTOOL} --mode=compile ${CC} -c -o $@ $?
-
-install:
- ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libpthstub.la \
- ${DESTDIR}${PREFIX}/lib
diff --git a/devel/pthread-stublib/files/pthread-stubs.c b/devel/pthread-stublib/files/pthread-stubs.c
deleted file mode 100644
index 8f3ae7649cb..00000000000
--- a/devel/pthread-stublib/files/pthread-stubs.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* $NetBSD: pthread-stubs.c,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $ */
-
-#include <sys/cdefs.h>
-
-int __pthstub_mutex_noop(void);
-
-__weak_alias(pthread_mutex_init,__pthstub_noop)
-__weak_alias(pthread_mutex_lock,__pthstub_noop)
-__weak_alias(pthread_mutex_trylock,__pthstub_noop)
-__weak_alias(pthread_mutex_unlock,__pthstub_noop)
-__weak_alias(pthread_mutex_destroy,__pthstub_noop)
-__weak_alias(pthread_key_create,__pthstub_noop)
-__weak_alias(pthread_self,__pthstub_noop)
-
-int
-__pthstub_noop()
-{
-
- return (0);
-}
-
-__weak_alias(pthread_setspecific,__pthstub_setspecific)
-__weak_alias(pthread_getspecific,__pthstub_getspecific)
-static void *__pthstub_localdata;
-
-int
-__pthstub_setspecific(int k, void *v)
-{
-
- __pthstub_localdata = v;
- return (0);
-}
-
-void *
-__pthstub_getspecific()
-{
-
- return (__pthstub_localdata);
-}
-
-__weak_alias(pthread_once,__pthstub_once)
-static int __once_done;
-
-int
-__pthstub_once(void *oc, void (*f)(void))
-{
-
- if (!__once_done) {
- (*f)();
- __once_done = 1;
- }
- return (0);
-}