From nobody@FreeBSD.org  Tue Dec  7 11:36:10 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BC6E1106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2010 11:36:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id AC3DB8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2010 11:36:10 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oB7BaAKX087326
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Dec 2010 11:36:10 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oB7BaAZZ087325;
	Tue, 7 Dec 2010 11:36:10 GMT
	(envelope-from nobody)
Message-Id: <201012071136.oB7BaAZZ087325@red.freebsd.org>
Date: Tue, 7 Dec 2010 11:36:10 GMT
From: Peter Vereshagin <peter@vereshagin.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: (databases/mariadb) postfix unable to look up mariadb maps
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: siasiamail@gmail.com

>Number:         152885
>Category:       ports
>Synopsis:       databases/mariadb: postfix unable to look up mariadb maps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 11:40:02 UTC 2010
>Closed-Date:    Sun Feb 20 06:12:53 UTC 2011
>Last-Modified:  Sun Feb 20 06:12:53 UTC 2011
>Originator:     Peter Vereshagin
>Release:        RELENG_7 as of September 2010
>Organization:
Private
>Environment:
FreeBSD thesome.host 7.3-STABLE FreeBSD 7.3-STABLE #4: Fri Nov 19 13:37:51 MSK 2010     user@some.host:/usr/local/obj/usr/local/src/sys/JUICY  i386
>Description:
after mysql to mariadb drop-in replacement postfix does not start and does not rebuild as "Unknown MySQL version: 52"
5.2.3 is a version reported by mariadb port

>How-To-Repeat:
pkg_delete -fx mysql-client
portinstall databases/mariadb
>Fix:
Patch for ports is supplied

Patch attached with submission follows:

--- Mk/bsd.database.mk.orig	2010-09-21 16:20:26.000000000 +0400
+++ Mk/bsd.database.mk	2010-12-07 13:53:54.000000000 +0300
@@ -111,6 +111,7 @@
 MYSQL41_LIBVER=		14
 MYSQL50_LIBVER=		15
 MYSQL51_LIBVER=		16
+MYSQL52_LIBVER=		16
 MYSQL55_LIBVER=		16
 
 # Setting/finding MySQL version we want.
@@ -158,8 +159,12 @@
 BUILD_DEPENDS+=	${LOCALBASE}/lib/mysql/libmysqld.a:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
 .endif
 .else
+.if (${MYSQL_VER} == "52")
+LIB_DEPENDS+=	mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mariadb
+.else
 LIB_DEPENDS+=	mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client
 .endif
+.endif
 .else
 IGNORE=		cannot install: unknown MySQL version: ${MYSQL_VER}
 .endif # Check for correct libs
--- databases/mariadb/Makefile.orig	2010-11-17 19:57:21.000000000 +0300
+++ databases/mariadb/Makefile	2010-12-07 14:08:34.000000000 +0300
@@ -72,4 +72,7 @@
 MAN8=		mysqld.8 \
 		mysqlmanager.8
 
+post-install:
+USE_LDCONFIG=   ${PREFIX}/lib/mysql
+
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Dec 7 11:40:10 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152885 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: siasiamail@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/152885: (databases/mariadb) postfix unable to look up mariadb maps
Date: Tue, 7 Dec 2010 11:40:08 UT

 Maintainer of databases/mariadb,
 
 Please note that PR ports/152885 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/152885
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: =?KOI8-R?B?4dLUxc0g78zY28XX08vJyg==?= <siasiamail@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/152885: (databases/mariadb) postfix unable to look up
 mariadb maps
Date: Tue, 7 Dec 2010 14:47:56 +0200

 --0016363b84acf02c3c0496d1696d
 Content-Type: text/plain; charset=ISO-8859-1
 
 This patch looks reasonable. It's great to support such migration for
 postfix.
 
 --0016363b84acf02c3c0496d1696d--
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Wed Dec 8 06:12:06 UTC 2010 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152885 
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: sunpoet 
Responsible-Changed-When: Wed Dec 29 05:46:12 UTC 2010 
Responsible-Changed-Why:  
I will take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152885 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/152885: commit references a PR
Date: Sat,  1 Jan 2011 16:55:29 +0000 (UTC)

 sunpoet     2011-01-01 16:55:24 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/mariadb    Makefile 
   Log:
   - Fix USE_LDCONFIG
   
   PR:             ports/152885
   Submitted by:   Peter Vereshagin <peter@vereshagin.org>
   Approved by:    Artyom Olshevskiy <siasiamail@gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.2       +1 -1      ports/databases/mariadb/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: sahil 
State-Changed-When: Sun Feb 20 06:12:51 UTC 2011 
State-Changed-Why:  
Committed, but PR was never closed. 

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