Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777573 - dev-db/mariadb: incorrect pkg-config file
Summary: dev-db/mariadb: incorrect pkg-config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-21 19:35 UTC by Bernd
Modified: 2021-03-23 00:08 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-03-21 19:35:45 UTC
Mariadb version 10.5.9-r3 installs a pkg-config file, which refers to -lmariadb in its Libs section, but there's no libmariadb* file installed by the package.

# find /usr/lib64 -name '*mariadb*'
/usr/lib64/mariadb
/usr/lib64/mariadb/plugin/auth_pam_tool_dir/.keep_dev-db_mariadb-10.5
/usr/lib64/pkgconfig/mariadb.pc

and

# qlist mariadb | grep lib64
/usr/lib64/mariadb/plugin/auth_pam_tool_dir/.keep_dev-db_mariadb-10.5
/usr/lib64/mariadb/plugin/auth_pam_tool_dir/auth_pam_tool
/usr/lib64/mariadb/plugin/auth_ed25519.so
/usr/lib64/mariadb/plugin/auth_pam_v1.so
/usr/lib64/mariadb/plugin/auth_pam.so
/usr/lib64/mariadb/plugin/disks.so
/usr/lib64/mariadb/plugin/file_key_management.so
/usr/lib64/mariadb/plugin/func_test.so
/usr/lib64/mariadb/plugin/handlersocket.so
/usr/lib64/mariadb/plugin/locales.so
/usr/lib64/mariadb/plugin/metadata_lock_info.so
/usr/lib64/mariadb/plugin/query_cache_info.so
/usr/lib64/mariadb/plugin/query_response_time.so
/usr/lib64/mariadb/plugin/server_audit.so
/usr/lib64/mariadb/plugin/simple_password_check.so
/usr/lib64/mariadb/plugin/sql_errlog.so
/usr/lib64/mariadb/plugin/test_sql_service.so
/usr/lib64/mariadb/plugin/type_mysql_json.so
/usr/lib64/mariadb/plugin/type_test.so
/usr/lib64/pkgconfig/mariadb.pc
/usr/lib64/libmysqlservices.a


Reproducible: Always




I encountered this, while testing my vtk-9.0.1 PR (https://github.com/gentoo/gentoo/pull/15966) with USE=mysql, which tries to link against libmariadb. Changing -lmariadb to -lmysqlservices in the pkg-config file, let the build of the PR succeed.

See also bug #774831 with a in-tree package with the same error, I encounter, eventually due to using the pkg-config file.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-22 16:20:44 UTC
Not unique to mariadb:10.5.

But for me the problem looks different. The package shouldn't install mariadb.pc at all.

sci-libs/vtk and net-im/coturn are probably doing something wrong. I assume they only want to link against mysql client lib to be able to connect to a mysql server. In this case please have a look at See https://archives.gentoo.org/gentoo-dev-announce/message/618f39bce863911d8955ee9f83636ca4
Comment 2 Larry the Git Cow gentoo-dev 2021-03-22 17:46:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a9c5ee98208896de445430bbe0bcc024c806332

commit 6a9c5ee98208896de445430bbe0bcc024c806332
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-03-22 17:41:03 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-03-22 17:46:48 +0000

    dev-db/mariadb: don't install mariadb.pc file
    
    Closes: https://bugs.gentoo.org/774831
    Closes: https://bugs.gentoo.org/777573
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-db/mariadb/Manifest                                           | 8 ++++----
 .../{mariadb-10.2.37-r2.ebuild => mariadb-10.2.37-r3.ebuild}      | 2 +-
 .../{mariadb-10.3.28-r2.ebuild => mariadb-10.3.28-r3.ebuild}      | 2 +-
 .../{mariadb-10.4.18-r2.ebuild => mariadb-10.4.18-r3.ebuild}      | 2 +-
 .../{mariadb-10.5.9-r3.ebuild => mariadb-10.5.9-r4.ebuild}        | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
Comment 3 Bernd 2021-03-23 00:08:21 UTC
Thanks Thomas, you were right for at least sci-libs/vtk. Depending on dev-db/{mysql,mariadb}-connector-c is enough to build with mysql support.