NIXPKGS-19: stdenv/generic/setup.sh not portable over different implementations of tar
From setup.sh:
*.tar.bz2 | *.tbz2) cmd=“tar xvfj $file”;;Some tar implementations (such as the one in busybox) expect that the argument directly following “f” is a filename.
This is (I believe) recommended as well (all examples in the manpage always end the argument list with “f”). The solution is to alwaus end the argument list with “f” and change the stuff in setup.sh to:Submitted on 7 August 2006 at 13:22*.tar.bz2 | *.tbz2) cmd="tar jxvf $file";;</verbatim>
Log in to post comments