aland at deployingradius.com
Wed Oct 17 20:13:13 CEST 2018
On Oct 17, 2018, at 2:09 PM, Geaaru <geaaru at gmail.com> wrote:
> i'm ebuild maintainer of Freeradius package in Gentoo and i'm trying to
> handle correctly changes related with api changes between mariadb and
> mysql client libraries.
Hopefully the changes aren't too bad...
> Current mysql freeradius driver use standard mysql C functions so I
> think that there aren't needed changes about behaviour about this but
> I have some questions:
> Currently Gentoo permits to install both mysql client libraries for
> Mariadb and Mysql with a different path for Mariadb
> (/usr/include/mariadb/mysql.h) instead of standard classic
> (/usr/include/mysql/mysql.h) and in the same manner with a different
> naming on client libraries.
> For this, what could be a better solution for support both library from
> Freeradius devs side ?
> a) add a new driver rlm_sql_mariadb with different include
> instruction and a different linking library ?
> b) customize rlm_sql_mysql driver for support both... fwis it's
> seems that configure try to check for libmysqlclient library also with
> option --with-mysql-lib-dir
> and with Mariadb linking it's for libmariadb.
I'd say (b). I think it should be little more than updating the configure script to check for both MySQL and mariadb.
More information about the Freeradius-Devel