Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831664 - mysql-connector-c++ 8.x still references obsolete mysqlclient_r library name
Summary: mysql-connector-c++ 8.x still references obsolete mysqlclient_r library name
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 707784 822027
  Show dependency tree
 
Reported: 2022-01-21 07:02 UTC by Hans de Graaff
Modified: 2022-10-17 05:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mysql-connector-c++-mysqlclient_r.patch (mysql-connector-c++-mysqlclient_r.patch,1.04 KB, patch)
2022-01-21 07:02 UTC, Hans de Graaff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2022-01-21 07:02:32 UTC
Created attachment 762936 [details, diff]
mysql-connector-c++-mysqlclient_r.patch

mysql-workbench has been stuck on an old version of mysql-connector-c++ because newer versions would not work correctly as they would try to load the obsolete libmysqlclient_r library. This version no longer exists in newer versions of mysql-connector-c. It turns out that mysql-connector-c++ has hard-coded references to this library but since we don't install compatibility symlinks this hardcoded reference will fail.

With the attached patch mysql-workbench no longer fails to connect to databases when using mysql-connector-c++.
Comment 1 Larry the Git Cow gentoo-dev 2022-10-17 05:32:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75c4fa458ee594581dc4ecff5f1423db75ed2716

commit 75c4fa458ee594581dc4ecff5f1423db75ed2716
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2022-10-17 05:30:01 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2022-10-17 05:32:33 +0000

    dev-db/mysql-connector-c++: fix loading libmysqlclient.so
    
    mysql-workbench would fail with mysql-connector-c++ 8.x because it
    would try to load the obsolete libmysqlclient_r library. This version
    no longer exists in newer versions of mysql-connector-c. It turns out
    that mysql-connector-c++ has hard-coded references to this library
    but since we don't install compatibility symlinks this hardcoded
    reference will fail.
    
    Closes: https://bugs.gentoo.org/831664
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../mysql-connector-c++-8.0.27-mysqlclient_r.patch | 24 ++++++++++++
 .../mysql-connector-c++-8.0.27-r1.ebuild           | 45 ++++++++++++++++++++++
 2 files changed, 69 insertions(+)