[Qemu-devel] [Bug 1787012] Re: Solaris build error: Bad string

2018-08-16 Thread Daniel Berrange
** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1787012 Title: Solaris build error: Bad string Status in QEMU: Invalid Bug description: While b

[Qemu-devel] [Bug 1787012] Re: Solaris build error: Bad string

2018-08-15 Thread Michele Denber
You are absolutely correct. I found the right problem but the wrong reason. Note that: # which tr /usr/bin/tr # uname -s | tr '[/]' '[_]' Bad string # uname -s | /usr/xpg4/bin/tr '[/]' '[_]' SunOS # So it's just another POSIX problem with Solaris, not a bug. Solaris provides all the POSIX stu

[Qemu-devel] [Bug 1787012] Re: Solaris build error: Bad string

2018-08-15 Thread Daniel Berrange
It sounds more like a bug / limited featureset in the Solaris 'tr' binary. What is your $PATH ? Make sure /usr/xpg4/bin directory appears *before* /usr/bin in $PATH to get a more functional version of 'tr', though I'm not sure if that'll fix it or not. -- You received this bug notification bec

[Qemu-devel] [Bug 1787012] Re: Solaris build error: Bad string

2018-08-14 Thread Michele Denber
Oh, and how I found this. From http://lists.xymon.com/archive/2012-July/035109.html: > Sorry to reply to myself. Looks like this line: > > uname -s | tr '[/]' '[_]' > > ...is not acceptable to /usr/bin/tr on Solaris 10. It worked fine > on 9. On 10, one receives this error: > > # uname -s | tr

[Qemu-devel] [Bug 1787012] Re: Solaris build error: Bad string

2018-08-14 Thread Michele Denber
[Solved] There's nothing like going public with a problem to find the answer yourself shortly after. In case it helps someone else in the future, it turns out that the Makefile in dtc/ contains the following line: HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \ sed -e 's/\(cygwin\