Bug 1494105

Summary: Use mariadb-connector-c-devel instead of mysql-devel or mariadb-devel
Product: [Fedora] Fedora Reporter: Michal Schorm <mschorm>
Component: rubygem-mysql2Assignee: Jun Aruga <jaruga>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: acaringi, achernya, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-mysql2-0.4.10-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-18 11:22:24 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    
Attachments:
Description Flags
patch to spec file
none
Patch to allow compilation of rubygem-mysql2 against MariaDB C/C 3.x none

Description Michal Schorm 2017-09-21 12:59:58 UTC
Hello, MariaDB went through big changes and your package will need a patch in order to build and work properly.

I tried to solve the issue, but I wasn't successful yet (at the time of bug creation).
I'll look into it more and post here the patch eventualy.


This change is currently applicable to the Rawhide (f28) only.


You can check builds I tried in COPR:
https://copr.fedorainfracloud.org/coprs/g/db-sig/mariadb-10.2/packages/



For more information check the tracking bugzilla.

Comment 1 Augusto Caringi 2017-10-17 16:01:16 UTC
Hi,

    Upstream is already aware of this problem:

    https://github.com/brianmario/mysql2/issues/878

    I'm attaching a patch to fix the build and also a patch with small changes that must be applied to the spec file (to use mariadb-connector-c-devel, and add openssl-devel as a build time dependency)

    Link to built packages:

    https://copr.fedorainfracloud.org/coprs/g/db-sig/mariadb-10.2/build/639669/

Comment 2 Augusto Caringi 2017-10-17 16:01:57 UTC
Created attachment 1339801 [details]
patch to spec file

Comment 3 Augusto Caringi 2017-10-17 16:03:02 UTC
Created attachment 1339802 [details]
Patch to allow compilation of rubygem-mysql2 against MariaDB C/C 3.x