Bug 1471139 - mariadb library upgrade to 10.2 causes mysql++ FTBFS
Summary: mariadb library upgrade to 10.2 causes mysql++ FTBFS
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mysql++
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Björn Persson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1467297
TreeView+ depends on / blocked
 
Reported: 2017-07-14 13:45 UTC by Augusto Caringi
Modified: 2018-08-09 17:36 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-07-21 19:14:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to allow compilation of mysql++ with MariaDB 10.2 (486 bytes, patch)
2017-07-14 13:45 UTC, Augusto Caringi
no flags Details | Diff

Description Augusto Caringi 2017-07-14 13:45:57 UTC
Created attachment 1298334 [details]
Patch to allow compilation of mysql++ with MariaDB 10.2

Trying to build mysql++ with the new version of MariaDB 10.2 causes a build error:

./lib/dbdriver.cpp:260:10: error: 'CLIENT_LONG_PASSWORD' was not declared in this scope
    (o >= CLIENT_LONG_PASSWORD) &&
          ^~~~~~~~~~~~~~~~~~~~
./lib/dbdriver.cpp:260:10: note: suggested alternative: 'CLIENT_LONG_FLAG'
    (o >= CLIENT_LONG_PASSWORD) &&
          ^~~~~~~~~~~~~~~~~~~~
          CLIENT_LONG_FLAG

In this new version of the library the define CLIENT_LONG_PASSWORD was dropped. I attached a patch proposal to fix the problem.

We are tracking all the possible problems regarding this MariaDB upgrade in the bug 1467297.

Copr build: https://copr.fedorainfracloud.org/coprs/g/db-sig/mariadb-10.2/package/mysql++/

Comment 1 Adam Williamson 2017-07-21 18:45:51 UTC
Upstream ticket: https://tangentsoft.com/mysqlpp/tktview?name=4f077284dd

I have posted a link to the patch there.

Comment 2 Adam Williamson 2017-07-21 19:14:28 UTC
Rawhide build with patch complete: https://koji.fedoraproject.org/koji/taskinfo?taskID=20650496

Comment 3 Warren Young 2017-09-08 17:44:40 UTC
This is fixed upstream in checkin [e5f2c3d83f]. The trunk currently contains MySQL++ 3.2.3 plus some low-risk changes you may also want, so it is up to you whether you ship the MySQL++ trunk or maintain this patch in your 3.2.3 package until the next version of MySQL++ comes out, which will have this patch.

Comment 4 Warren Young 2018-07-28 14:05:27 UTC
MySQL++ 3.2.4 is out with a fix for this, as well as other improvements to track changes in the external world: new OSes, new C++ compilers, and new versions of MariaDB.

It's a bug fix only release, so it should be safe to drop in place of 3.2.3.

Comment 5 Björn Persson 2018-08-09 17:36:56 UTC
For your information, MySQL++ 3.2.4 is now built in Rawhide and will be included in Fedora 29.


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