Package: mariadb-client-lgpl
Version: 2.0.0-1
Severity: normal

Dear Maintainer,

I tried to use libmariadb-client-lgpl to replace libmysqlclient in my 
application.
However, when I use mysql_real_connect with "localhost" as a server name, it 
fails with:

  Can't connect to local MySQL server through socket '/tmp/mysql.sock'

I checked, that mysql-5.5 source package redefines MYSQL_UNIX_ADDR to the 
correct value,
see: http://anonscm.debian.org/cgit/pkg-mysql/mysql-5.5.git/tree/debian/rules

Please, add the same into debian/rules for mariadb-client-lgpl:

override_dh_auto_configure:
        dh_auto_configure -O--buildsystem=cmake -- \
        -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH) \
        -DWITH_EXTERNAL_ZLIB:BOOL=ON \
        -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock

Thank you!

-- System Information:
Debian Release: 8.0
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to