From d026bfba046053a6cc46fa7db938b2c264d42c02 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Mon, 8 Feb 2021 19:18:17 +0100 Subject: [PATCH] fetchcvs: fix ssh wrapper failing due to missing /usr/bin/env MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /usr/bin/env seems to be no longer be present in the sandbox. This means that fetchcvs would fail with a “not found error” whenever CVS_RSH was necessary. We fix this by simply setting the current $SHELL as shebang. Alternatively also setting it to /bin/sh statically would be possible. --- pkgs/build-support/fetchcvs/builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchcvs/builder.sh b/pkgs/build-support/fetchcvs/builder.sh index 0975c347882..fe1019aafc2 100644 --- a/pkgs/build-support/fetchcvs/builder.sh +++ b/pkgs/build-support/fetchcvs/builder.sh @@ -1,6 +1,6 @@ source $stdenv/setup -(echo '#!/usr/bin/env sh'; \ +(echo "#!$SHELL"; \ echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh chmod +x ssh export CVS_RSH=$PWD/ssh