cborg Magic: ghc-9.2 no longer has GHC.IntWord64
This commit is contained in:
parent
6abd992513
commit
f2c5a21b70
|
@ -0,0 +1,11 @@
|
|||
--- cborg-0.2.8.0/src/Codec/CBOR/Magic.hs~ 2023-02-20 14:23:51.412201820 +0800
|
||||
+++ cborg-0.2.8.0/src/Codec/CBOR/Magic.hs 2023-02-20 14:28:57.892166311 +0800
|
||||
@@ -121,7 +121,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(ARCH_32bit)
|
||||
-import GHC.IntWord64 (wordToWord64#, word64ToWord#,
|
||||
+import GHC.Exts (wordToWord64#, word64ToWord#,
|
||||
intToInt64#, int64ToInt#,
|
||||
leWord64#, ltWord64#, word64ToInt64#)
|
||||
|
|
@ -21,6 +21,7 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|||
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
|
||||
# End cabal-rpm sources
|
||||
Patch0: https://patch-diff.githubusercontent.com/raw/well-typed/cborg/pull/307.patch
|
||||
Patch1: cborg-0.2.8.0-Magic-IntWord64.patch
|
||||
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: dos2unix
|
||||
|
@ -119,6 +120,7 @@ This package provides the Haskell %{pkg_name} profiling library.
|
|||
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
%patch0 -p2 -b .orig
|
||||
%patch1 -p1 -b .orig
|
||||
|
||||
|
||||
%build
|
||||
|
|
Loading…
Reference in New Issue