Hello, please apply following command to the package SPECfile: sed -i "s/mysql-devel/mariadb-connector-c-devel/" $(fedpkg gimmespec) ; \ sed -i "s/mariadb-devel/mariadb-connector-c-devel/" $(fedpkg gimmespec) ; \ sed -i "s/%{_libdir}\/mysql/%{_libdir}\/mariadb/" $(fedpkg gimmespec) ; I've tested, that after the command ^ the package builds successfuly in KOJI and uses mariadb client library. This change is currently applicable to the Rawhide (f28) only. For more information check the tracking bugzilla.
This breaks kea-dhcp4. Even though kea will still compile, using the mariadb instead of the mysql libs breaks the kea-dhcp4 lease mechanisim. Based on information here http://kea-users.7364.n8.nabble.com/Kea-users-Kea-server-problem-with-MariaDB-server-td307.html This change seems to have been implemented in the rpm source for f28 https://src.fedoraproject.org/cgit/rpms/kea.git/tree/kea.spec?h=f28#n293 And f27 also uses the mariadb libs https://src.fedoraproject.org/cgit/rpms/kea.git/tree/kea.spec?h=f27#n27 I have observed the lease failure behavior described in the mailing list reference above on f27. Here is a patch that I have built, tested and verified that kea-dhcp4 leases work with mariadb. diff --git a/kea.spec b/kea.spec index 2ef1e0f..de64229 100644 --- a/kea.spec +++ b/kea.spec @@ -22,7 +22,7 @@ BuildRequires: gcc-c++ # %%configure --with-openssl BuildRequires: compat-openssl10-devel # %%configure --with-dhcp-mysql -BuildRequires: mariadb-connector-c-devel +BuildRequires: community-mysql-devel # %%configure --with-dhcp-pgsql BuildRequires: postgresql-devel BuildRequires: log4cplus-devel For reference here is a f27 Dockerfile that performs the build that I tested https://github.com/rcgoodfellow/fedorka/blob/master/kea/27/1.3/Dockerfile