Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#61229 - [libperconaserverclient] mysql_config installed as perconaserver_config

Attached to Project: Community Packages
Opened by Segey Tereschenko (partizan) - Tuesday, 01 January 2019, 13:52 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Thursday, 03 January 2019, 12:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

mysql_config installed as perconaserver_config, this breaks mysqlclient installation via pip


Additional info:
* libperconaserverclient 8.0.13_3-1

Steps to reproduce:

> virtualenv test
> ./test/bin/pip install mysqlclient

OSError: mysql_config not found
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Thursday, 03 January 2019, 12:12 GMT
Reason for closing:  Won't implement
Comment by Massimiliano Torromeo (mtorromeo) - Thursday, 03 January 2019, 10:32 GMT
This was done on purpose as to not conflict with libmariadbclient.
Use libmariadbclient to build mysqlclient. The resulting library will work just fine with percona-server.
Comment by Segey Tereschenko (partizan) - Thursday, 03 January 2019, 10:36 GMT
It should conflict with libmariadbclient and replace it.

If i use libmariadbclient to build mysqlclient, it will not support caching_sha2_password plugin, and will fail to authenticate with percona-server.
Comment by Segey Tereschenko (partizan) - Thursday, 03 January 2019, 11:03 GMT
But replacing libmariadbclient breaks mysql integration in powerdns (and probably some other packages).

pdns_server[32517]: Unable to load module '/usr/lib/powerdns/libgmysqlbackend.so': libmysqlclient.so.18: cannot open shared object file

Probably it's better to leave it as is.
Comment by Massimiliano Torromeo (mtorromeo) - Thursday, 03 January 2019, 11:26 GMT
Yes, there are more downsides than upsides by replacing libmariadbclient because most packages are directly built against it.
To build mysqlclient as you need I guess you have to patch it to look for perconaserver_config instead of mysql_config.
Maybe you can create a symlink from perconaserver_config to mysql_config inside your virtualenv/usr/bin (I didn't try).
Comment by Segey Tereschenko (partizan) - Thursday, 03 January 2019, 11:46 GMT
Yes, it worked. Thanks.

Loading...