haskell-platform/stack-Setup-Platforms.patch
Jens Petersen 8a31ee478f patch stack setup for ppc64le and s390x
To avoid:
Error: [S-1852]
I don't know how to install GHC for (Linux,PPC64), please install manually
2023-12-15 23:02:10 +08:00

11 lines
654 B
Diff

--- stack-2.9.3.1/src/Stack/Setup.hs~ 2023-12-15 20:23:43.622387891 +0800
+++ stack-2.9.3.1/src/Stack/Setup.hs 2023-12-15 22:57:36.515310538 +0800
@@ -1566,6 +1566,8 @@
Platform Sparc Cabal.Linux -> pure "linux-sparc"
Platform AArch64 Cabal.OSX -> pure "macosx-aarch64"
Platform AArch64 Cabal.FreeBSD -> pure "freebsd-aarch64"
+ Platform PPC64 Cabal.Linux -> pure "linux-ppc64"
+ Platform S390X Cabal.Linux -> pure "linux-s390x"
Platform arch os -> throwM $ UnsupportedSetupCombo os arch
downloadOrUseLocal