[commit: ghc] master: Fix permissions of package.cache when installing; fixes trac #5311 (c21e57b)
Ian Lynagh
igloo at earth.li
Sun Jul 17 21:12:00 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/c21e57b2877669e107e44503496ec1a5a412a4a1
>---------------------------------------------------------------
commit c21e57b2877669e107e44503496ec1a5a412a4a1
Author: Ian Lynagh <igloo at earth.li>
Date: Sun Jul 17 19:58:37 2011 +0100
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.
>---------------------------------------------------------------
ghc.mk | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ghc.mk b/ghc.mk
index 46e0d94..a929a51 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
More information about the Cvs-ghc
mailing list