Public bug reported:

The sources are built with the configure command:

override_dh_auto_configure:
        dh_auto_configure -O--buildsystem=cmake -- \
        -DINSTALL_LAYOUT:STRING=DEB \
        -DPLUGINDIR_DEB=mariadb3 \
        -DWITH_MYSQLCOMPAT=ON \
        -DWITH_EXTERNAL_ZLIB:BOOL=ON \
        -DMYSQL_UNIX_ADDR:STRING=/var/run/mysqld/mysqld.sock


However in the sources in mariadb_config/mariadb_config.c.in,
there is the line
#define SOCKET  "@MARIADB_UNIX_ADDR@"

In include/mariadb_version.h.in:
#define MARIADB_UNIX_ADDR "@MARIADB_UNIX_ADDR@"

And in libmariadb/mariadb_lib.c:
mysql_unix_port = (char*)MARIADB_UNIX_ADDR;

So the sources must be built with
-DMARIADB_UNIX_ADDR:STRING=/var/run/mysqld/mysqld.sock
to have the desired effect. Otherwise the ages old default from CMakeLists.txt, 
i.e. /tmp/mysql.sock
is used, which is of course different from what the ubuntu mariadb-10.3 package 
uses.

** Affects: mariadb-connector-c (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1838002

Title:
  Wrong default location for the mysql socket

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mariadb-connector-c/+bug/1838002/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to