Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jan 2007 20:38:49 GMT
From:      Ashish Shukla<wahjava@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/108491: New port: devel/libpthread-stubs: This library provides weak aliases for pthread functions
Message-ID:  <200701282038.l0SKcnMi009205@www.freebsd.org>
Resent-Message-ID: <200701282040.l0SKeHC5082531@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108491
>Category:       ports
>Synopsis:       New port: devel/libpthread-stubs: This library provides weak aliases for pthread functions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 28 20:40:16 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ashish Shukla
>Release:        6.2-RELEASE
>Organization:
N/A
>Environment:
FreeBSD chatteau.d.lf 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007     root@portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  amd64
>Description:
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.
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       libpthread-stubs
#       libpthread-stubs/distinfo
#       libpthread-stubs/Makefile
#       libpthread-stubs/pkg-descr
#       libpthread-stubs/files
#       libpthread-stubs/files/patch-configure
#       libpthread-stubs/pkg-plist
#
echo c - libpthread-stubs
mkdir -p libpthread-stubs > /dev/null 2>&1
echo x - libpthread-stubs/distinfo
sed 's/^X//' >libpthread-stubs/distinfo << 'END-of-libpthread-stubs/distinfo'
XMD5 (libpthread-stubs-0.1.tar.bz2) = 774eabaf33440d534efe108ef9130a7d
XSHA256 (libpthread-stubs-0.1.tar.bz2) = 004dae11e11598584939d66d26a5ab9b48d08a00ca2d00ae8d38ee3ac7a15d65
XSIZE (libpthread-stubs-0.1.tar.bz2) = 194060
END-of-libpthread-stubs/distinfo
echo x - libpthread-stubs/Makefile
sed 's/^X//' >libpthread-stubs/Makefile << 'END-of-libpthread-stubs/Makefile'
X# New ports collection makefile for:   libpthread-stubs
X# Date created:        24 January 2007
X# Whom:                wahjava
X#
X# $FreeBSD$
X#
X
XPORTNAME=      libpthread-stubs
XPORTVERSION=   0.1
XCATEGORIES=    devel
XMASTER_SITES=  http://xcb.freedesktop.org/dist/
X
XMAINTAINER=    wahjava@gmail.com
XCOMMENT=       This library provides weak aliases for pthread functions
X
XUSE_GMAKE=     yes
XUSE_BZIP2=     yes
XUSE_GNOME=     gnomehack pkgconfig
X
XGNU_CONFIGURE=  yes
XCONFIGURE_TARGET=       --build=${ARCH}-portbld-freebsd${OSREL}
X
X.include <bsd.port.mk>
END-of-libpthread-stubs/Makefile
echo x - libpthread-stubs/pkg-descr
sed 's/^X//' >libpthread-stubs/pkg-descr << 'END-of-libpthread-stubs/pkg-descr'
XThis library provides weak aliases for pthread functions not provided in libc
Xor otherwise available by default.  Libraries like libxcb rely on pthread
Xstubs to use pthreads optionally, becoming thread-safe when linked to
Xlibpthread, while avoiding any performance hit when running single-threaded.
Xlibpthread-stubs supports this behavior even on platforms which do not supply
Xall the necessary pthread stubs.  On platforms which already supply all the
Xnecessary pthread stubs, this package ships only the pkg-config file
Xpthread-stubs.pc, to allow libraries to unconditionally express a dependency
Xon pthread-stubs and still obtain correct behavior.
X
XWWW: http://xcb.freedesktop.org/
END-of-libpthread-stubs/pkg-descr
echo c - libpthread-stubs/files
mkdir -p libpthread-stubs/files > /dev/null 2>&1
echo x - libpthread-stubs/files/patch-configure
sed 's/^X//' >libpthread-stubs/files/patch-configure << 'END-of-libpthread-stubs/files/patch-configure'
X--- configure.orig     Wed Jan 24 17:10:44 2007
X+++ configure  Wed Jan 24 17:11:08 2007
X@@ -20705,7 +20705,7 @@
X _ACEOF
X
X else
X-  PKG_CONFIG_LIBS='-L${libdir} -pthread-stubs'
X+  PKG_CONFIG_LIBS='-L${libdir} -lpthread-stubs'
X fi
X done
X
END-of-libpthread-stubs/files/patch-configure
echo x - libpthread-stubs/pkg-plist
sed 's/^X//' >libpthread-stubs/pkg-plist << 'END-of-libpthread-stubs/pkg-plist'
Xlib/libpthread-stubs.a
Xlib/libpthread-stubs.la
Xlib/libpthread-stubs.so
Xlib/libpthread-stubs.so.0
Xlibdata/pkgconfig/pthread-stubs.pc
END-of-libpthread-stubs/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



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