summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-07-17 19:58:37 +0100
committerIan Lynagh <igloo@earth.li>2011-07-17 19:58:37 +0100
commitc21e57b2877669e107e44503496ec1a5a412a4a1 (patch)
tree542cdc786a7162ec59b7aacce6c748db4bd01225 /ghc.mk
parent318438136c3b2ab9b49856a074245599208be377 (diff)
downloadhaskell-c21e57b2877669e107e44503496ec1a5a412a4a1.tar.gz
Fix permissions of package.cache when installing; fixes trac #5311
When we install the packages, ghc-pkg obeys umask when creating package.cache, but for everything else we specify the permissions. We therefore fix the permissions of package.cache afterwards.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 46e0d94031..a929a51b11 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -888,6 +888,10 @@ install_packages: libffi/package.conf.install rts/package.conf.install
$(call make-command, \
"$(INSTALLED_GHC_PKG_REAL)" \
--global-conf "$(INSTALLED_PACKAGE_CONF)" hide $p))
+# when we install the packages above, ghc-pkg obeys umask when creating
+# package.cache, but for everything else we specify the permissions. We
+# therefore now fix the permissions of package.cache
+ $(CREATE_DATA) '$(INSTALLED_PACKAGE_CONF)/package.cache'
# -----------------------------------------------------------------------------
# Binary distributions