Package: libghc-lua-dev
Version: 2.3.1+ds1-1+loong64
Severity: important
Tags: ftbfs patch 
User: debian-loonga...@lists.debian.org
Usertags: loong64 

```            
diff --git a/debian/rules b/debian/rules
index 59f790b..3d9f28f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,9 @@
 DEB_ENABLE_TESTS = yes
 DEB_SETUP_GHC_CONFIGURE_ARGS += --flags="system-lua pkg-config"
 
+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-lua-dev depends on:
ii  ghc [libghc-base-dev-4.17.2.0-b12f0]  9.4.7-1+loong64.1
ii  libc6                                 2.38-11
ii  libgmp10                              2:6.3.0+dfsg-2
ii  liblua5.4-0                           5.4.6-3+b1
ii  liblua5.4-dev                         5.4.6-3+b1

libghc-lua-dev recommends no packages.

libghc-lua-dev suggests no packages.

-- no debconf information
diff --git a/debian/rules b/debian/rules
index 59f790b..3d9f28f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,9 @@
 DEB_ENABLE_TESTS = yes
 DEB_SETUP_GHC_CONFIGURE_ARGS += --flags="system-lua pkg-config"
 
+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

Reply via email to