[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1115251: cuneiform: fix FTBFS on riscv64



Package: cuneiform
Severity: important
Tags: ftbfs, patch
X-Debbugs-Cc: debian-riscv@lists.debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64

Dear Maintainer,

cuneiform had FTBFS issue on riscv64 in the past due to test failed:

```
--- images/phototest.tif.txt    2011-04-19 12:49:57.000000000 +0000
+++ /tmp/cuneiform.test.tDmCXTIp/phototest.tif.out      2025-09-12 21:58:19.126252412 +0000
@@ -1,7 +1,7 @@
-This is a lot of 12 point text to test the
-ocr code and see if it works on all types
+This is a lot of 12 poiet text to test the
+ocr code aed see if it works oe all types
 of file format.
-The quick brown dog jumped over the
+The quick browe dog jumped over the
 lazy fox. The quick brown dog jumped
 over the lazy fox. The quick brown dog
 jumped over the lazy fox. The quick
make[1]: *** [debian/rules:47: override_dh_auto_test] Error 1
make[1]: Leaving directory '/build/reproducible-path/cuneiform-1.1.0+dfsg'
```

https://buildd.debian.org/status/fetch.php?pkg=cuneiform&arch=riscv64&ver=1.1.0%2Bdfsg-13&stamp=1757714309&raw=0

I just have a look at this and found the solution is easy to enable signed-char
on riscv64 like other architectures. And I have tested the patch on my local
machines so the test was passed. Could you apply it on your next upload or let
me know any issue.


-- 
Regards,
--
  Bo YU

diff -Nru cuneiform-1.1.0+dfsg/debian/changelog cuneiform-1.1.0+dfsg/debian/changelog
--- cuneiform-1.1.0+dfsg/debian/changelog	2025-09-10 18:29:41.000000000 +0800
+++ cuneiform-1.1.0+dfsg/debian/changelog	2025-09-13 11:11:49.000000000 +0800
@@ -1,3 +1,10 @@
+cuneiform (1.1.0+dfsg-13.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add build support for riscv64. (Closes: #-1)
+
+ -- Bo YU <vimer@debian.org>  Sat, 13 Sep 2025 11:11:49 +0800
+
 cuneiform (1.1.0+dfsg-13) unstable; urgency=medium
 
   * QA upload.
diff -Nru cuneiform-1.1.0+dfsg/debian/rules cuneiform-1.1.0+dfsg/debian/rules
--- cuneiform-1.1.0+dfsg/debian/rules	2025-09-10 18:29:41.000000000 +0800
+++ cuneiform-1.1.0+dfsg/debian/rules	2025-09-13 11:06:44.000000000 +0800
@@ -6,7 +6,7 @@
 include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
 
-ifneq (,$(filter $(DEB_BUILD_ARCH),armhf arm64 armel ppc64el s390x))
+ifneq (,$(filter $(DEB_BUILD_ARCH),armhf arm64 armel ppc64el riscv64 s390x))
 SIGNED_CHAR	 = -fsigned-char
 else
 SIGNED_CHAR	 =

Attachment: signature.asc
Description: PGP signature


Reply to: