[ghc] fix the Cabal %patch line

Jens Petersen petersen at fedoraproject.org
Sat Jan 22 05:30:18 UTC 2011


commit c08038f454d01a52757ecf62f66a17c22a14f660
Author: Jens Petersen <petersen at redhat.com>
Date:   Sat Jan 22 15:30:08 2011 +1000

    fix the Cabal %patch line

 ghc.spec |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index bcfc277..5a90df0 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -138,17 +138,17 @@ They should be installed when GHC's profiling subsystem is needed.
 %patch2 -p1
 # disable gen_contents_index when not --batch for cron
 %patch3 -p1
-# use system libffi
-%if %{with libffi}
-%patch4 -p1 -b .libffi
-%endif
-%patch5 -p1 .b .orig
+
 # use system libraries
 rm -r ghc-tarballs/{mingw,perl}
+# use system libffi
 %if %{with libffi}
+%patch4 -p1 -b .libffi
 rm -r ghc-tarballs/libffi
 %endif
 
+%patch5 -p1 -b .orig
+
 %build
 cat > mk/build.mk << EOF
 GhcLibWays = v %{?with_prof:p} %{?with_shared:dyn} 


More information about the scm-commits mailing list