libks: 2.0.7 -> 2.0.8

This commit is contained in:
Weijia Wang
2025-11-03 22:11:11 +01:00
parent 46c9f1f9c2
commit 486baa8aff
2 changed files with 3 additions and 38 deletions
@@ -1,31 +0,0 @@
From 61f2d2f7e308c42cce652db4a172cfa4b0ff6bf1 Mon Sep 17 00:00:00 2001
From: OPNA2608 <opna2608@protonmail.com>
Date: Sat, 18 Oct 2025 22:45:37 +0200
Subject: [PATCH] tests/testhash.c: Properly request shutdown of test2 threads
So they can be destroyed properly. Fixes sometimes-occuring SIGSEGVs.
---
tests/testhash.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/testhash.c b/tests/testhash.c
index 0769aa6..cb6ed24 100644
--- a/tests/testhash.c
+++ b/tests/testhash.c
@@ -134,7 +134,12 @@ int test2(void)
}
for (i = 0; i < ttl; i++) {
- ks_thread_destroy(&threads[i]);
+ ks_thread_request_stop(threads[i]);
+ }
+
+ for (i = 0; i < ttl; i++) {
+ ks_thread_join(threads[i]);
+ if (ks_thread_destroy(&threads[i]) != KS_STATUS_SUCCESS) return 0;
}
--
2.51.0
+3 -7
View File
@@ -15,13 +15,13 @@
stdenv.mkDerivation rec {
pname = "libks";
version = "2.0.7";
version = "2.0.8";
src = fetchFromGitHub {
owner = "signalwire";
repo = "libks";
rev = "v${version}";
sha256 = "sha256-fiBemt71UJgN0RryGmGiK7sob1xbdmSOArEGt5Pg5YM=";
tag = "v${version}";
hash = "sha256-cBNNCOm+NcIvozN4Z4XnZWBBqq0LVELVqXubQB4JMTU=";
};
patches = [
@@ -29,9 +29,6 @@ stdenv.mkDerivation rec {
url = "https://raw.githubusercontent.com/openwrt/telephony/5ced7ea4fc9bd746273d564bf3c102f253d2182e/libs/libks/patches/01-find-libm.patch";
sha256 = "1hyrsdxg69d08qzvf3mbrx2363lw52jcybw8i3ynzqcl228gcg8a";
})
# Remove when https://github.com/signalwire/libks/pull/246 merged & in release
./1001-tests-testhash.c-Properly-request-shutdown-of-test2-threads.patch
];
dontUseCmakeBuildDir = true;
@@ -72,7 +69,6 @@ stdenv.mkDerivation rec {
};
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "Foundational support for signalwire C products";
homepage = "https://github.com/signalwire/libks";
maintainers = with lib.maintainers; [ misuzu ];