Skip to content

Commit 0f3a8ba

Browse files
daveldveeden
authored andcommitted
Warn that MariaDB's client library does not work
Debian no longer supplies libmysqlclient. It provides symlinks from mysql_config to mariadb_config. Unfortunately this gives us an unhelpful compilation error because we are using MySQL exclusive features.
1 parent 61ab4fa commit 0f3a8ba

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Makefile.PL

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,18 @@ assert_lib(
150150
LIBS => $opt->{libs},
151151
);
152152

153-
print "Looks good.\n\n";
153+
if ($opt->{libs} =~ /mariadb/) {
154+
print <<"MSG";
155+
156+
The chosen MySQL client library appears to be MariaDB's. Compilation may fail.
157+
Consider DBD::MariaDB or installing Oracle's MySQL client library.
158+
159+
160+
MSG
161+
}
162+
else {
163+
print "Looks good.\n\n";
164+
}
154165

155166
sleep 1;
156167

0 commit comments

Comments
 (0)