Bug 103532

Summary: Ninja build doesn't support paths with spaces in them
Product: Wayland Reporter: Nate Graham <nate>
Component: libinputAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: peter.hutterer
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
i915 platform: i915 features:

Description Nate Graham 2017-11-01 02:51:18 UTC
~/SpiderOak Hive/Software projects/git projects/FreeDesktop/libinput$ ninja -C builddir/
ninja: Entering directory `builddir/'
[1/264] Generating doxygen with a custom command.
FAILED: html 
/usr/bin/doxygen libinput.doxygen
error: tag HTML_HEADER: header file `/home/nate/SpiderOakHive/Softwareprojects/gitprojects/FreeDesktop/libinput/doc/style/header.html' does not exist
[6/264] Compiling C object 'libinput-debug-events@exe/tools_libinput-debug-events.c.o'.
ninja: build stopped: subcommand failed.

Notice how the spaces have disappeared in the ninja-generated build command: "/SpiderOak Hive/Software projects/git projects/" has become "SpiderOakHive/Softwareprojects/gitprojects"

If I move my checkout to a path with no spaces in it, like ~, the ninja command completes successfully.

Versions used:

$ /usr/bin/ninja --version
$ /home/nate/.local/bin/meson --version
Comment 1 Peter Hutterer 2017-11-01 05:07:37 UTC
commit fb467dce8fd3271697b5cc1aec6fdf6a12b865cc 
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Wed Nov 1 14:54:59 2017 +1000

    doc: quote all paths in the doxygen file

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.