Your message dated Sat, 07 Sep 2024 03:20:20 +0000
with message-id <[email protected]>
and subject line Bug#1071169: fixed in haskell-pandoc 3.1.3-3
has caused the Debian Bug report #1071169,
regarding haskell-pandoc: Use extra --ghc-options and enable tests in d/rules
on loong64
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1071169: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071169
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: haskell-pandoc
Version: 3.1.3-2
Severity: important
Tags: ftbfs patch
User: [email protected]
Usertags: loong64
Dear maintainers,
Compiling the haskell-pandoc failed for loong64 in the Debian Package
Auto-Building environment.
The error log is as follows,
```
[58 of 58] Linking dist-ghc/build/test-pandoc/test-pandoc
/usr/bin/ld.bfd:
/usr/lib/ghc/lib/../lib/loongarch64-linux-ghc-9.4.7/rts-1.0.2/libHSrts-1.0.2_thr.a(NonMovingMark.thr_o):
relocation R_LARCH_B26 overflow 0xfffffffff5fec6a4
Dump relocate record:
stack top relocation name symbol
at
/usr/lib/gcc/loongarch64-linux-gnu/13/../../../loongarch64-linux-gnu/crt1.o(.text+0x0):
...
0x0000000000000000 R_LARCH_NONE `<nameless>' + 3(0x3)
......
```
The Full log can be found at
https://buildd.debian.org/status/logs.php?pkg=haskell-pandoc&ver=3.1.3-1&arch=loong64.
The reason for the above error is that "relocation R_LARCH_B26 overflow
......" occurs during static linking in the test-pandoc stage.
Currently we have a verified method, don't need to skip test cases to
solve "relocation R_LARCH_B26
overflow ......" during static linking.
The verified method is as follows,
We need to add extra --ghc-options in d/rules on loong64 to reduce
binary size.
```
diff --git
a/home/pandoc-3/haskell-pandoc/again/haskell-pandoc-3.1.3/debian/rules
b/debian/rules
index cacf45d..7542c81 100755
--- a/home/pandoc-3/haskell-pandoc/again/haskell-pandoc-3.1.3/debian/rules
+++ b/debian/rules
@@ -2,9 +2,8 @@
DEB_ENABLE_TESTS = yes
-# Disable tests on loong64, see https://bugs.debian.org/1069165
-ifneq (,$(filter $(DEB_HOST_ARCH_CPU), loong64))
-DEB_ENABLE_TESTS = no
+ifneq (,$(filter $(DEB_BUILD_ARCH),loong64))
+DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-mcmodel=medium"
endif
```
Meanwhile, you can also consider the patch I attached.
Your opinions are welcome.
Thanks,
Dandan Zhang
diff --git a/again/haskell-pandoc-3.1.3/debian/rules
b/haskell-pandoc-3.1.3/debian/rules
index cacf45d..7542c81 100755
--- a/again/haskell-pandoc-3.1.3/debian/rules
+++ b/haskell-pandoc-3.1.3/debian/rules
@@ -2,9 +2,8 @@
DEB_ENABLE_TESTS = yes
-# Disable tests on loong64, see https://bugs.debian.org/1069165
-ifneq (,$(filter $(DEB_HOST_ARCH_CPU), loong64))
-DEB_ENABLE_TESTS = no
+ifneq (,$(filter $(DEB_BUILD_ARCH),loong64))
+DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-mcmodel=medium"
endif
include /usr/share/cdbs/1/rules/debhelper.mk
--- End Message ---
--- Begin Message ---
Source: haskell-pandoc
Source-Version: 3.1.3-3
Done: Scott Talbert <[email protected]>
We believe that the bug you reported is fixed in the latest version of
haskell-pandoc, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Scott Talbert <[email protected]> (supplier of updated haskell-pandoc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 06 Sep 2024 22:04:41 -0400
Source: haskell-pandoc
Architecture: source
Version: 3.1.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group
<[email protected]>
Changed-By: Scott Talbert <[email protected]>
Closes: 1071169 1077793 1078342
Changes:
haskell-pandoc (3.1.3-3) unstable; urgency=medium
.
[ zhangdandan <[email protected]> ]
* Use extra --ghc-options and enable tests in d/rules on loong64 (Closes:
#1071169)
.
[ Scott Talbert ]
* Use Python 3 for Python filters (Closes: #1077793)
* Fix memory leak when converting markdown files (Closes: #1078342)
Checksums-Sha1:
c29e55cc61fdadca00110b7ed6790becafabd57b 8568 haskell-pandoc_3.1.3-3.dsc
75f957749d8cd2b808866675cb0ba8a69e3a19c8 15204
haskell-pandoc_3.1.3-3.debian.tar.xz
41505c6839820eec925c564642bac591565cf13c 24432
haskell-pandoc_3.1.3-3_amd64.buildinfo
Checksums-Sha256:
0df63bb3bb8fbde5259933f19efffaa2c207108ec216233c5611c8a692a0295e 8568
haskell-pandoc_3.1.3-3.dsc
b98f43c28f094000c3cfc0c1a7deac03ae36e7d0ed59ba0235e6b20217aacfb8 15204
haskell-pandoc_3.1.3-3.debian.tar.xz
92403ca95fc8f8a20225aab3d803d7b03df19d586c669dfb62344ceddd26b5a1 24432
haskell-pandoc_3.1.3-3_amd64.buildinfo
Files:
c13982a8809ed119583a755ab71f3284 8568 haskell optional
haskell-pandoc_3.1.3-3.dsc
601ab07453ae8774cc66b07bafda43d6 15204 haskell optional
haskell-pandoc_3.1.3-3.debian.tar.xz
5761aa49365b18e0e72b9c15470fff8e 24432 haskell optional
haskell-pandoc_3.1.3-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJDBAEBCgAtFiEEbnQ09Yl9Q7F/zVe3U9W8ZLUjeKIFAmbbwScPHHN3dEB0ZWNo
aWUubmV0AAoJEFPVvGS1I3ii2AUP/jQeALZlnUFdq/IW3YIYJR5PUYvOq51pkXx2
WQcFQkUP1mUOyDrVP5zWUIr/BeY6HX5Zras2D/4Q2knhn6hyO7ZKYbwR3Rb9eaDf
gaDhpgjgebkCLafW4ViVSLrkA+io5tGFwff20nx1SPdjxKcAet/REklbZz8mcfjb
tpf5Vn13rCStI18BETb0Ve5fDTM7j6s+BmxcVTNfzYDDobBDGt5TjWRk+zp/a8eE
bb0XOdY7AK6IVVv6BFtvy7fpFHndtSa862FCS4+qCcpHBvNZJzJoFJnbrVRN95Wi
tVsAy2BvSP+qS0zbExOBkX4CfL7EcrKQ7aox1Ou09crFAK1yEDLMoiwmRSfN+px6
k0ui05BclUlhQ6LLRMc1DQ4tcGNWGAM9o3G5oFGQ36njCKByginkz9VW1NnxQlPM
G+TmPO3oVpUe+LSY+YSb+HN1i9R93XwuhS8nHEd0Oz3ui2PnS31Oc9aazBfEHoEL
xAZMbDrRcqYr136WKxgJhZqqp0H+jb6Kv5oV/50+GvgdMhAzzSxjzbzAeOvJtECp
wWxoa580WMwIwcxtUYxLxWYKxKDEpJVAFrNcQRCUgKHjx+8vXWj40pzftvARxNz0
RHcK4+NAcAsmk6Vx6eU1nmdkajxfhwIzpvHyX4R8/rMB/+ZCPr4B6c+aFD/icFqV
DmVBQ+RO
=wECL
-----END PGP SIGNATURE-----
pgp_ud7oyKxap.pgp
Description: PGP signature
--- End Message ---
_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-haskell-maintainers