Bug#1072670: haskell-hspec-hedgehog: Disable RTS -N on loong64
zhangdandan
zhangdandan at loongson.cn
Thu Jun 6 07:45:37 BST 2024
Source: haskell-hspec-hedgehog
Version: 0.0.1.2-5
Severity: normal
Tags: ftbfs patch
User: debian-loongarch at lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the haskell-hspec-hedgehog failed for loong64 in the Debian
Package Auto-Building environment.
The error log is as follows,
```
libghc-hspec-hedgehog-doc
Running 1 test suites...
Test suite hspec-hedgehog-test: RUNNING...
hspec-hedgehog-test: unknown RTS option: -N
hspec-hedgehog-test:
hspec-hedgehog-test: Usage: <prog> <args> [+RTS <rtsopts> | -RTS <args>]
... --RTS <args>
```
The Full log can be found at
https://buildd.debian.org/status/package.php?p=haskell-hspec-hedgehog+&suite=sid.
We need to disable -with-rtsopts=-N option on loongarch64.
I have built haskell-hspec-hedgehog successfully in my local ENV.
Please consider the patch I attached.
Your opinions are welcome.
Thanks,
Dandan Zhang
-------------- next part --------------
diff -Nru haskell-hspec-hedgehog-0.0.1.2/debian/changelog haskell-hspec-hedgehog-0.0.1.2/debian/changelog
--- haskell-hspec-hedgehog-0.0.1.2/debian/changelog 2023-09-10 07:41:04.000000000 +0000
+++ haskell-hspec-hedgehog-0.0.1.2/debian/changelog 2024-06-06 02:46:24.000000000 +0000
@@ -1,3 +1,9 @@
+haskell-hspec-hedgehog (0.0.1.2-5+loong64) unreleased; urgency=medium
+
+ * Disable RTS -N on loong64.
+
+ -- Dandan Zhang <zhangdandan at loongson.cn> Thu, 06 Jun 2024 10:46:24 +0800
+
haskell-hspec-hedgehog (0.0.1.2-5) unstable; urgency=medium
* Declare compliance with Debian policy 4.6.2
diff -Nru haskell-hspec-hedgehog-0.0.1.2/debian/patches/no-rts-n-for-loong64.patch haskell-hspec-hedgehog-0.0.1.2/debian/patches/no-rts-n-for-loong64.patch
--- haskell-hspec-hedgehog-0.0.1.2/debian/patches/no-rts-n-for-loong64.patch 1970-01-01 00:00:00.000000000 +0000
+++ haskell-hspec-hedgehog-0.0.1.2/debian/patches/no-rts-n-for-loong64.patch 2024-06-06 02:46:24.000000000 +0000
@@ -0,0 +1,21 @@
+Description: No RTS -N on loong64
+ .
+ haskell-hspec-hedgehog (0.0.1.2-5+loong64) unreleased; urgency=medium
+ .
+ * Disable RTS -N on loong64.
+Author: Dandan Zhang <zhangdandan at loongson.cn>
+
+---
+Last-Update: 2024-06-06
+
+--- haskell-hspec-hedgehog-0.0.1.2.orig/hspec-hedgehog.cabal
++++ haskell-hspec-hedgehog-0.0.1.2/hspec-hedgehog.cabal
+@@ -41,7 +41,7 @@ test-suite hspec-hedgehog-test
+ Spec.hs
+ hs-source-dirs:
+ test
+- if arch(arm) || arch(mips) || arch(s390x) || arch(i386) || arch(riscv64)
++ if arch(arm) || arch(mips) || arch(s390x) || arch(i386) || arch(riscv64) || arch(loongarch64)
+ ghc-options: -threaded -rtsopts
+ else
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
diff -Nru haskell-hspec-hedgehog-0.0.1.2/debian/patches/series haskell-hspec-hedgehog-0.0.1.2/debian/patches/series
--- haskell-hspec-hedgehog-0.0.1.2/debian/patches/series 2022-09-03 12:32:28.000000000 +0000
+++ haskell-hspec-hedgehog-0.0.1.2/debian/patches/series 2024-06-06 02:46:24.000000000 +0000
@@ -1 +1,2 @@
no-rts-n
+no-rts-n-for-loong64.patch
More information about the Pkg-haskell-maintainers
mailing list