From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9yus-0004Ro-6c for qemu-devel@nongnu.org; Wed, 23 Jul 2014 11:57:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9yul-0007TU-9g for qemu-devel@nongnu.org; Wed, 23 Jul 2014 11:57:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9yul-0007TN-0G for qemu-devel@nongnu.org; Wed, 23 Jul 2014 11:57:11 -0400 Message-ID: <53CFDB53.9070007@redhat.com> Date: Wed, 23 Jul 2014 09:57:07 -0600 From: Eric Blake MIME-Version: 1.0 References: <20140723102116.9178.33943.malonedeb@gac.canonical.com> <20140723102116.9178.33943.malonedeb@gac.canonical.com> In-Reply-To: <20140723102116.9178.33943.malonedeb@gac.canonical.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xBVrHISghJv8O78nLdGTJKSHuxgl40nl3" Subject: Re: [Qemu-devel] [Bug 1347555] [NEW] qemu build failure, hxtool is a bash script, not a /bin/sh script List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1347555 <1347555@bugs.launchpad.net>, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xBVrHISghJv8O78nLdGTJKSHuxgl40nl3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/23/2014 04:21 AM, Felix von Leitner wrote: > Public bug reported: >=20 > hxtool (part of the early build process) is a bash script. Running it > with /bin/sh yields a syntax error on line 10: >=20 > 10 STEXI*|ETEXI*|SQMP*|EQMP*) flag=3D$(($flag^1)) >=20 > $(( expr )) is a bash extension, not part of /bin/sh. Wrong. $(( expr )) is mandated by POSIX. What system are you on where /bin/sh is not POSIX? (Solaris is the only platform where /bin/sh does not try to be POSIX-compliant, but who uses that for qemu?) What is the actual syntax error you are seeing? Is this a bug in dash on your distribution? I can't get dash to fail for me on Fedora: $ dash -c 'f=3D1; f=3D$(($f^1)); echo $f' 0 $ dash -n scripts/hxtool; echo $? 0 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --xBVrHISghJv8O78nLdGTJKSHuxgl40nl3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTz9tTAAoJEKeha0olJ0Nqvc8IAIkisJeYp6nv4G876fqwUsNi 7iMj6Sdk+EjW7KaegKrwzusHP9vQtJJbB6W2RCz3NwH5RkCb/aXYoSCbrL3Iqnmj 2JjWXMV3+CARIvJVGrwbka6EXQY9pTGoJz7MpH2WLAr8fF9B5GeHxGkz7c2GAtmu rzKiH2dwwHEjnkJR7ftlezS1KpbhLrbVkxKTujyhpAyq9wGuZr66xc3ABOrUtrpw k2FEUzkhTCcWcA+MHGvGL2+sQ4We4YpbcRhnA07yoAZZIEzvXtcpp/xOq50kqjOY twpCxY7EeBot+3H8cp3t+Dio825MPa3ei+p6em0OM1aq2csaxUnH7lTXP4xQtys= =0MLv -----END PGP SIGNATURE----- --xBVrHISghJv8O78nLdGTJKSHuxgl40nl3--