Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2023 17:32: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: a387409d2b1a - main - x11/libxcb: drop libpthread-stubs dependency
Message-ID:  <202303111732.32BHWDtX069695@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=a387409d2b1af8da566cd75d43105059138fae37

commit a387409d2b1af8da566cd75d43105059138fae37
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-10 14:45:03 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-11 17:29:05 +0000

    x11/libxcb: drop libpthread-stubs dependency
    
    Switch from libpthread to pthread stubs in libc. This is how
    libpthread-stubs was supposed to work before it became useless.
    
    PR:             269462
    Exp-run by:     antoine
    Approved by:    manu
---
 x11/libxcb/Makefile              |  5 ++---
 x11/libxcb/files/patch-configure | 13 +++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/x11/libxcb/Makefile b/x11/libxcb/Makefile
index a7b5bfb1b548..5adad7d69557 100644
--- a/x11/libxcb/Makefile
+++ b/x11/libxcb/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libxcb
 PORTVERSION=	1.15
+PORTREVISION=	1
 CATEGORIES=	x11
 MASTER_SITES=	https://xcb.freedesktop.org/dist/
 
@@ -10,9 +11,7 @@ WWW=		https://xcb.freedesktop.org/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	xcb-proto>=1.9:x11/xcb-proto \
-		${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
-RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
+BUILD_DEPENDS=	xcb-proto>=1.9:x11/xcb-proto
 
 CONFIGURE_ARGS=	--disable-devel-docs --without-doxygen --enable-xinput --enable-xkb
 
diff --git a/x11/libxcb/files/patch-configure b/x11/libxcb/files/patch-configure
new file mode 100644
index 000000000000..681136eb0a7e
--- /dev/null
+++ b/x11/libxcb/files/patch-configure
@@ -0,0 +1,13 @@
+https://gitlab.freedesktop.org/xorg/lib/libxcb/-/commit/fd04ab24a5e9
+
+--- configure.orig	2022-05-03 22:15:58 UTC
++++ configure
+@@ -20662,7 +20662,7 @@ case $host_os in
+ fi
+ NEEDED="xau >= 0.99.2"
+ case $host_os in
+-linux*) ;;
++linux*|dragonfly*|freebsd*) ;;
+      *) NEEDED="$NEEDED pthread-stubs" ;;
+ esac
+ 



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