diff --git a/Cabal/src/Distribution/Simple/GHC/Internal.hs b/Cabal/src/Distribution/Simple/GHC/Internal.hs index 4c9bce31f8e..3dbe54238fc 100644 --- a/Cabal/src/Distribution/Simple/GHC/Internal.hs +++ b/Cabal/src/Distribution/Simple/GHC/Internal.hs @@ -785,6 +785,7 @@ ghcOsString :: OS -> String ghcOsString Windows = "mingw32" ghcOsString OSX = "darwin" ghcOsString Solaris = "solaris2" +ghcOsString Hurd = "gnu" ghcOsString other = prettyShow other -- | GHC's rendering of its platform and compiler version string as used in diff --git a/changelog.d/pr-9434 b/changelog.d/pr-9434 new file mode 100644 index 00000000000..a7872ea3fb3 --- /dev/null +++ b/changelog.d/pr-9434 @@ -0,0 +1,11 @@ +synopsis: Fix the platform string for GNU/Hurd +packages: Cabal +prs: #9434 + +description: { + +Depending who you ask, GNU/Hurd will be labelled "gnu" or "hurd". The autotools +use "gnu", so ghc follows this for installed files, even if the ghc source code +uses OSHurd. We thus need to add the translation between the two. + +}