Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 12:08:01 -0500
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Comments about FreeBSD threading from Apache people
Message-ID:  <20031113170801.GA8760@crodrigues.org>
In-Reply-To: <Pine.GSO.4.10.10311130137450.338-100000@pcnet5.pcnet.com>
References:  <20031113045131.GA5544@crodrigues.org> <Pine.GSO.4.10.10311130137450.338-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 13, 2003 at 01:51:00AM -0500, Daniel Eischen wrote:
> Supposedly, libkse will be default for archs in which
> it is supported (currently i386, amd64, ia64) for
> 5.2-RELEASE.  

What is the release criteria for this?  Is re@ going
to make this decision?

> It is undecided whether it will be default
> by means of installing an appropriate libmap.conf, or
> by renaming libkse back to libpthread and changing
> PTHREAD_LIBS to -lpthread (and also changing gcc -pthread
> so that it links to libpthread instead of libc_r).

Hmm, this is indeed a tricky thing, and I don't know
the best course of action to recommend.  Where is
the best place to follow discussion related to this?

> Port maintainers shouldn't get too concerned about
> this; they should continue to rely on PTHREAD_LIBS
> and PTHREAD_CFLAGS.  I suppose there is the possibility
> that some ports may want a specific threads library.
> In that case, perhaps PTHREAD_LIBS can be overridden
> by the port.  But you should probably ask ports@
> to see if that is how it should be handled.

Well, for just maintaining a port, it is OK.
However, for pushing changes back to the original
package maintainers, you cannot really rely on
PTHREAD_LIBS and PTHREAD_CFLAGS, because those
variables are defined in /usr/ports/Mk/bsd.port.mk.

For example, I pushed some FreeBSD thread changes back to the ACE
developers, because they have their own complex
make system which is outside of the FreeBSD system
(and I am an ACE committer :).

I have been working a lot with Lev Serebryakov, since he
maintains the subversion port, and I maintain the apr
port, which subversion depends on.  We managed to fix some thread 
related problems in apr and subversion after a lot of libtool hacking, 
but we both got into trouble when we tried to push our changes back to the
original package maintainers, and the maintainers did not
want to accept them.

I guess package maintainers will be more willing to accept
changes when the thread situation in FreeBSD stabilizes some more. 


-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org



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