Merge pull request #212688 from trofi/dejagnu-fix-argv0

dejagnu: fix target passing for 'runtest' wrapper
This commit is contained in:
Sergei Trofimovich 2023-01-26 22:17:37 +00:00 committed by GitHub
commit c103c51dd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,8 +36,11 @@ stdenv.mkDerivation rec {
'';
postInstall = ''
wrapProgram "$out/bin/runtest" \
--prefix PATH ":" "${expect}/bin"
# 'runtest' and 'dejagnu' look up 'expect' in their 'bin' path
# first. We avoid use of 'wrapProgram' here because wrapping
# of shell scripts does not preserve argv[0] for schell scripts:
# https://sourceware.org/PR30052#c5
ln -s ${expect}/bin/expect $out/bin/expect
'';
meta = with lib; {