configure script breaks when $source_path contains white spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
I noticed that 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".
Steps to reproduce the problem:
$ mkdir "dir with spaces"
$ cd dir\ with\ spaces/
$ git clone https:/
$ cd qemu/
$ ./configure --help | grep -A3 target-list
Actual result:
--target-
Expected result:
--target-
This happens because the $mak_wilds variable uses spaces to separate different paths, maybe newlines may be used, which are less likely to be in directory names.
BTW "shellcheck" may help finding some other problems.
Qemu version:
$ git describe
v3.1.0-
Thanks,
Antonio
I think it is better to just disallow building in a path containing spaces, -- there are so many packages and other tools that fails in this config, might require lots of work to fix this AND to ensure all future changes are still working, and there's an easy workaround
Just my few cents.