correct the annotation patch to not use DEBIAN_NO_GHCI

epel9
Jens Petersen 12 years ago
parent e9907c4153
commit 38fe8bc662

@ -11,7 +11,7 @@ immutable), with a powerful loop fusion optimization framework.
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
# part of haskell-platform-2012.4 # part of haskell-platform-2012.4
Version: 0.10.0.1 Version: 0.10.0.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: %{common_summary} Summary: %{common_summary}
License: BSD License: BSD
@ -57,6 +57,9 @@ BuildRequires: ghc-primitive-devel
%changelog %changelog
* Thu Dec 6 2012 Jens Petersen <petersen@redhat.com> - 0.10.0.1-3
- correct the annotation patch to not use DEBIAN_NO_GHCI
* Thu Dec 6 2012 Jens Petersen <petersen@redhat.com> - 0.10.0.1-2 * Thu Dec 6 2012 Jens Petersen <petersen@redhat.com> - 0.10.0.1-2
- skip Data.Vector.Fusion.Stream.Monadic annotation on archs without ghci - skip Data.Vector.Fusion.Stream.Monadic annotation on archs without ghci
and build on all archs and build on all archs

@ -1,19 +1,12 @@
Description: Disable annotation without ghci
Can be removed if ghc ignores annotation without an interpreter:
http://hackage.haskell.org/trac/ghc/ticket/4268 http://hackage.haskell.org/trac/ghc/ticket/4268
Author: Joachim Breitner <nomeata@debian.org>
Bug-Debian: http://bugs.debian.org/640088
Forwarded: no
Index: haskell-vector-0.9.1/Data/Vector/Fusion/Stream/Monadic.hs
===================================================================
--- haskell-vector-0.9.1.orig/Data/Vector/Fusion/Stream/Monadic.hs 2012-02-10 23:48:51.000000000 +0100 --- haskell-vector-0.9.1.orig/Data/Vector/Fusion/Stream/Monadic.hs 2012-02-10 23:48:51.000000000 +0100
+++ haskell-vector-0.9.1/Data/Vector/Fusion/Stream/Monadic.hs 2012-02-10 23:49:04.000000000 +0100 +++ haskell-vector-0.9.1/Data/Vector/Fusion/Stream/Monadic.hs 2012-02-10 23:49:04.000000000 +0100
@@ -94,15 +94,19 @@ @@ -94,15 +94,19 @@
import Data.Word ( Word8, Word16, Word32, Word, Word64 ) import Data.Word ( Word8, Word16, Word32, Word, Word64 )
#if __GLASGOW_HASKELL__ >= 700 #if __GLASGOW_HASKELL__ >= 700
+#ifndef DEBIAN_NO_GHCI +#if 0
import GHC.Exts ( SpecConstrAnnotation(..) ) import GHC.Exts ( SpecConstrAnnotation(..) )
#endif #endif
+#endif +#endif
@ -22,7 +15,7 @@ Index: haskell-vector-0.9.1/Data/Vector/Fusion/Stream/Monadic.hs
data SPEC = SPEC | SPEC2 data SPEC = SPEC | SPEC2
#if __GLASGOW_HASKELL__ >= 700 #if __GLASGOW_HASKELL__ >= 700
+#ifndef DEBIAN_NO_GHCI +#if 0
{-# ANN type SPEC ForceSpecConstr #-} {-# ANN type SPEC ForceSpecConstr #-}
#endif #endif
+#endif +#endif

Loading…
Cancel
Save