Bug 1493660

Summary: Use mariadb-connector-c-devel instead of mysql-devel or mariadb-devel
Product: [Fedora] Fedora Reporter: Michal Schorm <mschorm>
Component: tcl-mysqltclAssignee: Rene Ploetz <reneploetz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jtfas90, reneploetz
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-11-02 15:38:48 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 16:14:01 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 Rene Ploetz 2017-11-01 23:22:32 UTC
I tried to update the package today but failed twice in koji, first the library was moved from %{_libdir}/mariadb to %{_libdir} and mirrors are still using the .11 client library instead of the koji update .12 that changed that behaviour.

After I changed the path to %{_libdir}, the koji build fails due to a mariadb-connector-c (or some koji issues?!)
https://koji.fedoraproject.org/koji/buildinfo?buildID=993332

The install into buildroot on koji essentially fails with (see root.log for any arch):
DEBUG util.py:439:  Error: 
DEBUG util.py:439:   Problem: conflicting requests
DEBUG util.py:439:    - nothing provides pkconfig(openssl) needed by mariadb-connector-c-devel-3.0.2-17.fc28.x86_64 


It worked locally in mock with version .16 but fails everytime with .17 - so I need to wait for a working version of the dependency and test locally and rerun on koji.

Comment 2 Michal Schorm 2017-11-02 00:09:42 UTC
1)
"pkconfig(openssl)" was typo. Fixed in release 18.
It should be already available in buildroot in KOJI.

2)
Yes, I recently moved the library to the libdir. Thanks for reminder, that i should update the tracked bugs with new path.
I was forced to move it beacuse of crazy issues with the libdir/mariadb, libdir/mysql directories and symlinks to them bugs.

Comment 3 Rene Ploetz 2017-11-02 15:38:48 UTC
Thanks for the clarifications, I updated the koji build for rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=22865153