mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
mach: Add support for paths with spaces on Windows (#32936)
The default user name in Windows installations is of the form "FirstName LastName", so it seems likely that there will be spaces in the user's path. Based on my testing on Windows 11, the only Servo's bootstrap script has trouble dealing with spaces in paths. This patch fixes that by quoting such paths correctly. Our direct and indirect dependencies seem to handle these without issue and Servo does build and run correctly with this patch. In this patch, the logic for gstreamer bootstrap now uses powershell instead of directly invoking msiexec.exe via cmd.exe as I was unable to get the installer to run correctly, even with quoting. Some extra hacks were necessary to propagate the exit code correctly to mach. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
f1602005a0
commit
0ce9ce8dc0
2 changed files with 20 additions and 14 deletions
|
@ -215,8 +215,8 @@ def bootstrap(topdir):
|
|||
topdir = os.path.abspath(topdir)
|
||||
|
||||
# We don't support paths with spaces for now
|
||||
# https://github.com/servo/servo/issues/9442
|
||||
if ' ' in topdir:
|
||||
# https://github.com/servo/servo/issues/9616
|
||||
if ' ' in topdir and (not _is_windows()):
|
||||
print('Cannot run mach in a path with spaces.')
|
||||
print('Current path:', topdir)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue