diff --git a/dev-haskell/ghcide/files/ghcide-2.9.0.0-ghc-9_8_3.patch b/dev-haskell/ghcide/files/ghcide-2.9.0.0-ghc-9_8_3.patch new file mode 100644 index 0000000000..3459c86ef2 --- /dev/null +++ b/dev-haskell/ghcide/files/ghcide-2.9.0.0-ghc-9_8_3.patch @@ -0,0 +1,16 @@ +From https://github.com/haskell/haskell-language-server/pull/4444 +From: Fendor +Date: Mon, 4 Nov 2024 09:12:00 +0100 +Subject: [PATCH] Build HLS with GHC 9.8.3 + +--- a/src/Development/IDE/GHC/Compat/Core.hs ++++ b/src/Development/IDE/GHC/Compat/Core.hs +@@ -674,7 +674,7 @@ initObjLinker env = + loadDLL :: HscEnv -> String -> IO (Maybe String) + loadDLL env str = do + res <- GHCi.loadDLL (GHCi.hscInterp env) str +-#if MIN_VERSION_ghc(9,11,0) ++#if MIN_VERSION_ghc(9,11,0) || (MIN_VERSION_ghc(9, 8, 3) && !MIN_VERSION_ghc(9, 9, 0)) + pure $ + case res of + Left err_msg -> Just err_msg diff --git a/dev-haskell/ghcide/ghcide-2.9.0.0.ebuild b/dev-haskell/ghcide/ghcide-2.9.0.0.ebuild index 9ad827fba9..67da1b9930 100644 --- a/dev-haskell/ghcide/ghcide-2.9.0.0.ebuild +++ b/dev-haskell/ghcide/ghcide-2.9.0.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -# ebuild generated by hackport 0.8.5.1.9999 +# ebuild generated by hackport 0.9.0.0.9999 #hackport: flags: -ghc-patched-unboxed-bytecode,-pedantic CABAL_FEATURES="lib profile haddock hoogle hscolour" @@ -21,6 +21,10 @@ IUSE="executable test-exe" # Should be fixed in Cabal-3.10 (https://github.com/haskell/cabal/issues/1919) CABAL_HADDOCK_TARGETS="lib:${CABAL_PN}" +PATCHES=( + "${FILESDIR}/${PN}-2.9.0.0-ghc-9_8_3.patch" +) + RDEPEND=" dev-haskell/aeson:=[profile?] dev-haskell/async:=[profile?]