Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1493628 - Use mariadb-connector-c-devel instead of mysql-devel or mariadb-devel
Summary: Use mariadb-connector-c-devel instead of mysql-devel or mariadb-devel
Alias: None
Product: Fedora
Classification: Fedora
Component: kea
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Pavel Zhukov
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: 1486480
TreeView+ depends on / blocked
Reported: 2017-09-20 15:22 UTC by Michal Schorm
Modified: 2018-05-24 18:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-10-12 15:35:44 UTC
Type: Bug

Attachments (Terms of Use)

Description Michal Schorm 2017-09-20 15:22:45 UTC
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.

Comment 1 Ryan Goodfellow 2018-05-24 18:25:53 UTC
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

This change seems to have been implemented in the rpm source for f28

And f27 also uses the mariadb libs

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

Note You need to log in before you can comment on or make changes to this bug.