Bug 1470529

Summary: mariadb library upgrade to 10.2 causes FTBFS
Product: [Fedora] Fedora Reporter: Honza Horak <hhorak>
Component: rubygem-mysql2Assignee: Alex Chernyakhovsky <achernya>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: achernya, awilliam
Target Milestone: ---Keywords: Patch
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-07-14 16:28:21 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: 1467297    
Attachments:
Description Flags
Proposed patch none

Description Honza Horak 2017-07-13 06:26:27 UTC
Created attachment 1297432 [details]
Proposed patch

Description of problem:
With new version of MariaDB 10.2 we see basically this build issue:

In file included from /usr/include/ruby/ruby.h:36:0,
                 from /usr/include/ruby.h:33,
                 from ./mysql2_ext.h:10,
                 from client.c:1:
client.c: In function 'rb_mysql_client_info':
client.c:47:30: error: 'MYSQL_SERVER_VERSION' undeclared (first use in this function); did you mean 'MYSQL_LINK_VERSION'?
   #define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION

Comment 1 Adam Williamson 2017-07-14 01:57:17 UTC
This was actually done upstream in 0.4.8:

https://github.com/brianmario/mysql2/commit/8ad9293795a9fce9ef2ccd650b2af62518ada476

I've committed a 0.4.8 bump ready for building (when the current s390 mess is sorted out).

Comment 2 Adam Williamson 2017-07-14 16:28:21 UTC
Build is in progress now: https://koji.fedoraproject.org/koji/taskinfo?taskID=20526251