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

Bug#1053823: memcached: workaround to fix ftbfs on riscv64



Source: memcached
Version: 1.6.21-2
Severity: important
Tags: ftbfs patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear Maintainer,

memcached has a ftbfs issue due to:

```
...
t/chunked-extstore.t      (Wstat: 768 (exited 3) Tests: 413 Failed: 3)
  Failed tests:  124, 178, 232
  Non-zero exit status: 3
Files=87, Tests=174608, 602 wallclock secs (100.42 usr  3.16 sys + 230.34 cusr 44.41 csys = 378.33 CPU)
Result: FAIL
...
```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=memcached&arch=riscv64&ver=1.6.21-2&stamp=1692748396&raw=0

In fact, it seems the packagei(1.6.19-1) can be built in the past:
https://buildd.debian.org/status/logs.php?pkg=memcached&arch=riscv64

At first I suspected this is one issue raised by new version from
upstream. But the results suggest that may not be the case. 

1. I git bisect from 2.6.19 to 2.6.21 from upstream but it failed on the
test ceses;

2. I downloaded 2.6.18-1, which was built on Debian riscv64 from [0] but
it is still failed to built it due to the same issue. Given 
https://github.com/memcached/memcached/issues/816, So I suspect has
issue to be raised by B-D's changed.

But if applying your solution[1] on riscv64, it can be built. Maybe this
is a common issue on slower machines for memcached? I have told the
siuation to upstream on discord.

I am not sure this is right to do such thing on riscv64 so please tell
me if any issues.

BR,
Bo

[0]: https://deb.debian.org/debian/pool/main/m/memcached/memcached_1.6.18-1.dsc
[1]: https://salsa.debian.org/lamby/pkg-memcached/-/blob/debian/sid/debian/rules#L37


-- 
Regards,
--
  Bo YU

diff -Nru memcached-1.6.21/debian/changelog memcached-1.6.21/debian/changelog
--- memcached-1.6.21/debian/changelog	2023-08-22 20:08:14.000000000 +0000
+++ memcached-1.6.21/debian/changelog	2023-10-12 01:28:22.000000000 +0000
@@ -1,3 +1,10 @@
+memcached (1.6.21-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix ftbfs on riscv64. (Closes: #-1) 
+
+ -- Bo YU <tsu.yubo@gmail.com>  Thu, 12 Oct 2023 01:28:22 +0000
+
 memcached (1.6.21-2) unstable; urgency=medium
 
   * Do more cleanup in the clean target. (Closes: #1046084)
diff -Nru memcached-1.6.21/debian/rules memcached-1.6.21/debian/rules
--- memcached-1.6.21/debian/rules	2023-08-22 20:08:14.000000000 +0000
+++ memcached-1.6.21/debian/rules	2023-10-12 01:28:16.000000000 +0000
@@ -34,7 +34,7 @@
 	# .git directory (eg. on salsa)
 	rm -f t/whitespace.t
 
-ifeq (,$(filter $(DEB_BUILD_ARCH),armel armhf mips64el))
+ifeq (,$(filter $(DEB_BUILD_ARCH),armel armhf mips64el riscv64))
 	# SSL tests have a race condition and may hang
 	dh_auto_test --max-parallel=1
 endif

Attachment: signature.asc
Description: PGP signature


Reply to: