mosquitto: fix build
[oi-userland.git] / components / shell / parallel / patches / src.sql.patch
blobf79d80baf9842d9488a959218d30fcf0aa82736d
1 This patch is needed because the sql script is expecting the which
2 command to return errors on stderr, not stdout and assumes anything
3 on stdout is an actual path. (And since /bin/which starts a new
4 csh, it only checks .cshrc $PATH not current $PATH settings.)
6 --- parallel-20120422/src/sql.orig 2012-12-11 13:21:20.855778203 -0800
7 +++ parallel-20120422/src/sql 2012-12-11 13:22:33.870295549 -0800
8 @@ -890,7 +890,7 @@
9 sub find_command_in_path {
10 # Find the command if it exists in the current path
11 my $command = shift;
12 - my $path = `which $command`;
13 + my $path = `/usr/gnu/bin/which $command`;
14 chomp $path;
15 return $path;