mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
zfs: fix invalid use of substituteInPlace
substituteInPlace was invoked with multiple targets on the command line, which is not supported. (cherry picked from commitb21defaf51
) Re-applied due to bad merge inb116fa5ff2
.
This commit is contained in:
parent
6f0ef6bb32
commit
cdb18068cd
@ -45,7 +45,6 @@ in stdenv.mkDerivation rec {
|
||||
substituteInPlace ./module/zfs/zfs_ctldir.c --replace "mount -t zfs" "${utillinux}/bin/mount -t zfs"
|
||||
substituteInPlace ./lib/libzfs/libzfs_mount.c --replace "/bin/umount" "${utillinux}/bin/umount"
|
||||
substituteInPlace ./lib/libzfs/libzfs_mount.c --replace "/bin/mount" "${utillinux}/bin/mount"
|
||||
substituteInPlace ./udev/rules.d/* --replace "/lib/udev/vdev_id" "$out/lib/udev/vdev_id"
|
||||
substituteInPlace ./cmd/ztest/ztest.c --replace "/usr/sbin/ztest" "$out/sbin/ztest"
|
||||
substituteInPlace ./cmd/ztest/ztest.c --replace "/usr/sbin/zdb" "$out/sbin/zdb"
|
||||
substituteInPlace ./config/user-systemd.m4 --replace "/usr/lib/modules-load.d" "$out/etc/modules-load.d"
|
||||
@ -55,6 +54,12 @@ in stdenv.mkDerivation rec {
|
||||
substituteInPlace ./module/Makefile.in --replace "/bin/cp" "cp"
|
||||
substituteInPlace ./etc/systemd/system/zfs-share.service.in \
|
||||
--replace "@bindir@/rm " "${coreutils}/bin/rm "
|
||||
|
||||
for f in ./udev/rules.d/*
|
||||
do
|
||||
substituteInPlace "$f" --replace "/lib/udev/vdev_id" "$out/lib/udev/vdev_id"
|
||||
done
|
||||
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user