Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
d8d4c2a5
Commit
d8d4c2a5
authored
Jul 28, 2011
by
Ian Lynagh
Browse files
Fix the permissions of all the package.conf.d files when installing
Fixes trac #5311.
parent
f426eef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc.mk
View file @
d8d4c2a5
...
...
@@ -889,9 +889,11 @@ install_packages: libffi/package.conf.install rts/package.conf.install
"
$(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'
# the package.conf files, but for everything else we specify the
# permissions. We therefore now fix the permissions of package.cache.
# This means "sudo make install" does the right thing even if it runs
# with an 077 umask.
for
f
in
'$(INSTALLED_PACKAGE_CONF)'
/*;
do
$(CREATE_DATA)
"$$f"
;
done
# -----------------------------------------------------------------------------
# Binary distributions
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment