percona-server56: drop

Percona Server for MySQL 5.6 is no more maintained due to the EOL of MySQL 5.6.
See https://www.percona.com/downloads/Percona-Server-5.6/LATEST/.

A bit hard to list all the potential security issues affecting it but CVE-2021-27928
should be one of them.
This commit is contained in:
Thomas Gerbet 2022-11-01 16:30:21 +01:00
parent c3033dafb0
commit 2669e59da4
5 changed files with 11 additions and 66 deletions

View File

@ -850,6 +850,13 @@
option, and it is enabled by default, for servers.
</para>
</listitem>
<listitem>
<para>
<literal>percona-server56</literal> has been removed. Please
migrate to <literal>mysql</literal> or
<literal>mariadb</literal> if possible.
</para>
</listitem>
<listitem>
<para>
<literal>stylua</literal> no longer accepts

View File

@ -264,6 +264,8 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).
- Consequently, `cqrlog` and `amorok` now use `mariadb` instead of `mysql57` for their embedded databases. Running `mysql_upgrade` may be neccesary.
- `k3s` supports `clusterInit` option, and it is enabled by default, for servers.
- `percona-server56` has been removed. Please migrate to `mysql` or `mariadb` if possible.
- `stylua` no longer accepts `lua52Support` and `luauSupport` overrides, use `features` instead, which defaults to `[ "lua54" "luau" ]`.
- `pkgs.fetchNextcloudApp` has been rewritten to circumvent impurities in e.g. tarballs from GitHub and to make it easier to

View File

@ -1,60 +0,0 @@
{ lib, stdenv, fetchurl, cmake, bison, ncurses, openssl, zlib, libaio, perl }:
stdenv.mkDerivation rec {
pname = "percona-server";
version = "5.6.49-89.0";
src = fetchurl {
url = "https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-${version}/source/tarball/percona-server-${version}.tar.gz";
sha256 = "09qqk02iny7jvngyk6k2j0kk2sspc6gw8sm3i6nn97njbkihi697";
};
nativeBuildInputs = [ cmake bison perl ];
buildInputs = [ ncurses openssl zlib libaio ];
cmakeFlags = [
"-DFEATURE_SET=community"
"-DBUILD_CONFIG=mysql_release"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
"-DWITH_SSL=yes"
"-DWITH_READLINE=no"
"-DWITH_EMBEDDED_SERVER=no"
"-DWITH_EDITLINE=bundled"
"-DWITH_ZLIB=yes"
"-DHAVE_IPV6=no"
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
"-DMYSQL_DATADIR=/var/lib/mysql"
"-DINSTALL_SYSCONFDIR=etc/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_DOCDIR=share/mysql/docs"
"-DINSTALL_SHAREDIR=share/mysql"
];
NIX_CFLAGS_COMPILE = [ "-Wno-error=address-of-packed-member" ];
NIX_LDFLAGS = "-lgcc_s";
prePatch = ''
sed -i -e "s|/usr/bin/libtool|libtool|" cmake/libutils.cmake
'';
postInstall = ''
sed -i -e "s|basedir=\"\"|basedir=\"$out\"|" $out/bin/mysql_install_db
rm -r $out/mysql-test $out/sql-bench $out/data "$out"/lib/*.a
'';
passthru.mysqlVersion = "5.6";
meta = with lib; {
homepage = "https://www.percona.com";
description = "a free, fully compatible, enhanced, open source drop-in replacement for MySQL that provides superior performance, scalability and instrumentation";
platforms = platforms.linux;
license = licenses.gpl2;
maintainers = with maintainers; [ grahamc ];
};
}

View File

@ -1066,6 +1066,8 @@ mapAliases ({
pdfstudio = throw "'pdfstudio' has been replaced with 'pdfstudio<year>', where '<year>' is the year from the PDF Studio version number, because each license is specific to a given year"; # Added 2022-09-04
peach = asouldocs; # Added 2022-08-28
pentablet-driver = xp-pen-g430-driver; # Added 2022-06-23
percona-server = percona-server56; # Added 2022-11-01
percona-server56 = throw "'percona-server56' has been dropped due to lack of maintenance, no upstream support and security issues"; # Added 2022-11-01
perlXMLParser = throw "'perlXMLParser' has been renamed to/replaced by 'perlPackages.XMLParser'"; # Converted to throw 2022-02-22
perlArchiveCpio = throw "'perlArchiveCpio' has been renamed to/replaced by 'perlPackages.ArchiveCpio'"; # Converted to throw 2022-02-22
pgadmin = pgadmin4;

View File

@ -24044,12 +24044,6 @@ with pkgs;
nginx-sso = callPackage ../servers/nginx-sso { };
percona-server56 = callPackage ../servers/sql/percona/5.6.x.nix {
stdenv = gcc10StdenvCompat;
openssl = openssl_1_1;
};
percona-server = percona-server56;
immudb = callPackage ../servers/nosql/immudb { };
influxdb = callPackage ../servers/nosql/influxdb { };