Package: libghc-isocline-dev
Version: 1.0.9-2+loong64
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: loong64
```
diff --git a/debian/rules b/debian/rules
index e10b650..aea4b29 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,5 +5,9 @@ DEB_SETUP_BIN_NAME = debian/hlibrary.setup
DEB_CABAL_PACKAGE = isocline
DEB_DEFAULT_COMPILER = ghc
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU), loong64))
+ DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-mcmodel=medium"
+endif
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
```
Meanwhile, you can also consider the patch I attached.
Your opinions are welcome.
Thanks.
-- System Information:
Debian Release: trixie/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)
Kernel: Linux 5.10.0-60.121.0.148.oe2203.loongarch64 (SMP w/32 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to POSIX), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages libghc-isocline-dev depends on:
ii ghc [libghc-text-dev-2.0.2-982b4] 9.4.7-1+loong64.1
ii libc6 2.38-11
pn libghc-base-dev-4.17.2.0-b12f0 <none>
pn libghc-bytestring-dev-0.11.5.2-f12d6 <none>
ii libgmp10 2:6.3.0+dfsg-2
libghc-isocline-dev recommends no packages.
libghc-isocline-dev suggests no packages.
-- no debconf information
diff --git a/debian/rules b/debian/rules
index e10b650..aea4b29 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,5 +5,9 @@ DEB_SETUP_BIN_NAME = debian/hlibrary.setup
DEB_CABAL_PACKAGE = isocline
DEB_DEFAULT_COMPILER = ghc
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU), loong64))
+ DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-mcmodel=medium"
+endif
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk