#!/bin/sh -e ## 007_bash_in_ld_testsuite.dpatch.dpatch by Matthias Klose ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Explicitely use bash for the ld testsuite. if [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts patch_opts="${patch_opts:--f --no-backup-if-mismatch}" case "$1" in -patch) patch $patch_opts -p1 < $0;; -unpatch) patch $patch_opts -p1 -R < $0;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0 @DPATCH@ --- ./ld/testsuite/config/default.exp~ 2007-07-07 19:55:47.000000000 +0200 +++ ./ld/testsuite/config/default.exp 2007-07-07 20:20:45.000000000 +0200 @@ -117,7 +117,7 @@ global srcdir global CC if ![info exists $varname] { - set status [catch "exec sh -c \"host='$target_triplet' && CC='$CC' && . $srcdir/../configure.host && eval echo \\$$varname\"" result] + set status [catch "exec bash -c \"host='$target_triplet' && CC='$CC' && . $srcdir/../configure.host && eval echo \\$$varname\"" result] if $status { error "Error getting native link files: $result" } set $varname $result } @@ -126,7 +126,7 @@ proc get_target_emul {} { global target_triplet global srcdir - set status [catch "exec sh -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result] + set status [catch "exec bash -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result] if $status { error "Error getting emulation name: $result" } return $result }