From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egsjb-0007je-LM for qemu-devel@nongnu.org; Wed, 31 Jan 2018 08:47:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egsja-0001hW-NH for qemu-devel@nongnu.org; Wed, 31 Jan 2018 08:47:31 -0500 Date: Wed, 31 Jan 2018 14:47:25 +0100 From: Cornelia Huck Message-ID: <20180131144725.0a80cf13.cohuck@redhat.com> In-Reply-To: <181748c7-c6e3-56b8-4aad-8c93cf4ebe08@de.ibm.com> References: <20180130133828.77336-1-borntraeger@de.ibm.com> <20180130133828.77336-2-borntraeger@de.ibm.com> <34c2cdf6-b773-61b6-64de-943cb2cf8ace@de.ibm.com> <181748c7-c6e3-56b8-4aad-8c93cf4ebe08@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/1] Fix configure for s390 qemu on alpine and other busybox environments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Peter Maydell , Eric Blake , Paolo Bonzini , Alice Frosi , qemu-s390x , qemu-devel On Wed, 31 Jan 2018 14:40:00 +0100 Christian Borntraeger wrote: > On 01/31/2018 01:51 PM, Peter Maydell wrote: > > On 31 January 2018 at 12:14, Christian Borntraeger > > wrote: > >> On 01/30/2018 04:41 PM, Eric Blake wrote: > >>> On 01/30/2018 07:38 AM, Christian Borntraeger wrote: > >>>> +++ b/configure > >>>> @@ -1906,9 +1906,9 @@ int main(int argc, char *argv[]) { > >>>> EOF > >>>> > >>>> if compile_object ; then > >>>> - if grep -q BiGeNdIaN $TMPO ; then > >>>> + if strings -a $TMPO | grep -q BiGeNdIaN ; then > >>>> bigendian="yes" > >>>> - elif grep -q LiTtLeEnDiAn $TMPO ; then > >>>> + elif strings -a $TMPO | grep -q LiTtLeEnDiAn ; then > >>> > >>> Yes, this is indeed a more portable way to grep binary files (it's also > >>> possible to do: > >>> > >>> tr -d '\0' < $TMPO | grep -q ... > >>> > >>> if we're worried about the availability of strings, but I don't see that > >>> being a problem if no one reports it actually failing). > >>> > >>> Reviewed-by: Eric Blake > >> > >> Peter, does that patch work on MacOS and Windows? If yes we could > >> get this patch in via the s390 tree. > > > > I haven't tested but I think it should be fine. OSX provides > > a strings binary that supports -a, and Windows cross-builds > > so it will use the Linux strings. > > > > thanks > > -- PMM > > > > Conny, can you take this patch via s390-next? > Sure, we'll notice anyway if something goes wrong after all. Thanks, queued to s390-next.