Source: haskell-hspec-hedgehog
Version: 0.0.1.2-5
Severity: normal
Tags: ftbfs patch
User: [email protected]
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
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 <[email protected]> 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 <[email protected]>
+
+---
+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
_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-haskell-maintainers