From 0c3a088a8627d974009d368475c59e1ea2a58029 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Sun, 19 Nov 2023 14:16:13 +0200 Subject: [PATCH] Disable tests on riscv64 Solves: [..] Preprocessing test suite 'spec' for generic-deriving-1.14.4.. Building test suite 'spec' for generic-deriving-1.14.4.. [1 of 8] Compiling DefaultSpec [2 of 8] Compiling EmptyCaseSpec : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter [3 of 8] Compiling ExampleSpec : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter [4 of 8] Compiling T68Spec : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter [5 of 8] Compiling T80Spec : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter [6 of 8] Compiling T82Spec : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter [7 of 8] Compiling TypeInTypeSpec : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter error: Bad exit status from /var/tmp/rpm-tmp.qPmyRW (%build) Bad exit status from /var/tmp/rpm-tmp.qPmyRW (%build) RPM build errors: [..] Signed-off-by: David Abdurachmanov --- ghc-generic-deriving.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghc-generic-deriving.spec b/ghc-generic-deriving.spec index 692bdb4..b9acbbe 100644 --- a/ghc-generic-deriving.spec +++ b/ghc-generic-deriving.spec @@ -4,11 +4,15 @@ %global pkg_name generic-deriving %global pkgver %{pkg_name}-%{version} +%ifnarch riscv64 %bcond_without tests +%else +%bcond_with tests +%endif Name: ghc-%{pkg_name} Version: 1.14.4 -Release: %autorelease +Release: %autorelease -e 0.riscv64 Summary: Generic programming library for generalised deriving License: BSD-3-Clause