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

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 ++ [