Bug 1493628

Summary: Use mariadb-connector-c-devel instead of mysql-devel or mariadb-devel
Product: [Fedora] Fedora Reporter: Michal Schorm <mschorm>
Component: keaAssignee: Pavel Zhukov <pzhukov>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jpopelka, pzhukov, rcgoodfellow, thozza, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-12 15:35:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1486480    

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