fix the sdist file permissions patch to compile again

This commit is contained in:
Jens Petersen 2021-09-09 22:46:32 +08:00
parent f9364b74e0
commit 41c04151a3
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ index 55d01ad24a..218da6b720 100644
Right path -> tell [Tar.directoryEntry path]
for_ files $ \(perm, file) -> do
+ realPerm <- getPermissions file
+ realPerm <- liftIO $ getPermissions file
let fileDir = takeDirectory (prefix </> file)
perm' = case perm of
- Exec -> Tar.executableFilePermissions

View File

@ -80,7 +80,7 @@ installation of Haskell libraries and programs.
%setup -q
# End cabal-rpm setup
# CmdSdist type mismatch: IO vs StateT (Set FilePath) (WriterT [Tar.Entry] IO)
#%%patch0 -p2 -b .sdist
%patch0 -p2 -b .sdist
%patch1 -p2 -b .ghc8.10
#cabal-tweak-dep-ver base '< 4.14' '< 4.15'
%patch2 -p2 -b .base16
@ -118,6 +118,7 @@ install -pm 644 -D -t %{buildroot}%{_sysconfdir}/profile.d/ %{SOURCE10}
%changelog
* Thu Sep 9 2021 Jens Petersen <petersen@redhat.com> - 3.2.0.0-2
- recommends zlib-devel for convenience
- fix the sdist file permissions patch to compile in 3.2
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 3.2.0.0-1
- update to 3.2.0.0