Skip to content

Commit

Permalink
mariadb: 10.4.13 -> 10.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Izorkin committed Aug 15, 2020
1 parent d4e5304 commit 8e4ecf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
12 changes: 0 additions & 12 deletions pkgs/servers/sql/mariadb/cmake-without-plugin-auth-pam.patch

This file was deleted.

13 changes: 6 additions & 7 deletions pkgs/servers/sql/mariadb/default.nix
Expand Up @@ -23,14 +23,14 @@ mariadb = server // {
};

common = rec { # attributes common to both builds
version = "10.4.13";
version = "10.4.14";

src = fetchurl {
urls = [
"https://downloads.mariadb.org/f/mariadb-${version}/source/mariadb-${version}.tar.gz"
"https://downloads.mariadb.com/MariaDB/mariadb-${version}/source/mariadb-${version}.tar.gz"
];
sha256 = "1pwibmm52sc04qxp832pc3ylxw9wq90fjc7nxpcyp3yys49bpfs5";
sha256 = "1z469j39chq7d3dp39cljjbzcz0wl1g7rii85x46290jw1cwsbzr";
name = "mariadb-${version}.tar.gz";
};

Expand Down Expand Up @@ -128,18 +128,18 @@ client = stdenv.mkDerivation (common // {

patches = common.patches ++ [
./cmake-plugin-includedir.patch
./cmake-without-plugin-auth-pam.patch
];

cmakeFlags = common.cmakeFlags ++ [
"-DPLUGIN_AUTH_PAM=OFF"
"-DWITHOUT_SERVER=ON"
"-DWITH_WSREP=OFF"
"-DINSTALL_MYSQLSHAREDIR=share/mysql-client"
];

postInstall = common.postInstall + ''
rm -r "$out"/share/doc
rm "$out"/bin/{mysqltest,mytop,wsrep_sst_rsync_wan}
rm "$out"/bin/{mysqltest,mytop}
libmysqlclient_path=$(readlink -f $out/lib/libmysqlclient${libExt})
rm "$out"/lib/{libmariadb${libExt},libmysqlclient${libExt},libmysqlclient_r${libExt}}
mv "$libmysqlclient_path" "$out"/lib/libmysqlclient${libExt}
Expand All @@ -162,9 +162,7 @@ server = stdenv.mkDerivation (common // {
++ optional stdenv.hostPlatform.isLinux linux-pam
++ optional (!stdenv.hostPlatform.isDarwin) mytopEnv;

patches = common.patches ++ optionals stdenv.hostPlatform.isDarwin [
./cmake-without-plugin-auth-pam.patch
];
patches = common.patches;

cmakeFlags = common.cmakeFlags ++ [
"-DMYSQL_DATADIR=/var/lib/mysql"
Expand All @@ -190,6 +188,7 @@ server = stdenv.mkDerivation (common // {
] ++ optional (!stdenv.hostPlatform.isDarwin && withStorageToku) [
"-DWITH_JEMALLOC=static"
] ++ optional stdenv.hostPlatform.isDarwin [
"-DPLUGIN_AUTH_PAM=OFF"
"-DWITHOUT_OQGRAPH=1"
];

Expand Down

0 comments on commit 8e4ecf1

Please sign in to comment.