Upload Tizen:Base source
[external/binutils.git] / debian / patches / 013_bash_in_ld_testsuite.patch
1 Author: Matthias Klose <doko@ubuntu.com>
2 Description: Explicitely use bash for the ld testsuite.
3 --- a/ld/testsuite/config/default.exp
4 +++ b/ld/testsuite/config/default.exp
5 @@ -119,10 +119,10 @@
6         #makefile rules, with embedded shell variable expansions.
7         #make wants $$shell_var, we want $shell_var ...
8         set cmd "host='$target_triplet' && . $srcdir/../configure.host && sed -e 's,\\\$\\\$,\$,g' <<EOF\n\$$varname\nEOF"
9 -       set status [catch "exec sh -c [list $cmd]" result]
10 +       set status [catch "exec bash -c [list $cmd]" result]
11         if $status { error "Error getting native link files: $result" }
12         set cmd "CC='$CC' && eval echo \"$result\""
13 -       set status [catch "exec sh -c [list $cmd]" result]
14 +       set status [catch "exec bash -c [list $cmd]" result]
15         if $status { error "Error getting native link files: $result" }
16         set $varname $result
17         send_log "$varname = $result\n"
18 @@ -132,7 +132,7 @@
19  proc get_target_emul {} {
20      global target_triplet
21      global srcdir
22 -    set status [catch "exec sh -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
23 +    set status [catch "exec bash -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
24      if $status { error "Error getting emulation name: $result" }
25      return $result
26  }