ghc.mk: Ensure that ghc-pkg path is quoted
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 2 Jun 2017 17:15:52 +0000 (13:15 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 2 Jun 2017 17:15:53 +0000 (13:15 -0400)
Otherwise this will fail if the prefix path contains spaces. Thanks to
marinelli for pointing this out.

Test Plan: Validate

Reviewers: austin

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3604

ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 2272569..3fafcf0 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -1039,7 +1039,7 @@ install_packages: rts/dist/package.conf.install
 
 # Finally, update package.cache to ensure it's newer than the registration
 # files. This avoids #13375.
-       $(INSTALLED_GHC_PKG_REAL) --global-package-db "$(INSTALLED_PACKAGE_CONF)" recache
+       "$(INSTALLED_GHC_PKG_REAL)" --global-package-db "$(INSTALLED_PACKAGE_CONF)" recache
 
 # -----------------------------------------------------------------------------
 # Binary distributions