How to set mariadb in /etc/make.conf DEFAULT_VERSIONS ?

Miroslav Lachman 000.fbsd at quip.cz
Mon Feb 15 22:21:03 UTC 2016


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


More information about the freebsd-ports mailing list