OpenSolaris

Printable Version Enter a New Search
Bug ID 6763324
Synopsis Integrate pthread-stubs [LSARC/2008/657]
State 10-Fix Delivered:Verified (Fix available in build)
Category:Subcategory xserver:source
Keywords
Responsible Engineer Alan Coopersmith
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_103
Fixed In snv_103
Release Fixed solaris_nevada(snv_103)
Related Bugs
Submit Date 23-October-2008
Last Update Date 13-November-2008
Description
This case delivers pkgconfig files named pthread-stubs.pc, to satisfy
dependencies of several source packages from X.Org and related communities
(DRI & XCB).

The community description of pthread-stubs is:

    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.

Since Solaris libc has all the required pthread functions already, no
library is built on Solaris, and the delivered pthread-stubs file has
a blank "Libs" line, causing pkg-config --libs pthread-stubs to print
that no linker flags are necessary to safely build a package calling
pthread functions.

Delivered files:
----------------
In package SUNWxwinc:
	/usr/lib/pkgconfig/pthread-stubs.pc
	/usr/lib/{sparcv9,amd64}/pkgconfig/pthread-stubs.pc

Exported interfaces:
--------------------
pthread-stubs pkg-config entry			Uncommitted
*** Test Case ***
' pkg-config --libs pthread-stubs ' should produce a blank line and no errors.
Work Around
N/A
Comments
In X snv_b103 test cycle:
bug is verified on Sparc and X86.