Merge pull request #70841 from callahad/mariadb

mariadb: fix builds on darwin
This commit is contained in:
Dmitry Kalinkin 2019-10-10 22:58:28 -04:00 committed by GitHub
commit 1f9882cb29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,9 +41,6 @@ common = rec { # attributes common to both builds
prePatch = ''
sed -i 's,[^"]*/var/log,/var/log,g' storage/mroonga/vendor/groonga/CMakeLists.txt
'' + optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace cmake/build_configurations/mysql_release.cmake \
--replace "SET(PLUGIN_AUTH_PAM YES)" ""
'';
patches = [
@ -163,6 +160,8 @@ server = stdenv.mkDerivation (common // {
patches = common.patches ++ [
./cmake-without-client.patch
] ++ optionals stdenv.isDarwin [
./cmake-without-plugin-auth-pam.patch
];
cmakeFlags = common.cmakeFlags ++ [