maxscale: remove after being marked broken for over 18 months
It was marked in commit 63d9ab069a by Izorkin on 2020-04-10 (commited on 2020-04-10)
This commit is contained in:
@@ -1,88 +0,0 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glibc
|
||||
, bison, curl, flex, gperftools, jansson, jemalloc, libkrb5, lua, libmysqlclient
|
||||
, ncurses, openssl, pcre, pcre2, perl, rabbitmq-c, sqlite, tcl
|
||||
, libaio, libedit, libtool, libui, libuuid, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "maxscale";
|
||||
version = "2.1.17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mariadb-corporation";
|
||||
repo = "MaxScale";
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "161kc6aqqj3z509q4qwvsd86h06hlyzdask4gawn2ij0h3ca58q6";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
bison curl flex gperftools jansson jemalloc libkrb5 lua libmysqlclient
|
||||
ncurses openssl pcre pcre2 perl rabbitmq-c sqlite tcl
|
||||
libaio libedit libtool libui libuuid zlib
|
||||
];
|
||||
|
||||
patches = [ ./getopt.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
for i in `grep -l -R '#include <getopt.h>' .`; do
|
||||
substituteInPlace $i --replace "#include <getopt.h>" "#include <${glibc.dev}/include/getopt.h>"
|
||||
done
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_C99=YES"
|
||||
"-DDEFAULT_ADMIN_USER=root"
|
||||
"-DWITH_MAXSCALE_CNF=YES"
|
||||
"-DSTATIC_EMBEDDED=YES"
|
||||
"-DBUILD_RABBITMQ=YES"
|
||||
"-DBUILD_BINLOG=YES"
|
||||
"-DBUILD_CDC=NO"
|
||||
"-DBUILD_MMMON=YES"
|
||||
"-DBUILD_LUAFILTER=YES"
|
||||
"-DLUA_LIBRARIES=${lua}/lib"
|
||||
"-DLUA_INCLUDE_DIR=${lua}/include"
|
||||
"-DGCOV=NO"
|
||||
"-DWITH_SCRIPTS=OFF"
|
||||
"-DBUILD_TESTS=NO"
|
||||
"-DBUILD_TOOLS=NO"
|
||||
"-DPROFILE=NO"
|
||||
"-DWITH_TCMALLOC=YES"
|
||||
"-DWITH_JEMALLOC=YES"
|
||||
"-DINSTALL_EXPERIMENTAL=YES"
|
||||
"-DTARGET_COMPONENT=all"
|
||||
];
|
||||
|
||||
CFLAGS = "-std=gnu99";
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
postInstall = ''
|
||||
find $out/bin -type f -perm -0100 | while read f1; do
|
||||
patchelf \
|
||||
--set-rpath "$(patchelf --print-rpath $f1):${libmysqlclient}/lib/mariadb:$out/lib/maxscale" \
|
||||
--set-interpreter "$(cat ${stdenv.cc}/nix-support/dynamic-linker)" $f1 \
|
||||
&& patchelf --shrink-rpath $f1
|
||||
done
|
||||
|
||||
find $out/lib/maxscale -type f -perm -0100 | while read f2; do
|
||||
patchelf \
|
||||
--set-rpath "$(patchelf --print-rpath $f2)":$out/lib/maxscale $f2
|
||||
done
|
||||
|
||||
mv $out/share/maxscale/create_grants $out/bin
|
||||
rm -rf $out/{etc,var}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "MaxScale database proxy extends MariaDB Server's high availability";
|
||||
homepage = "https://mariadb.com/products/technology/maxscale";
|
||||
license = licenses.bsl11;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/server/core/maxpasswd.c 2018-01-12 05:06:49.000000000 -0500
|
||||
+++ b/server/core/maxpasswd.c 2018-01-12 06:50:18.518000000 -0500
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
|
||||
+#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
@@ -28618,10 +28618,6 @@ with pkgs;
|
||||
|
||||
maxlib = callPackage ../applications/audio/pd-plugins/maxlib { };
|
||||
|
||||
maxscale = callPackage ../tools/networking/maxscale {
|
||||
stdenv = gcc6Stdenv;
|
||||
};
|
||||
|
||||
pdfdiff = callPackage ../applications/misc/pdfdiff { };
|
||||
|
||||
pdfsam-basic = callPackage ../applications/misc/pdfsam-basic { };
|
||||
|
||||
Reference in New Issue
Block a user