]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use a POSIX shell in bin/tests/system/ifconfig.sh
authorMichal Nowak <mnowak@isc.org>
Fri, 23 Oct 2020 07:07:44 +0000 (09:07 +0200)
committerMichal Nowak <mnowak@isc.org>
Fri, 23 Oct 2020 08:32:21 +0000 (10:32 +0200)
Some non-POSIX shells, like /bin/csh on FreeBSD, are unable to execute
the config.guess file:

    + /bin/csh /var/tmp/gitlab_runner/builds/YdCaoq4b/0/mnowak/bind9/config.guess
    timestamp=2018-02-24: Command not found.
    me=config.guess: Command not found.
    Unmatched '"'.

When ./configure is run, it attempts to locate a POSIX-compliant shell.
Use the result of that search in the bin/tests/system/ifconfig.sh
script.

bin/tests/system/ifconfig.sh.in

index 67ed60c392988170abe33ceb388074b92bf780cb..52b4a5796d0b3b0c646bd5689687ec9c95ab6da0 100755 (executable)
@@ -22,7 +22,7 @@
 
 top_srcdir=@abs_top_srcdir@
 
-sys=$($SHELL "$top_srcdir/config.guess")
+sys=$(@SHELL@ "$top_srcdir/config.guess")
 
 use_ip=
 case "$sys" in