[Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2017-09-27 Thread Thomas Huth
Closing this ticket, as it was rather a problem with the non-posix- compliant shell and not the QEMU build system. ** Changed in: qemu Status: New => Won't Fix -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-24 Thread Felix von Leitner
It turns out that expr does not support ^ (at least according to the man page). :-) Still, you could do expr -$flag + 1 to do the same thing. Is the ruckus just about this one place where $(( )) is used or are there other non-Bourne-shell constructs? -- You received this bug notification

[Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Felix von Leitner
I actually have bash installed as /bin/sh and /bin/bash. But I also have heirloom sh installed, which installs itself as /sbin/sh, and that happened to be first in my $PATH. Since the makefiles use sh script to run the scripts, that called the heirloom sh.

Re: [Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Eric Blake
On 07/23/2014 10:13 AM, Felix von Leitner wrote: I actually have bash installed as /bin/sh and /bin/bash. But I also have heirloom sh installed, which installs itself as /sbin/sh, and that happened to be first in my $PATH. Since the makefiles use sh script to run the scripts, that called

Re: [Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Peter Maydell
On 23 July 2014 17:31, Eric Blake ebl...@redhat.com wrote: Rather than change the Makefile to invoke the script with bash, we could instead bend over backwards to rewrite the script in a way that works with non-POSIX shells (as in, flag=`expr $flag ^ 1`), but that feels backwards to me. Until