pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel Remove pthread-stublib.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/90d488f02a92
branches:  trunk
changeset: 312322:90d488f02a92
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Sep 01 20:58:11 2018 +0000

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

diffstat:

 devel/Makefile                              |   3 +-
 devel/pthread-stublib/DESCR                 |   3 -
 devel/pthread-stublib/Makefile              |  20 ----------
 devel/pthread-stublib/PLIST                 |   2 -
 devel/pthread-stublib/buildlink3.mk         |  14 -------
 devel/pthread-stublib/files/Makefile        |  13 -------
 devel/pthread-stublib/files/pthread-stubs.c |  53 -----------------------------
 7 files changed, 1 insertions(+), 107 deletions(-)

diffs (146 lines):

diff -r b607411d5810 -r 90d488f02a92 devel/Makefile
--- a/devel/Makefile    Sat Sep 01 20:52:24 2018 +0000
+++ b/devel/Makefile    Sat Sep 01 20:58:11 2018 +0000
@@ -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+=       psvn
 SUBDIR+=       pth
 SUBDIR+=       pthread-sem
-SUBDIR+=       pthread-stublib
 SUBDIR+=       ptlib
 SUBDIR+=       pvs
 SUBDIR+=       pwlib
diff -r b607411d5810 -r 90d488f02a92 devel/pthread-stublib/DESCR
--- a/devel/pthread-stublib/DESCR       Sat Sep 01 20:52:24 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r b607411d5810 -r 90d488f02a92 devel/pthread-stublib/Makefile
--- a/devel/pthread-stublib/Makefile    Sat Sep 01 20:52:24 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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@localhost
-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 -r b607411d5810 -r 90d488f02a92 devel/pthread-stublib/PLIST
--- a/devel/pthread-stublib/PLIST       Sat Sep 01 20:52:24 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $
-lib/libpthstub.la
diff -r b607411d5810 -r 90d488f02a92 devel/pthread-stublib/buildlink3.mk
--- a/devel/pthread-stublib/buildlink3.mk       Sat Sep 01 20:52:24 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r b607411d5810 -r 90d488f02a92 devel/pthread-stublib/files/Makefile
--- a/devel/pthread-stublib/files/Makefile      Sat Sep 01 20:52:24 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r b607411d5810 -r 90d488f02a92 devel/pthread-stublib/files/pthread-stubs.c
--- a/devel/pthread-stublib/files/pthread-stubs.c       Sat Sep 01 20:52:24 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);
-}



Home | Main Index | Thread Index | Old Index