Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2010 11:36:10 GMT
From:      Peter Vereshagin <peter@vereshagin.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152885: (databases/mariadb) postfix unable to look up mariadb maps
Message-ID:  <201012071136.oB7BaAZZ087325@red.freebsd.org>
Resent-Message-ID: <201012071140.oB7Be2hw032534@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152885
>Category:       ports
>Synopsis:       (databases/mariadb) postfix unable to look up mariadb maps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 11:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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