RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1166603 - MariaDB 5.5.40 update breaks a number of packages including MySQL-python
Summary: MariaDB 5.5.40 update breaks a number of packages including MySQL-python
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: mariadb
Version: 7.1
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: 7.1
Assignee: Honza Horak
QA Contact: qe-baseos-daemons
URL: https://mariadb.atlassian.net/browse/...
Whiteboard:
: 1180261 1180466 (view as bug list)
Depends On:
Blocks: 1109875 1133060 1155673 1165007 1168850 1175624 1177836 1179458 1180596 1188317
TreeView+ depends on / blocked
 
Reported: 2014-11-21 10:44 UTC by Robert Buchholz
Modified: 2019-02-15 13:53 UTC (History)
24 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
* Due to an incorrect check for the build environment in the MariaDB header file, packages that require the mariadb-devel packages for building failed to build with an error massage. This update fixes the check for the build environment in the mysql.h file, so that the check is applied only when expected. As a result, software that requires mariadb-devel now builds successfully.
Clone Of:
: 1177836 1188317 (view as bug list)
Environment:
Last Closed: 2015-03-10 00:52:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1313553 0 None None None Never

Description Robert Buchholz 2014-11-21 10:44:19 UTC
Description of problem:
The fast-tracked security update for MariaDB from 5.5.37 to mariadb-5.5.40-1.el7_0 introduced a strict check in /usr/include/mysql/my_config.h

This check breaks the latest release (1.2.5) of MySQL-python aka MySQLdb. This is already fixed upstream and slated to be released as 5.5.41.

See upstream issue:
https://mariadb.atlassian.net/browse/MDEV-6862

Version-Release number of selected component (if applicable):
mariadb-5.5.40-1.el7_0

How reproducible:
Always

Steps to Reproduce:
1. pip install MySQL-python

Actual results:
Downloading/unpacking MySQL-python>=1.2.1
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
...
    In file included from /usr/include/mysql/my_config.h:14:0,
                     from _mysql.c:44:
    /usr/include/mysql/my_config_x86_64.h:654:2: error: #error <my_config.h> MUST be included first!
     #error <my_config.h> MUST be included first!
      ^
    error: command 'gcc' failed with exit status 1
    Complete output from command /home/zope/virtualenv_zms2/bin/python -c "import setuptools, tokenize;__file__='/home/zope/virtualenv_zms2/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ivNjkp-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/zope/virtualenv_zms2/include/site/python2.7:
    running install


Expected results:
Installs correctly

Comment 2 Robert Buchholz 2014-11-24 09:04:55 UTC
It seems this is the fix that was pushed upstream:
https://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4355

Comment 3 Honza Horak 2014-11-24 11:43:35 UTC
Robert, thank you very much for the report and provided fix.

Comment 10 Honza Horak 2014-12-17 09:18:14 UTC
Doc Text updated.

Just for anybody who needs to get over this bug, there are couple of workarounds:
* use older package to build with (other than mariadb-devel-5.5.40)
* change the header file locally according to: https://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/4355
* include my_config.h before features.h in the depended application

Comment 12 Peter Robinson 2014-12-20 01:08:34 UTC
php gets added to the list of breakage

https://brewweb.devel.redhat.com/taskinfo?taskID=8414652

Comment 13 Mattias Ellert 2014-12-22 10:33:27 UTC
When can we expect this fix to propagate to the EPEL 7 build root?

Comment 35 Joe Orton 2015-01-12 16:36:01 UTC
*** Bug 1180261 has been marked as a duplicate of this bug. ***

Comment 36 Joe Orton 2015-01-12 16:36:02 UTC
*** Bug 1180466 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.