Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2016 23:13:12 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Kurt Jaeger <lists@opsec.eu>, freebsd-ports@freebsd.org
Subject:   Re: How to set mariadb in /etc/make.conf DEFAULT_VERSIONS ?
Message-ID:  <56C24D78.30602@quip.cz>
In-Reply-To: <20160215211006.GO26283@home.opsec.eu>
References:  <20160215211006.GO26283@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
Kurt Jaeger wrote on 02/15/2016 22:10:
> Hi!
>
> What is the correct way to set the DEFAULT_VERSIONS to mariadb
> in /etc/make.conf ?
>
> I looked at /usr/ports/Mk/bsd.default-versions.mk.
>
> In /usr/ports/Mk/bsd.database.mk it looks like 101m is a valid value,
> which would map to
>
> DEFAULT_VERSIONS= mysql=10.1m
>
> Would this work ?

I am not using 10.1, I am on 5.5 and have this in make.conf

DEFAULT_VERSIONS=apache=2.4 perl5=5.20 mysql=5.5m php=5.5 python=3.4 
pgsql=9.3

So if you want 10.1, you should use
DEFAULT_VERSIONS=mysql=10.1m

If somebody wants 10.0, then
DEFAULT_VERSIONS=mysql=10.0m

"m" is for MariaDB
"p" is for Percona


I think DEFAULT_MYSQL_VER=101m is wrong. bsd.detabase.mk has this warning:

.if defined(DEFAULT_MYSQL_VER)
WARNING+=       "DEFAULT_MYSQL_VER is defined, consider using 
DEFAULT_VERSIONS=mysql=${DEFAULT_MYSQL_VER} instead"
.endif

Miroslav Lachman



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