Subject: re: CVS commit: pkgsrc/databases/p5-DBD-mysql
To: None <kristerw@NetBSD.org>
From: Ben Collver <ben@NetBSD.org>
List: pkgsrc-changes
Date: 11/22/2004 06:48:19
Hello,
This commit may need to be reversed, and here is my explanation:
The p5-DBD-mysql package doesn't actually use pthread. It depends on
mysql*-client, and uses "mysql_config --libs" to determine what
libraries to link, This is where the -lpthread comes from. But if you
look at the mysqlclient library itself, you'll see that it doesn't link
to libpthread.
sanctum $ ldd /usr/pkg/lib/mysql/libmysqlclient.so | grep thread
sanctum $ ldd /usr/pkg/lib/mysql/libmysqlclient_r.so | grep thread
-lpthread.20 => /usr/pkg/lib/libpthread.so.20
The correct fix is to either add .include "../../mk/pthread.buildlink3.mk"
to mysql*-client/buildlink3.mk, or to modify mysql_config to stop
reporting -lpthread. I suspect the latter, since recently
libmysqlclient was explicitly changed to stop depending on pthread.
see pkg/28162
Cheers,
Ben
> Date: Sun, 21 Nov 2004 15:01:06 +0000 (UTC)
> From: Krister Walfridsson <kristerw@netbsd.org>
> To: pkgsrc-changes@NetBSD.org
> Subject: CVS commit: pkgsrc/databases/p5-DBD-mysql
> Message-Id: <20041121150106.0AB9E2DA1D@cvs.netbsd.org>
>
> Module Name: pkgsrc
> Committed By: kristerw
> Date: Sun Nov 21 15:01:06 UTC 2004
>
> Modified Files:
> pkgsrc/databases/p5-DBD-mysql: Makefile
>
> Log Message:
> This package uses pthreads, so we need to include
> mk/pthread.buildlink3.mk.
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.24 -r1.25 pkgsrc/databases/p5-DBD-mysql/Makefile