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
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kea
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Zhukov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
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:
Clone Of:
Environment:
Last Closed: 2017-10-12 15:35:44 UTC
Type: Bug
Embargoed:


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

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


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