gentoo/sys-auth/libnss-mysql/files/libnss-mysql-1.5_p20060915-multiarch.patch
Thomas Deutschmann 8515ca38ff
sys-auth/libnss-mysql: fix building against MariaDB 10.2+ and MySQL 8
Closes: https://github.com/gentoo/gentoo/pull/15083
Closes: https://bugs.gentoo.org/693392
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
2020-03-26 22:33:44 +01:00

22 lines
401 B
Diff

--- libnss-mysql-1.5/acinclude.m4
+++ libnss-mysql-1.5.sal/acinclude.m4
@@ -80,6 +80,18 @@
fi
done
+dnl Test also $libdir path
+if test -f "$libdir/libmysqlclient.so"
+then
+ MYSQL_LIB_DIR="$libdir"
+ break
+fi
+if test -f "$libdir/mysql/libmysqlclient.so"
+then
+ MYSQL_LIB_DIR="$libdir/mysql"
+ break
+fi
+
if test -n "$MYSQL_LIB_DIR"
then
AC_MSG_RESULT([$MYSQL_LIB_DIR])