[leksah-server] disabled threaded on secondary archs without rts_thr (#870327)

Jens Petersen petersen at fedoraproject.org
Tue Dec 4 04:45:12 UTC 2012


commit 1a6f8f9add4a462ebc1943c25d7247d65209dea2
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Dec 4 13:44:45 2012 +0900

    disabled threaded on secondary archs without rts_thr (#870327)

 leksah-server-no-threaded.patch |   11 +++++++++++
 leksah-server.spec              |   10 +++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/leksah-server-no-threaded.patch b/leksah-server-no-threaded.patch
new file mode 100644
index 0000000..064a1a3
--- /dev/null
+++ b/leksah-server-no-threaded.patch
@@ -0,0 +1,11 @@
+--- leksah-server-0.12.1.2/leksah-server.cabal~	2012-06-20 05:52:41.000000000 +0900
++++ leksah-server-0.12.1.2/leksah-server.cabal	2012-12-04 13:31:43.762279785 +0900
+@@ -27,7 +27,7 @@
+     Description: Use libcurl instead of running wget
+ 
+ flag threaded
+-    default: True
++    default: False
+     description: Build with support for multithreaded execution
+ 
+ library
diff --git a/leksah-server.spec b/leksah-server.spec
index 14b65aa..f59a9bd 100644
--- a/leksah-server.spec
+++ b/leksah-server.spec
@@ -9,7 +9,7 @@
 
 Name:           %{pkg_name}
 Version:        0.12.1.2
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        %{common_summary}
 
 # License in the LICENSE file is mentioned as GPLV2 while sources specify
@@ -17,6 +17,7 @@ Summary:        %{common_summary}
 License:        GPL+
 URL:            http://hackage.haskell.org/package/%{name}
 Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
+Patch1:         leksah-server-no-threaded.patch
 
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
@@ -52,6 +53,10 @@ Requires:       wget, cabal-install
 
 %prep
 %setup -q
+# archs without threaded RTS
+%ifarch ppc64 s390 s390x
+%patch1 -p1 -b .orig
+%endif
 
 
 %build
@@ -86,6 +91,9 @@ Requires:       wget, cabal-install
 
 
 %changelog
+* Tue Dec  4 2012 Jens Petersen <petersen at redhat.com> - 0.12.1.2-8
+- disabled threaded flag on secondary archs without threaded RTS (#870327)
+
 * Sat Nov 17 2012 Jens Petersen <petersen at redhat.com> - 0.12.1.2-7
 - update with cabal-rpm
 


More information about the scm-commits mailing list