mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
fixupPrefix: Make the prefix writable first
This ensures that strip and other commands work correctly (since sometimes the install phase will make the installed files read-only).
This commit is contained in:
parent
ae6af5c03c
commit
1d11c1dc48
@ -776,6 +776,9 @@ fixupPrefix() {
|
||||
|
||||
if ! [ -d "$prefix" ]; then return; fi
|
||||
|
||||
# Make sure everything is writable so "strip" et al. work.
|
||||
chmod -R u+w "$prefix"
|
||||
|
||||
# Put man/doc/info under share/.
|
||||
forceShare=${forceShare:=man doc info}
|
||||
if [ -n "$forceShare" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user