Accepting request 1103534 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1103534
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-tasty?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2023-08-12 13:06:43 +00:00 committed by Git OBS Bridge
commit edcc7a4f40
3 changed files with 34 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 2 17:23:04 UTC 2023 - Andreas Schwab <schwab@suse.de>
- riscv64-unbounded-delays.patch: Don't depend on unbounded-delays for
riscv64
-------------------------------------------------------------------
Thu Mar 30 17:08:30 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@ -25,6 +25,8 @@ Summary: Modern and extensible testing framework
License: MIT
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
# https://github.com/UnkindPartition/tasty/pull/371
Patch0: riscv64-unbounded-delays.patch
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-ansi-terminal-prof
@ -77,7 +79,7 @@ Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
%autosetup -n %{pkg_name}-%{version} -p1
%build
%ghc_lib_build

View File

@ -0,0 +1,25 @@
From 65da3d6512ee2f8c53d2bbde840456749c5038c8 Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Thu, 22 Jun 2023 08:21:17 +0300
Subject: [PATCH] Don't depend on unbounded-delays for riscv64
64-bit RISC-V should fall into the same case in
https://github.com/UnkindPartition/tasty/pull/344 and should be added
here. Tested locally.
---
core/tasty.cabal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: tasty-1.4.3/tasty.cabal
===================================================================
--- tasty-1.4.3.orig/tasty.cabal
+++ tasty-1.4.3/tasty.cabal
@@ -68,7 +68,7 @@ library
ansi-terminal >= 0.9
-- No reason to depend on unbounded-delays on 64-bit architecture
- if(!arch(x86_64) && !arch(aarch64))
+ if(!arch(x86_64) && !arch(aarch64) && !arch(riscv64))
build-depends:
unbounded-delays >= 0.1