Bug 1470854

Summary: mariadb library upgrade to 10.2 causes FTBFS
Product: [Fedora] Fedora Reporter: Honza Horak <hhorak>
Component: python-mysqlAssignee: Jakub Dorňák <jakub.dornak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, jakub.dornak
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:20:17 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 20:04:42 UTC
Created attachment 1297847 [details]
Proposed patch

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

_mysql.c: In function '_mysql_ConnectionObject_ping':
_mysql.c:1911:41: error: 'MYSQL {aka struct st_mysql}' has no member named 'reconnect'
  if ( reconnect != -1 ) self->connection.reconnect = reconnect;
                                         ^
error: command 'gcc' failed with exit status 1

Comment 1 Adam Williamson 2017-07-14 02:08:19 UTC
Approximately the same fix has been committed to upstream master already:

https://github.com/PyMySQL/mysqlclient-python/commit/1693848c9f6ca863868d94d63499830f7f4f3a1f

I will commit a backport to the package, ready for building when the current s390 mess is sorted out.

Comment 2 Adam Williamson 2017-07-14 16:20:17 UTC
Build is done: https://koji.fedoraproject.org/koji/taskinfo?taskID=20525876