Failure to compile on paths that have spaces in them
I was giving Qtah a try in a folder with spaces in its names and noticed an error right after qtah-cpp-qt5 was about to be built:
Preprocessing library for qtah-cpp-qt5-0.5.1.. Building library for qtah-cpp-qt5-0.5.1.. [1 of 1] Compiling Graphics.UI.Qtah.NothingToSeeHere ( src/Graphics/UI/Qtah/NothingToSeeHere.hs, dist/dist-sandbox-2fba119d/build/Graphics/UI/Qtah/NothingToSeeHere.dyn_o ) ignoring (possibly broken) abi-depends field for packages make: Entering directory '/tmp/cabal-tmp-18446/qtah-cpp-qt5-0.5.1/cpp' /bin/sh: line 0: test: /home/user/Documents/Haskell: binary operator expected /usr/bin/qmake-qt5 -install qinstall -exe libqtah.so.0.5.0 /home/user/Documents/Haskell Cookbook/qtah/.cabal-sandbox/lib/x86_64-linux-ghc-8.4.3/libqtah.so.0.5.0 Error: usage: [-exe] source target make: [Makefile:3004: install_target] Error 3 (ignored) strip --strip-unneeded /home/user/Documents/Haskell Cookbook/qtah/.cabal-sandbox/lib/x86_64-linux-ghc-8.4.3/libqtah.so.0.5.0 strip: Warning: '/home/user/Documents/Haskell' is a directory strip: 'Cookbook/qtah/.cabal-sandbox/lib/x86_64-linux-ghc-8.4.3/libqtah.so.0.5.0': No such file make: [Makefile:3005: install_target] Error 1 (ignored) ln -f -s libqtah.so.0.5.0 /home/user/Documents/Haskell Cookbook/qtah/.cabal-sandbox/lib/x86_64-linux-ghc-8.4.3/libqtah.so
Naturally, compilation failed.
I suppose there are some unquoted paths somewhere or a
$* where it should read