ghc.ppc64le rts does not have -rtsopts=-N

This commit is contained in:
Jens Petersen 2023-02-17 09:25:34 +08:00
parent b28a771fdf
commit ceb37cfe1c
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- colourista-0.1.0.1/colourista.cabal~ 2001-09-09 09:46:40.000000000 +0800
+++ colourista-0.1.0.1/colourista.cabal 2023-02-17 09:22:56.784571275 +0800
@@ -89,5 +89,6 @@
, text
ghc-options: -threaded
- -rtsopts
+ if(!arch(ppc64))
+ ghc-options: -rtsopts
-with-rtsopts=-N

View File

@ -19,6 +19,7 @@ Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# End cabal-rpm sources
Patch0: colourista-testsuite-ppc.patch
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
@ -82,6 +83,7 @@ This package provides the Haskell %{pkg_name} profiling library.
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
# End cabal-rpm setup
%patch0 -p1 -b .orig
%build