From: Antonio Ospite <antonio.osp...@collabora.com> The configure script breaks when the qemu source directory is in a path containing white spaces, in particular the list of targets is not correctly generated when calling "./configure --help".
To avoid this issue, refuse to run the configure script if there are spaces or colons in the source path, this is also what kbuild from linux does. Buglink: https://bugs.launchpad.net/qemu/+bug/1817345 Signed-off-by: Antonio Ospite <antonio.osp...@collabora.com> --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 7071f52584..fbd70a0f51 100755 --- a/configure +++ b/configure @@ -295,6 +295,11 @@ libs_qga="" debug_info="yes" stack_protector="" +if printf "%s" "$(realpath "$source_path")" | grep -q "[[:space:]:]"; +then + error_exit "main directory cannot contain spaces nor colons" +fi + if test -e "$source_path/.git" then git_update=yes -- 2.20.1