From phil@philpep.org  Mon Apr  5 19:56:56 2010
Return-Path: <phil@philpep.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8D0F1106572C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2010 19:56:56 +0000 (UTC)
	(envelope-from phil@philpep.org)
Received: from squat.philpep.org (trotski.philpep.org [IPv6:2001:470:1f15:7bf:dead:c0de:0:4])
	by mx1.freebsd.org (Postfix) with ESMTP id 3D4798FC1C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2010 19:56:56 +0000 (UTC)
Received: from shen.philpep.org (shen.philpep.org [IPv6:2001:470:1f15:7bf:dead:c0de:0:2])
	by trotski.philpep.org (Postfix) with SMTP id EAAE8AC822
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Apr 2010 21:56:43 +0200 (CEST)
Received: by shen.philpep.org (sSMTP sendmail emulation); Mon, 05 Apr 2010 21:56:54 +0200
Message-Id: <20100405195656.8D0F1106572C@hub.freebsd.org>
Date: Mon, 05 Apr 2010 21:56:54 +0200
From: "Philippe Pepiot" <phil@philpep.org>
Reply-To: Philippe Pepiot <phil@philpep.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] database/mysql50-server
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         145417
>Category:       ports
>Synopsis:       [PATCH] databases/mysql50-server: fix error : Shared object "libmysqlclient.so.15" not found.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 05 20:00:19 UTC 2010
>Closed-Date:    Tue Apr 06 10:48:48 UTC 2010
>Last-Modified:  Tue Apr 06 10:48:48 UTC 2010
>Originator:     Philippe Pepiot
>Release:        FreeBSD 8.0-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD shen.philpep.org 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0 r202418: Fri Jan 15 22:29:53 CET 2010 root@shen.philpep.org:/usr/obj/usr/src/sys/SHEN i386


	
>Description:
	$PREFIX/libdata/ldconfig/mysql is missing in pkg-plist.client, when mysql50-client is used as a
	package some server daemon cannot be launched at boot. Causing this error : Shared object "libmysqlclient.so.15" not found.
>How-To-Repeat:
	$ make -C /usr/ports/database/mysql50-client package
	$ cat /usr/local/libdata/ldconfig/mysql
	/usr/local/lib/mysql
	# On another machine
	$ pkg_add -r ./mysql-client-5.0.90.tbz
	$ cat /usr/local/libdata/ldconfig/mysql
	cat: /usr/local/libdata/ldconfig/mysql: No such file or directory
>Fix:

	

--- mysql50_server.patch begins here ---
diff -ru mysql50-server.orig/pkg-plist.client mysql50-server/pkg-plist.client
--- mysql50-server.orig/pkg-plist.client	2010-04-05 21:44:37.000000000 +0200
+++ mysql50-server/pkg-plist.client	2010-04-05 21:43:12.000000000 +0200
@@ -52,6 +52,7 @@
 lib/mysql/libmysqlclient_r.la
 lib/mysql/libmysqlclient_r.so
 lib/mysql/libmysqlclient_r.so.15
+libdata/ldconfig/mysql
 %%DATADIR%%/mysql_fix_privilege_tables.sql
 @dirrm include/mysql
 @dirrm lib/mysql
--- mysql50_server.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Apr 5 21:05:42 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145417 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Tue Apr 6 10:48:12 UTC 2010 
State-Changed-Why:  
Bogus. That file should be in the package, if correctly created. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145417 
>Unformatted:
