about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-11-01 12:01:32 +0000
committerGitHub <noreply@github.com>2022-11-01 12:01:32 +0000
commit0ada81696d97169e62271152e53385ffeb8e33c3 (patch)
tree74100ad3669cbd82866464648cdfc4efb2cb1332 /pkgs/servers
parenta7fa9e4e76bda23461da779dab9da469a098e08a (diff)
parent8fc819a6017145fa1c1e16eddbed4ef090520859 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/nosql/victoriametrics/default.nix4
-rw-r--r--pkgs/servers/sql/mariadb/default.nix9
-rw-r--r--pkgs/servers/sql/mysql/5.7.x.nix94
-rw-r--r--pkgs/servers/sql/mysql/mysql-5.7-add-protobuf-3.8+-support.patch66
4 files changed, 3 insertions, 170 deletions
diff --git a/pkgs/servers/nosql/victoriametrics/default.nix b/pkgs/servers/nosql/victoriametrics/default.nix
index 871e3307f0964..9cad03c58af94 100644
--- a/pkgs/servers/nosql/victoriametrics/default.nix
+++ b/pkgs/servers/nosql/victoriametrics/default.nix
@@ -2,13 +2,13 @@
 
 buildGoModule rec {
   pname = "VictoriaMetrics";
-  version = "1.82.1";
+  version = "1.83.0";
 
   src = fetchFromGitHub {
     owner = pname;
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-Lor4rpL19xc/eA2quJ1D0WrJiviEcKnArBKUQhb9Z0k=";
+    sha256 = "sha256-bc13aIo2gCHZfBRbi5CoPLcCGoNJgTuWJbCwqX/QgtU=";
   };
 
   vendorSha256 = null;
diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix
index 2796906fe03ea..19a81db9a3643 100644
--- a/pkgs/servers/sql/mariadb/default.nix
+++ b/pkgs/servers/sql/mariadb/default.nix
@@ -257,13 +257,6 @@ in
       inherit (self.darwin) cctools;
       inherit (self.darwin.apple_sdk.frameworks) CoreServices;
     };
-    mariadb_107 = self.callPackage generic {
-      # Supported until 2023-02. TODO: remove ahead of 22.11 release.
-      version = "10.7.6";
-      hash = "sha256-erX7pDmQV33BdPG5a9NAszN8G9Rv48NmIgsJ0siNLqA=";
-      inherit (self.darwin) cctools;
-      inherit (self.darwin.apple_sdk.frameworks) CoreServices;
-    };
     mariadb_108 = self.callPackage generic {
       # Supported until 2023-05
       version = "10.8.5";
@@ -272,7 +265,7 @@ in
       inherit (self.darwin.apple_sdk.frameworks) CoreServices;
     };
     mariadb_109 = self.callPackage generic {
-      # Supported until 2023-08(?)
+      # Supported until 2023-08
       version = "10.9.3";
       hash = "sha256-mh4imXL8zMgnDmM/aNP7gk2hUdz09T2h342UesqHa+4=";
       inherit (self.darwin) cctools;
diff --git a/pkgs/servers/sql/mysql/5.7.x.nix b/pkgs/servers/sql/mysql/5.7.x.nix
deleted file mode 100644
index ea8842c5695f6..0000000000000
--- a/pkgs/servers/sql/mysql/5.7.x.nix
+++ /dev/null
@@ -1,94 +0,0 @@
-{ lib, stdenv, fetchurl, cmake, bison, pkg-config, nukeReferences
-, boost, libedit, libevent, lz4, ncurses, openssl, protobuf, readline, zlib, perl
-, cctools, CoreServices, developer_cmds
-, libtirpc, rpcsvc-proto, nixosTests
-}:
-
-# Note: zlib is not required; MySQL can use an internal zlib.
-
-let
-self = stdenv.mkDerivation rec {
-  pname = "mysql";
-  version = "5.7.39";
-
-  src = fetchurl {
-    url = "mirror://mysql/MySQL-5.7/${pname}-${version}.tar.gz";
-    sha256 = "sha256-ERw6ypGJfkUwOds5GkdSZeAg/ZIcuXMHwACEqI5NYQQ=";
-  };
-
-  patches = [
-    ./mysql-5.7-add-protobuf-3.8+-support.patch
-  ];
-
-  preConfigure = lib.optionalString stdenv.isDarwin ''
-    ln -s /bin/ps $TMPDIR/ps
-    export PATH=$PATH:$TMPDIR
-  '';
-
-  nativeBuildInputs = [ bison cmake pkg-config nukeReferences ]
-    ++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
-
-  buildInputs = [ boost libedit libevent lz4 ncurses openssl protobuf readline zlib ]
-     ++ lib.optionals stdenv.isDarwin [ perl cctools CoreServices developer_cmds ]
-     ++ lib.optionals stdenv.isLinux [ libtirpc ];
-
-  outputs = [ "out" "static" ];
-
-  cmakeFlags = [
-    "-DWITH_SSL=yes"
-    "-DWITH_EMBEDDED_SERVER=yes"
-    "-DWITH_UNIT_TESTS=no"
-    "-DWITH_EDITLINE=system"
-    "-DWITH_LIBEVENT=system"
-    "-DWITH_LZ4=system"
-    "-DWITH_PROTOBUF=system"
-    "-DWITH_ZLIB=system"
-    "-DWITH_ARCHIVE_STORAGE_ENGINE=yes"
-    "-DWITH_BLACKHOLE_STORAGE_ENGINE=yes"
-    "-DWITH_FEDERATED_STORAGE_ENGINE=yes"
-    "-DHAVE_IPV6=yes"
-    "-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
-    "-DMYSQL_DATADIR=/var/lib/mysql"
-    "-DINSTALL_INFODIR=share/mysql/docs"
-    "-DINSTALL_MANDIR=share/man"
-    "-DINSTALL_PLUGINDIR=lib/mysql/plugin"
-    "-DINSTALL_SCRIPTDIR=bin"
-    "-DINSTALL_INCLUDEDIR=include/mysql"
-    "-DINSTALL_DOCREADMEDIR=share/mysql"
-    "-DINSTALL_SUPPORTFILESDIR=share/mysql"
-    "-DINSTALL_MYSQLSHAREDIR=share/mysql"
-    "-DINSTALL_MYSQLTESTDIR="
-    "-DINSTALL_DOCDIR=share/mysql/docs"
-    "-DINSTALL_SHAREDIR=share/mysql"
-  ];
-
-  CXXFLAGS = "-fpermissive -std=c++11";
-  NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";
-
-  prePatch = ''
-    sed -i -e "s|/usr/bin/libtool|libtool|" cmake/merge_archives.cmake.in
-  '';
-  postInstall = ''
-    nuke-refs "$out/share/mysql/docs/INFO_BIN"
-    moveToOutput "lib/*.a" $static
-    ln -s libmysqlclient${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libmysqlclient_r${stdenv.hostPlatform.extensions.sharedLibrary}
-  '';
-
-  passthru = {
-    client = self;
-    connector-c = self;
-    server = self;
-    mysqlVersion = "5.7";
-    tests = nixosTests.mysql.mysql57;
-  };
-
-  meta = with lib; {
-    homepage = "https://www.mysql.com/";
-    description = "The world's most popular open source database";
-    platforms = platforms.unix;
-    license = with licenses; [
-      artistic1 bsd0 bsd2 bsd3 bsdOriginal
-      gpl2 lgpl2 lgpl21 mit publicDomain licenses.zlib
-    ];
-  };
-}; in self
diff --git a/pkgs/servers/sql/mysql/mysql-5.7-add-protobuf-3.8+-support.patch b/pkgs/servers/sql/mysql/mysql-5.7-add-protobuf-3.8+-support.patch
deleted file mode 100644
index 99c90ebd33bcc..0000000000000
--- a/pkgs/servers/sql/mysql/mysql-5.7-add-protobuf-3.8+-support.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-diff --git a/cmake/build_configurations/compiler_options.cmake b/cmake/build_configurations/compiler_options.cmake
-index a935227e523..b4ebd61c5c1 100644
---- a/cmake/build_configurations/compiler_options.cmake
-+++ b/cmake/build_configurations/compiler_options.cmake
-@@ -43,7 +43,7 @@ IF(UNIX)
- 
-   # Default GCC flags
-   IF(CMAKE_COMPILER_IS_GNUCC)
--    SET(COMMON_C_FLAGS "-fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing")
-+    SET(COMMON_C_FLAGS "-fno-omit-frame-pointer -fno-strict-aliasing")
-     # Disable inline optimizations for valgrind testing to avoid false positives
-     IF(WITH_VALGRIND)
-       STRING_PREPEND(COMMON_C_FLAGS "-fno-inline ")
-@@ -68,7 +68,7 @@ IF(UNIX)
-     ENDIF()
-   ENDIF()
-   IF(CMAKE_COMPILER_IS_GNUCXX)
--    SET(COMMON_CXX_FLAGS               "-fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing")
-+    SET(COMMON_CXX_FLAGS               "-fno-omit-frame-pointer -fno-strict-aliasing")
-     # GCC 6 has C++14 as default, set it explicitly to the old default.
-     EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion
-                     OUTPUT_VARIABLE GXX_VERSION)
-diff --git a/rapid/plugin/x/mysqlxtest_src/mysqlxtest.cc b/rapid/plugin/x/mysqlxtest_src/mysqlxtest.cc
-index 5dc91ba269c..3a45284859f 100644
---- a/rapid/plugin/x/mysqlxtest_src/mysqlxtest.cc
-+++ b/rapid/plugin/x/mysqlxtest_src/mysqlxtest.cc
-@@ -629,12 +629,12 @@ class ErrorDumper : public ::google::protobuf::io::ErrorCollector
-   std::stringstream m_out;
- 
- public:
--  virtual void AddError(int line, int column, const string & message)
-+  virtual void AddError(int line, int column, const std::string & message)
-   {
-     m_out << "ERROR in message: line " << line+1 << ": column " << column << ": " << message<<"\n";
-   }
- 
--  virtual void AddWarning(int line, int column, const string & message)
-+  virtual void AddWarning(int line, int column, const std::string & message)
-   {
-     m_out << "WARNING in message: line " << line+1 << ": column " << column << ": " << message<<"\n";
-   }
-diff --git a/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h b/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h
-index 90f7cc77a39..cf6c607a818 100644
---- a/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h
-+++ b/rapid/plugin/x/ngs/include/ngs_common/protocol_protobuf.h
-@@ -36,7 +36,6 @@
- #include <google/protobuf/io/tokenizer.h>
- #include <google/protobuf/io/zero_copy_stream.h>
- #include <google/protobuf/wire_format_lite.h>
--#include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/dynamic_message.h>
- 
- #include "mysqlx_connection.pb.h"
-diff --git a/rapid/plugin/x/ngs/src/protocol_decoder.cc b/rapid/plugin/x/ngs/src/protocol_decoder.cc
-index 298b6a6884c..fae21d18f78 100644
---- a/rapid/plugin/x/ngs/src/protocol_decoder.cc
-+++ b/rapid/plugin/x/ngs/src/protocol_decoder.cc
-@@ -123,7 +123,7 @@ Error_code Message_decoder::parse(Request &request)
-     google::protobuf::io::CodedInputStream stream(reinterpret_cast<const uint8_t*>(request.buffer()),
-                                                   static_cast<int>(request.buffer_size()));
-     // variable 'mysqlx_max_allowed_packet' has been checked when buffer was filling by data
--    stream.SetTotalBytesLimit(static_cast<int>(request.buffer_size()), -1 /*no warnings*/);
-+    stream.SetTotalBytesLimit(static_cast<int>(request.buffer_size()));
-     // Protobuf limits the number of nested objects when decoding messages
-     // lets set the value in explicit way (to ensure that is set accordingly with
-     // out stack size)
\ No newline at end of file