diff options
authorJan Beich <jbeich@FreeBSD.org>2023-02-10 13:55:39 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-03-12 15:12:59 +0000
commitaa72a65245df6bf0e11f1d46ba1bf3131adb6aab (patch)
parent3121837456bdc14a747eb9c4aafbb9146eadf848 (diff)
devel/libpthread-stubs: remove port
libpthread-stubs >= 0.4 isn't granular: checks too few or often unused pthread symbols. On FreeBSD it always added -pthread even if pthread stubs libc would be enough. Consumers usually avoid libpthread-stubs dependency on Linux, duplicating the logic. So, remove the wrapper. PR: 269453 See also: https://gitlab.freedesktop.org/xorg/lib/pthread-stubs/-/issues/2 Inspired by: Arch, Fedora, OpenBSD, PkgSrc, Void Approved by: ashish (maintainer)
5 files changed, 1 insertions, 32 deletions
diff --git a/MOVED b/MOVED
index 53fbfec3ff20..80d17f5fb873 100644
--- a/MOVED
+++ b/MOVED
@@ -17786,3 +17786,4 @@ databases/postgresql10-plpython||2023-03-07|Has expired: PostgreSQL 10 has reach
databases/postgresql10-pltcl||2023-03-07|Has expired: PostgreSQL 10 has reached end-of-life
databases/postgresql10-server||2023-03-07|Has expired: PostgreSQL 10 has reached end-of-life
audio/ximp3||2023-03-09|Has expired: Abandonware and obsolete, uses old decoder library and no ID3v2 support
+devel/libpthread-stubs||2023-03-12|No consumers left and never supported pthread stubs in libc on FreeBSD
diff --git a/devel/Makefile b/devel/Makefile
index 3f40131175c1..0f833ed637c3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1341,7 +1341,6 @@
SUBDIR += libpo6
SUBDIR += libpololu-avr
SUBDIR += libpru
- SUBDIR += libpthread-stubs
SUBDIR += libqb
SUBDIR += libqcow
SUBDIR += libqsbr
diff --git a/devel/libpthread-stubs/Makefile b/devel/libpthread-stubs/Makefile
deleted file mode 100644
index 7f6659e45215..000000000000
--- a/devel/libpthread-stubs/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-PORTNAME= libpthread-stubs
-MASTER_SITES= https://xcb.freedesktop.org/dist/
-MAINTAINER= ashish@FreeBSD.org
-COMMENT= Weak aliases for pthread functions
-WWW= https://xcb.freedesktop.org/
-USES= pathfix tar:bzip2
-NO_ARCH= yes
-PLIST_FILES= libdata/pkgconfig/pthread-stubs.pc
-.include <bsd.port.mk>
diff --git a/devel/libpthread-stubs/distinfo b/devel/libpthread-stubs/distinfo
deleted file mode 100644
index d7153dd96114..000000000000
--- a/devel/libpthread-stubs/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1490198411
-SHA256 (libpthread-stubs-0.4.tar.bz2) = e4d05911a3165d3b18321cc067fdd2f023f06436e391c6a28dff618a78d2e733
-SIZE (libpthread-stubs-0.4.tar.bz2) = 57565
diff --git a/devel/libpthread-stubs/pkg-descr b/devel/libpthread-stubs/pkg-descr
deleted file mode 100644
index 4e7e85b3241b..000000000000
--- a/devel/libpthread-stubs/pkg-descr
+++ /dev/null
@@ -1,9 +0,0 @@
-This library provides weak aliases for pthread functions not provided in libc
-or otherwise available by default. Libraries like libxcb rely on pthread
-stubs to use pthreads optionally, becoming thread-safe when linked to
-libpthread, while avoiding any performance hit when running single-threaded.
-libpthread-stubs supports this behavior even on platforms which do not supply
-all the necessary pthread stubs. On platforms which already supply all the
-necessary pthread stubs, this package ships only the pkg-config file
-pthread-stubs.pc, to allow libraries to unconditionally express a dependency
-on pthread-stubs and still obtain correct behavior.