[debian-mysql] Bug#878340: libmariadbclient-dev-compat: mysqlclient.pc is not visible to pkg-config

Otto Kekäläinen otto at seravo.fi
Sun Jan 6 18:01:41 GMT 2019


Hello Nikolay!

Thanks for submitting the bug report below in late 2017. Sorry that I
did not respond to it this year and apparently nobody else responded
to it last year either.
It should be fixed now in
https://salsa.debian.org/mariadb-team/mariadb-10.3/commits/bugfix/878340-mysqlclient.pc-path

One problem we have with the MariaDB package in Debian (and also in
upstream mariadb.org repos) is that there hasn't been any automated or
complete testing system for compiling software using the MariaDB libs.
I have now built something simple in
https://salsa.debian.org/mariadb-team/mariadb-10.3/blob/master/debian/gitlab-ci.yml#L200-234

I would appreciate very much if you would like to contribute to
MariaDB in Debian and extend that test code so that it would actually
build/compile a small sample program first using the libmysqlclient
libs and then re-doing it with the MariaDB equivalent installed.

I prefer contributions as merge requests on Debian's new Gitlab
instance called Salsa:
https://wiki.debian.org/Teams/MySQL/patches

Maintaining MariaDB in Debian is a very big task and I appreciate all
help I get that decreases my workload. Thanks for your previous
contributions and hopefully you can continue contributing!





pe 13. lokak. 2017 klo 1.48 Nikolay Dimitrov
(nikolay.dimitrov at retrohub.org) kirjoitti:
>
> Package: libmariadbclient-dev-compat
> Version: 10.1.26-0+deb9u1
> Severity: important
>
> Dear Maintainer,
>
> I'm trying to compile a software that requires a mysql client library. CMake
> is unable to detect that libmariadbclient-dev-compat package is installed on my
> system, and running pkg-config against the package shows an error:
>
> $ pkg-config --cflags mysqlclient
> Package mysqlclient was not found in the pkg-config search path.
> Perhaps you should add the directory containing `mysqlclient.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'mysqlclient' found
>
> It seems to me that libmariadbclient-dev-compat package installs mysqlclient.pc
> at /usr/lib/x86_64-linux-gnu/, while pkg-config looks for .pc files at /usr/lib/
> x86_64-linux-gnu/pkgconfig.
>
> When I create a symlink mysqlclient.pc -> mariadb.pc located in /usr/lib/
> x86_64-linux-gnu/pkgconfig, pkg-config is now able to detect the package:
>
> $ pkg-config --cflags mysqlclient
> -I/usr/include/mysql -I/usr/include/mysql/..
>
> Can you please double-check whether mysqlclient.pc is installed at the proper path?
>
> Kind regards,
> Nikolay Dimitrov
>
>
> -- System Information:
> Debian Release: 9.2
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages libmariadbclient-dev-compat depends on:
> ii  libmariadbclient-dev  10.1.26-0+deb9u1
>
> libmariadbclient-dev-compat recommends no packages.
>
> libmariadbclient-dev-compat suggests no packages.
>
> -- no debconf information
>


--
Otto Kekäläinen
CEO
Seravo
+358 44 566 2204

Follow me at @ottokekalainen



More information about the pkg-mysql-maint mailing list