diff --git a/Cabal/src/Distribution/Simple/PreProcess.hs b/Cabal/src/Distribution/Simple/PreProcess.hs index 6945dd58ae9..a8fa649aef2 100644 --- a/Cabal/src/Distribution/Simple/PreProcess.hs +++ b/Cabal/src/Distribution/Simple/PreProcess.hs @@ -794,7 +794,7 @@ platformDefines lbi = Android -> ["android"] Ghcjs -> ["ghcjs"] Wasi -> ["wasi"] - Hurd -> ["hurd"] + Hurd -> ["gnu"] Haiku -> ["haiku"] OtherOS _ -> [] archStr = case hostArch of diff --git a/changelog.d/pr-11401 b/changelog.d/pr-11401 new file mode 100644 index 00000000000..37573b337bc --- /dev/null +++ b/changelog.d/pr-11401 @@ -0,0 +1,12 @@ +synopsis: Fix the OS string encoding for GNU/Hurd +packages: Cabal +prs: #11401 + +description: { + +Following [#9434](https://github.com/haskell/cabal/pull/9434/), and as seen +in the various `gnu_HOST_OS` uses in the GHC source code, it is expected that +GNU/Hurd is advertised as "gnu", so the OS String encoding for OSHurd was +corrected to "gnu". + +}