[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: disallow spaces and colons in source pat
From: |
Antonio Ospite |
Subject: |
[Qemu-devel] [PATCH] configure: disallow spaces and colons in source path |
Date: |
Fri, 15 Mar 2019 18:50:05 +0100 |
From: Antonio Ospite <address@hidden>
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH] configure: disallow spaces and colons in source path,
Antonio Ospite <=