-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve file permissions when unpacking sources
The `tar` package, in name of portability, doesn't preserve file permissions when creating and unpacking archives. A sample package which relies on permissions to be kept as they were packed with is `ghc-parser` which executes a bash script as part of its build process. Before this patch we'd get ``` /run/user/1000/stack26234/ghc-parser-0.1.7.0/Setup.hs:2:1: Warning: Module ‘System.Cmd’ is deprecated: Use "System.Process" instead /bin/sh: ./build-parser.sh: Permission denied Configuring ghc-parser-0.1.7.0... Warning: 'hs-source-dirs: src-7.8.3' directory does not exist. ``` but now the package builds fine.
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters