mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
zfs: fix build w/gibc-2.32
This commit is contained in:
parent
0258849e61
commit
bafe7eb14d
@ -9,6 +9,7 @@
|
||||
, nfs-utils
|
||||
, gawk, gnugrep, gnused, systemd
|
||||
, smartmontools, sysstat, sudo
|
||||
, pkgconfig
|
||||
|
||||
# Kernel dependencies
|
||||
, kernel ? null
|
||||
@ -94,17 +95,14 @@ let
|
||||
substituteInPlace ./cmd/vdev_id/vdev_id \
|
||||
--replace "PATH=/bin:/sbin:/usr/bin:/usr/sbin" \
|
||||
"PATH=${makeBinPath [ coreutils gawk gnused gnugrep systemd ]}"
|
||||
'' + optionalString stdenv.hostPlatform.isMusl ''
|
||||
substituteInPlace config/user-libtirpc.m4 \
|
||||
--replace /usr/include/tirpc ${libtirpc}/include/tirpc
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook nukeReferences ]
|
||||
++ optionals buildKernel (kernel.moduleBuildDependencies ++ [ perl ]);
|
||||
buildInputs = optionals buildUser [ zlib libuuid attr ]
|
||||
++ optionals buildKernel (kernel.moduleBuildDependencies ++ [ perl ])
|
||||
++ optional buildUser pkgconfig;
|
||||
buildInputs = optionals buildUser [ zlib libuuid attr libtirpc ]
|
||||
++ optional buildUser openssl
|
||||
++ optional (buildUser && enablePython) python3
|
||||
++ optional stdenv.hostPlatform.isMusl libtirpc;
|
||||
++ optional (buildUser && enablePython) python3;
|
||||
|
||||
# for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work
|
||||
NIX_CFLAGS_LINK = "-lgcc_s";
|
||||
@ -113,6 +111,7 @@ let
|
||||
|
||||
configureFlags = [
|
||||
"--with-config=${configFile}"
|
||||
"--with-tirpc=1"
|
||||
(withFeatureAs (buildUser && enablePython) "python" python3.interpreter)
|
||||
] ++ optionals buildUser [
|
||||
"--with-dracutdir=$(out)/lib/dracut"
|
||||
|
Loading…
Reference in New Issue
Block a user