Bug#1068751: haskell-lift-type: Disable RTS -N on loong64

zhangdandan zhangdandan at loongson.cn
Wed Apr 10 12:36:25 BST 2024


Source: haskell-lift-type
Version: 0.1.1.1-1
Severity: wishlist
Tags: ftbfs patch
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the haskell-lift-type failed for loong64 in the Debian Package 
Auto-Building environment.
The error log is as follows,
```
Running 1 test suites...
Test suite lift-type-test: RUNNING...
lift-type-test: unknown RTS option: -N
lift-type-test:
lift-type-test: Usage: <prog> <args> [+RTS <rtsopts> | -RTS <args>] ... 
--RTS <args>
```

The Full log can be found at 
https://buildd.debian.org/status/logs.php?pkg=haskell-lift-type&ver=0.1.1.1-1&arch=loong64.

We need to disable -with-rtsopts=-N option on loongarch64.
I have built haskell-lift-type successfully on my local ENV.
Please consider the patch I attached.
Your opinions are welcome.

Thanks,
Dandan Zhang

-------------- next part --------------
diff -Nru haskell-lift-type-0.1.1.1/debian/patches/no-rts-n-on-loong64.patch haskell-lift-type-0.1.1.1/debian/patches/no-rts-n-on-loong64.patch
--- haskell-lift-type-0.1.1.1/debian/patches/no-rts-n-on-loong64.patch	1970-01-01 00:00:00.000000000 +0000
+++ haskell-lift-type-0.1.1.1/debian/patches/no-rts-n-on-loong64.patch	2023-08-28 14:25:22.000000000 +0000
@@ -0,0 +1,14 @@
+Description: disable -with-rtsopts=-N option on loongarch64
+Last-Update: 2024-04-10
+
+--- haskell-lift-type-0.1.1.1.orig/lift-type.cabal
++++ haskell-lift-type-0.1.1.1/lift-type.cabal
+@@ -34,7 +34,7 @@ test-suite lift-type-test
+   main-is: 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-lift-type-0.1.1.1/debian/patches/series haskell-lift-type-0.1.1.1/debian/patches/series
--- haskell-lift-type-0.1.1.1/debian/patches/series	2022-09-03 12:32:28.000000000 +0000
+++ haskell-lift-type-0.1.1.1/debian/patches/series	2023-08-28 14:25:22.000000000 +0000
@@ -1 +1,2 @@
 no-rts-n
+no-rts-n-on-loong64.patch


More information about the Pkg-haskell-maintainers mailing list