Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2023 15:13:13 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: aa72a65245df - main - devel/libpthread-stubs: remove port
Message-ID:  <202303121513.32CFDDUv009032@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aa72a65245df6bf0e11f1d46ba1bf3131adb6aab

commit aa72a65245df6bf0e11f1d46ba1bf3131adb6aab
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-10 13:55:39 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-12 15:12:59 +0000

    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)
---
 MOVED                            |  1 +
 devel/Makefile                   |  1 -
 devel/libpthread-stubs/Makefile  | 19 -------------------
 devel/libpthread-stubs/distinfo  |  3 ---
 devel/libpthread-stubs/pkg-descr |  9 ---------
 5 files changed, 1 insertion(+), 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
-PORTVERSION=	0.4
-CATEGORIES=	devel
-MASTER_SITES=	https://xcb.freedesktop.org/dist/
-
-MAINTAINER=	ashish@FreeBSD.org
-COMMENT=	Weak aliases for pthread functions
-WWW=		https://xcb.freedesktop.org/
-
-LICENSE=	MIT
-LICENSE_FILE=	${WRKSRC}/COPYING
-
-USES=		pathfix tar:bzip2
-GNU_CONFIGURE=	yes
-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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303121513.32CFDDUv009032>