Merge pull request #214981 from superherointj/fix-musl-mariadb
mariadb: fix musl, make Numa optional; pmdk: remove
This commit is contained in:
commit
555c21b15d
4 changed files with 10 additions and 51 deletions
|
@ -1,42 +0,0 @@
|
||||||
{ lib, stdenv, fetchFromGitHub
|
|
||||||
, autoconf, libndctl, pkg-config, gnum4, pandoc
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "pmdk";
|
|
||||||
version = "1.11.1";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "pmem";
|
|
||||||
repo = "pmdk";
|
|
||||||
rev = "refs/tags/${version}";
|
|
||||||
hash = "sha256-8bnyLtgkKfgIjJkfY/ZS1I9aCYcrz0nrdY7m/TUVWAk=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf pkg-config gnum4 pandoc ];
|
|
||||||
buildInputs = [ libndctl ];
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
outputs = [ "out" "lib" "dev" "man" ];
|
|
||||||
|
|
||||||
patchPhase = "patchShebangs utils";
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
make install prefix=$out
|
|
||||||
|
|
||||||
mkdir -p $lib $dev $man/share
|
|
||||||
mv $out/share/man $man/share/man
|
|
||||||
mv $out/include $dev/include
|
|
||||||
mv $out/lib $lib/lib
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Persistent Memory Development Kit";
|
|
||||||
homepage = "https://github.com/pmem/pmdk";
|
|
||||||
license = licenses.lgpl21;
|
|
||||||
maintainers = with maintainers; [ thoughtpolice ];
|
|
||||||
platforms = [ "x86_64-linux" ]; # aarch64 is experimental
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -13,13 +13,17 @@ let
|
||||||
# Server components
|
# Server components
|
||||||
, bzip2, lz4, lzo, snappy, xz, zlib, zstd
|
, bzip2, lz4, lzo, snappy, xz, zlib, zstd
|
||||||
, cracklib, judy, libevent, libxml2
|
, cracklib, judy, libevent, libxml2
|
||||||
, linux-pam, numactl, pmdk
|
, linux-pam, numactl
|
||||||
, fmt_8
|
, fmt_8
|
||||||
, withStorageMroonga ? true, kytea, libsodium, msgpack, zeromq
|
, withStorageMroonga ? true, kytea, libsodium, msgpack, zeromq
|
||||||
, withStorageRocks ? true
|
, withStorageRocks ? true
|
||||||
, withEmbedded ? false
|
, withEmbedded ? false
|
||||||
|
, withNuma ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
|
||||||
|
|
||||||
libExt = stdenv.hostPlatform.extensions.sharedLibrary;
|
libExt = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||||
|
|
||||||
mytopEnv = buildPackages.perl.withPackages (p: with p; [ DBDmysql DBI TermReadKey ]);
|
mytopEnv = buildPackages.perl.withPackages (p: with p; [ DBDmysql DBI TermReadKey ]);
|
||||||
|
@ -99,7 +103,7 @@ let
|
||||||
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && lib.versionAtLeast version "10.6") [
|
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && lib.versionAtLeast version "10.6") [
|
||||||
# workaround for https://jira.mariadb.org/browse/MDEV-29925
|
# workaround for https://jira.mariadb.org/browse/MDEV-29925
|
||||||
"-Dhave_C__Wl___as_needed="
|
"-Dhave_C__Wl___as_needed="
|
||||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
] ++ lib.optionals isCross [
|
||||||
# revisit this if nixpkgs supports any architecture whose stack grows upwards
|
# revisit this if nixpkgs supports any architecture whose stack grows upwards
|
||||||
"-DSTACK_DIRECTION=-1"
|
"-DSTACK_DIRECTION=-1"
|
||||||
"-DCMAKE_CROSSCOMPILING_EMULATOR=${stdenv.hostPlatform.emulator buildPackages}"
|
"-DCMAKE_CROSSCOMPILING_EMULATOR=${stdenv.hostPlatform.emulator buildPackages}"
|
||||||
|
@ -169,16 +173,14 @@ let
|
||||||
buildInputs = common.buildInputs ++ [
|
buildInputs = common.buildInputs ++ [
|
||||||
bzip2 lz4 lzo snappy xz zstd
|
bzip2 lz4 lzo snappy xz zstd
|
||||||
cracklib judy libevent libxml2
|
cracklib judy libevent libxml2
|
||||||
] ++ lib.optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl
|
] ++ lib.optional withNuma numactl
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [ linux-pam ]
|
++ lib.optionals stdenv.hostPlatform.isLinux [ linux-pam ]
|
||||||
++ lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) pmdk.dev
|
|
||||||
++ lib.optional (!stdenv.hostPlatform.isDarwin) mytopEnv
|
++ lib.optional (!stdenv.hostPlatform.isDarwin) mytopEnv
|
||||||
++ lib.optionals withStorageMroonga [ kytea libsodium msgpack zeromq ]
|
++ lib.optionals withStorageMroonga [ kytea libsodium msgpack zeromq ]
|
||||||
++ lib.optionals (lib.versionAtLeast common.version "10.7") [ fmt_8 ];
|
++ lib.optionals (lib.versionAtLeast common.version "10.7") [ fmt_8 ];
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals withEmbedded
|
propagatedBuildInputs = lib.optionals withEmbedded
|
||||||
(lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) pmdk.lib
|
(lib.optional withNuma numactl);
|
||||||
++ lib.optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) numactl);
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace scripts/galera_new_cluster.sh \
|
substituteInPlace scripts/galera_new_cluster.sh \
|
||||||
|
@ -197,7 +199,7 @@ let
|
||||||
"-DWITHOUT_EXAMPLE=1"
|
"-DWITHOUT_EXAMPLE=1"
|
||||||
"-DWITHOUT_FEDERATED=1"
|
"-DWITHOUT_FEDERATED=1"
|
||||||
"-DWITHOUT_TOKUDB=1"
|
"-DWITHOUT_TOKUDB=1"
|
||||||
] ++ lib.optionals (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch32) [
|
] ++ lib.optionals withNuma [
|
||||||
"-DWITH_NUMA=ON"
|
"-DWITH_NUMA=ON"
|
||||||
] ++ lib.optionals (!withStorageMroonga) [
|
] ++ lib.optionals (!withStorageMroonga) [
|
||||||
"-DWITHOUT_MROONGA=1"
|
"-DWITHOUT_MROONGA=1"
|
||||||
|
|
|
@ -1214,6 +1214,7 @@ mapAliases ({
|
||||||
pleroma-otp = pleroma; # Added 2021-07-10
|
pleroma-otp = pleroma; # Added 2021-07-10
|
||||||
plexpy = throw "'plexpy' has been renamed to/replaced by 'tautulli'"; # Converted to throw 2022-02-22
|
plexpy = throw "'plexpy' has been renamed to/replaced by 'tautulli'"; # Converted to throw 2022-02-22
|
||||||
pltScheme = racket; # just to be sure
|
pltScheme = racket; # just to be sure
|
||||||
|
pmdk = throw "'pmdk' is discontinued, no further support or maintenance is planned by upstream"; # Added 2023-02-06
|
||||||
pmtools = throw "'pmtools' has been renamed to/replaced by 'acpica-tools'"; # Converted to throw 2022-02-22
|
pmtools = throw "'pmtools' has been renamed to/replaced by 'acpica-tools'"; # Converted to throw 2022-02-22
|
||||||
pocketsphinx = throw "pocketsphinx has been removed: unmaintained"; # Added 2022-04-24
|
pocketsphinx = throw "pocketsphinx has been removed: unmaintained"; # Added 2022-04-24
|
||||||
polarssl = throw "'polarssl' has been renamed to/replaced by 'mbedtls'"; # Converted to throw 2022-02-22
|
polarssl = throw "'polarssl' has been renamed to/replaced by 'mbedtls'"; # Converted to throw 2022-02-22
|
||||||
|
|
|
@ -17756,8 +17756,6 @@ with pkgs;
|
||||||
openjdk = openjdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
openjdk = openjdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||||
};
|
};
|
||||||
|
|
||||||
pmdk = callPackage ../development/libraries/pmdk { };
|
|
||||||
|
|
||||||
jdepend = callPackage ../development/tools/analysis/jdepend {
|
jdepend = callPackage ../development/tools/analysis/jdepend {
|
||||||
jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue