post-patch blues with db3, db4, db41

Michael Nottebrock michaelnottebrock at gmx.net
Sat Jun 5 21:13:34 GMT 2004


On Saturday 05 June 2004 21:16, Sean McNeil wrote:
> Hi,
>
> There are post-patch targets for these ports that are causing issues
> with the libraries built.  The target:
>
> post-patch:
>         @${REINPLACE_CMD} -Ee \
>                 's|-l?pthread|${PTHREAD_LIBS}|g'
> ${WRKSRC}/${CONFIGURE_SCRIPT}
>
> causes the library to be linked with libpthread.so.  This is a
> dependency that we do not want.  It will in turn cause issues with
> nss_ldap and db doesn't use any threading.  It is thread safe, but that
> doesn't mean it should be linked with pthread.

db links to a threads lib by default all by itself, the REINPLACE simply makes 
sure it's linked to the right lib.

>
> I took out that target from my build of db41 and all is well for me.
> With it in, nss_ldap ends up causing all sorts of bad things to happen
> because it uses db41 (via openldap and sasl) and it in turn pulls in
> pthread when it shouldn't.

It would seem nss_ldap needs to be fixed to be threads safe.

-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040605/2a45dc7c/attachment.bin


More information about the freebsd-ports mailing list