[commit: ghc] master: ghc.mk: Ensure that ghc-pkg path is quoted (ff363bd)

git at git.haskell.org git at git.haskell.org
Fri Jun 2 18:02:23 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ff363bd74c8b2505b92b39d5fedcf95b8ab7365a/ghc

>---------------------------------------------------------------

commit ff363bd74c8b2505b92b39d5fedcf95b8ab7365a
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Fri Jun 2 13:15:52 2017 -0400

    ghc.mk: Ensure that ghc-pkg path is quoted
    
    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


>---------------------------------------------------------------

ff363bd74c8b2505b92b39d5fedcf95b8ab7365a
 ghc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ghc.mk b/ghc.mk
index 2272569..3fafcf0 100644
--- 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



More information about the ghc-commits mailing list