summaryrefslogtreecommitdiff
path: root/utils/fs
Commit message (Collapse)AuthorAgeFilesLines
* Windows: Update tarballs to GCC 9.2 and remove MAX_PATH limit.Tamar Christina2019-10-202-35/+275
|
* Drop accidental write-attributes requestTamar Christina2018-10-031-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: The new filesystem code accidentally asks for write attributes permissions when doing read-only access. I believe this is what's causing the GHC 8.6.1 tarballs to fail when installed to a privileged location. I haven't been able to reproduce the issue yet, but this permission bit is wrong anyway. Test Plan: I'm still trying to workout how to test that this works, changing the permissions on the folder doesn't seem to reproduce the error on a tarball I made from before the change. Reviewers: bgamari, tdammers Reviewed By: bgamari Subscribers: tdammers, monoidal, rwbarton, carter GHC Trac Issues: #15667 Differential Revision: https://phabricator.haskell.org/D5177
* utils/fs: use <sys/stat.h>, not <sys\stat.h>Sergei Trofimovich2018-05-141-2/+2
| | | | | | | | | | | | Fix cross-compilation failure from linux to windows: ``` CC utils/unlit/dist-install/build/fs.o utils/unlit/fs.c:24:10: fatal error: sys\stat.h: No such file or directory #include <sys\stat.h> ^~~~~~~~~~~~ ``` Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Remove MAX_PATH restrictions from RTS, I/O manager and various utilitiesTamar Christina2018-03-313-0/+333
Summary: This shims out fopen and sopen so that they use modern APIs under the hood along with namespaced paths. This lifts the MAX_PATH restrictions from Haskell programs and makes the new limit ~32k. There are only some slight caveats that have been documented. Some utilities have not been upgraded such as lndir, since all these things are different cabal packages I have been forced to copy the source in different places which is less than ideal. But it's the only way to keep sdist working. Test Plan: ./validate Reviewers: hvr, bgamari, erikd, simonmar Reviewed By: bgamari Subscribers: rwbarton, thomie, carter GHC Trac Issues: #10822 Differential Revision: https://phabricator.haskell.org/D4416