[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash scri
From: |
Felix von Leitner |
Subject: |
[Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script |
Date: |
Wed, 23 Jul 2014 16:13:55 -0000 |
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.
http://heirloom.sourceforge.net/sh.html
It is, it turns out, derived from OpenSolaris. So there you go :-)
When I delete /sbin/sh, qemu builds.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1347555
Title:
qemu build failure, hxtool is a bash script, not a /bin/sh script
Status in QEMU:
New
Bug description:
hxtool (part of the early build process) is a bash script. Running it
with /bin/sh yields a syntax error on line 10:
10 STEXI*|ETEXI*|SQMP*|EQMP*) flag=$(($flag^1))
$(( expr )) is a bash extension, not part of /bin/sh.
Note that replacing the sh in the first line in hxtool with /bin/bash
does not help, because the script is run manually from the Makefile
with sh:
154 $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $<
> $@," GEN $@")
The fix is to change those lines to
154 $(call quiet-command,bash $(SRC_PATH)/scripts/hxtool -h <
$< > $@," GEN $@")
(there are five or so).
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1347555/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |