From 12f95f75726ded0807d0184b3b55084fcddca5ea Mon Sep 17 00:00:00 2001 From: Izorkin Date: Thu, 1 Aug 2019 19:41:57 +0300 Subject: [PATCH] mariadb: remove c++11 narrowing error patch --- pkgs/servers/sql/mariadb/default.nix | 6 +----- .../sql/mariadb/fix-c++11-narrowing-error.patch | 13 ------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 pkgs/servers/sql/mariadb/fix-c++11-narrowing-error.patch diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index d10b0fbc37b0..2f923116b2bf 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -53,11 +53,7 @@ common = rec { # attributes common to both builds patches = [ ./cmake-includedir.patch ./cmake-libmariadb-includedir.patch - ] ++ optionals stdenv.isDarwin [ - # Derived from "Fixed c++11 narrowing error" - # https://github.com/MariaDB/server/commit/a0dfefb0f8a47145e599a5f1b0dc576fa7634b92 - ./fix-c++11-narrowing-error.patch - ]; + ]; cmakeFlags = [ "-DBUILD_CONFIG=mysql_release" diff --git a/pkgs/servers/sql/mariadb/fix-c++11-narrowing-error.patch b/pkgs/servers/sql/mariadb/fix-c++11-narrowing-error.patch deleted file mode 100644 index 7399d8e39275..000000000000 --- a/pkgs/servers/sql/mariadb/fix-c++11-narrowing-error.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/sql/table.cc b/sql/table.cc -index e46af771507..9bef21a1da2 100644 ---- a/sql/table.cc -+++ b/sql/table.cc -@@ -8814,7 +8814,7 @@ bool TR_table::update(ulonglong start_id, ulonglong end_id) - - store(FLD_BEGIN_TS, thd->transaction_time()); - thd->set_time(); -- timeval end_time= {thd->query_start(), long(thd->query_start_sec_part())}; -+ timeval end_time= {thd->query_start(), int(thd->query_start_sec_part())}; - store(FLD_TRX_ID, start_id); - store(FLD_COMMIT_ID, end_id); - store(FLD_COMMIT_TS, end_time);