Fix the platform string for GNU/Hurd
commit1a89c9d67d99109cc31325cbcb2f5da9e0b53bc7
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 12 Nov 2023 15:06:14 +0000 (12 16:06 +0100)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Thu, 16 Nov 2023 17:50:39 +0000 (16 17:50 +0000)
treebabd137ee7050ce72047a53b7f9269cd55f9a2fd
parentd063048711b862dbeaba8ef1a8a9bff1b2297c70
Fix the platform string for GNU/Hurd

Since version 9.4.7-1, ghc fails to build on the GNU/Hurd port of Debian,
see

https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=hurd-i386&ver=9.4.7-1&stamp=1697717885&raw=0

Error, rule finished running but did not produce file:
  _build/stage0/lib/i386-gnu-ghc-9.4.6/ghc-boot-th-9.4.7/libHSghc-boot-th-9.4.7.a

and indeed, what did get produce was rather
_build/stage0/lib/i386-hurd-ghc-9.4.6/ghc-boot-th-9.4.7/libHSghc-boot-th-9.4.7.a
(i386-hurd instead of i386-gnu).

This is due to confusion between hurd and gnu in various places.  Apparently
previous versions of ghc were using gnu for the GNU/Hurd port, and thus
putting libraries etc. in i386-gnu. So we have to follow the existing
practice.
Cabal/src/Distribution/Simple/GHC/Internal.hs
changelog.d/pr-9434 [new file with mode: 0644]