[debian-mysql] Bug#770650: mariadb_config in mariadb-client-lgpl lacks features from mysql_config

Otto Kekäläinen otto at seravo.fi
Sat Nov 22 22:11:41 UTC 2014


Package: libmariadb-client-lgpl-dev

I decided to forward the message from Arnaud Fontaine below as a bug
report so we can work on it using the normal Debian bug tracking
processes.

My quick opinion is that we cannot use upstream libmysqlclient as it
conflicts with Oracle libmysqlclient in Debian in ways senior DDs
don't accept and renaming to libmariadbclient wasn't adopted by
anybody downstream, so using only mariadb-client-lgpl is still our
best shot - maybe upstream mariadb-client-lgpl developer could solve
this by merging the missing features from mysql_configure to
mariadb_configure?


  * When trying to build out-of-tree mroonga engine (not yet released in
    10.0 but already merged though (MDEV-5222)):

    libmariadbclient   packages   have   been  removed   in   favor   of
    libmariadb-client-lgpl(-compat?).  The latter provide mariadb_config
    which should be used instead  of mysql_config AFAIU.  The problem is
    that mariadb_config does not provide everything mysql_config used to
    provide and which is used to build mroonga (namely '--plugindir' and
    '--variable=pkglibdir'  are missing  and '--version'  returns 5.5.40
    (don't think  that's a  problem as  long as  5.5.40 and  10.0 client
    protocol is the same, which should be the case AFAIK)):

    $ mysql_config
    Usage: /usr/bin/mysql_config [OPTIONS]
    Options:
            --cflags         [-I/usr/include/mysql -DBIG_JOINS=1
-fno-strict-aliasing  -g]
            --include        [-I/usr/include/mysql]
            --libs           [-L/usr/lib/x86_64-linux-gnu
-lmysqlclient -lpthread -lz -lm -lrt -ldl]
            --libs_r         [-L/usr/lib/x86_64-linux-gnu
-lmysqlclient_r -lpthread -lz -lm -lrt -ldl]
            --plugindir      [/usr/lib/mysql/plugin]
            --socket         [/var/run/mysqld/mysqld.sock]
            --port           [0]
            --version        [5.5.40]
            --libmysqld-libs [-L/usr/lib/x86_64-linux-gnu -lmysqld
-lpthread -lz -lm -lrt -lwrap -lcrypt -ldl -laio]
            --variable=VAR   VAR is one of:
                    pkgincludedir [/usr/include/mysql]
                    pkglibdir     [/usr/lib/x86_64-linux-gnu]
                    plugindir     [/usr/lib/mysql/plugin]

    $ mariadb_config
    Copyright 2011 Monty Program AB
    Get compiler flags for using the MariaDB client library.
    Usage: mariadb_config [OPTIONS]
      --cflags        [-I/usr/include/mariadb -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2  -Wunused -Wno-uninitialized]
      --include       [-I/usr/include/mariadb]
      --libs          [-L/usr/lib/x86_64-linux-gnu -lmariadb]
      --libs_r        [-L/usr/lib/x86_64-linux-gnu -lmariadb]
      --version       [5.5.0]
      --socket        [/tmp/mysql.sock]
      --port          [3306]



More information about the pkg-mysql-maint mailing list