Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2013 13:30:01 GMT
From:      Spil Oss <spil.oss@gmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/181798: Ports specifying WANT_MYSQL_VER failing with MariaDB
Message-ID:  <201309041330.r84DU1cd072144@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/181798; it has been noted by GNATS.

From: Spil Oss <spil.oss@gmail.com>
To: bug-followup@FreeBSD.org, spil oss <spil.oss@gmail.com>
Cc:  
Subject: Re: ports/181798: Ports specifying WANT_MYSQL_VER failing with MariaDB
Date: Wed, 4 Sep 2013 15:25:25 +0200

 Meanwhile I've created a patch that works for me (tested with
 mail/dspam and databases/p5-DBD-mysql)
 
 ==== BEGIN PATCH
 --- bsd.database.mk.orig        2013-08-05 21:43:39.000000000 +0200
 +++ bsd.database.mk     2013-09-04 15:22:30.070278068 +0200
 @@ -132,7 +132,13 @@
  .if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER} != ${WANT_MYSQL_VER}
  IGNORE=                cannot install: the port wants
 mysql${WANT_MYSQL_VER}-client and you try to install
 mysql${WITH_MYSQL_VER}-client
  .endif
 -MYSQL_VER=     ${WANT_MYSQL_VER}
 +.if ${_PERCONA} == 1
 +MYSQL_VER=     ${WANT_MYSQL_VER}p
 +.elif ${_MARIADB} == 1
 +MYSQL_VER=      ${WANT_MYSQL_VER}m
 +.else
 +MYSQL_VER=      ${WANT_MYSQL_VER}
 +.endif
  .elif defined(WITH_MYSQL_VER)
  MYSQL_VER=     ${WITH_MYSQL_VER}
  .else
 ==== END PATCH



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