From ceb37cfe1cc8c6cd9e53577c5a7eb37c2c11af30 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 17 Feb 2023 09:25:34 +0800 Subject: [PATCH] ghc.ppc64le rts does not have -rtsopts=-N --- colourista-testsuite-ppc.patch | 10 ++++++++++ ghc-colourista.spec | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 colourista-testsuite-ppc.patch diff --git a/colourista-testsuite-ppc.patch b/colourista-testsuite-ppc.patch new file mode 100644 index 0000000..8911466 --- /dev/null +++ b/colourista-testsuite-ppc.patch @@ -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 diff --git a/ghc-colourista.spec b/ghc-colourista.spec index d702f0a..fd06641 100644 --- a/ghc-colourista.spec +++ b/ghc-colourista.spec @@ -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