bump(main/gnuchess): 6.3.0

This commit is contained in:
termux-pacman-bot
2025-09-01 12:05:41 +00:00
parent aa3c6bcdf6
commit af4445ac17
2 changed files with 31 additions and 10 deletions

View File

@@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/chess/
TERMUX_PKG_DESCRIPTION="Chess-playing program"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="6.2.11"
TERMUX_PKG_VERSION="6.3.0"
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/chess/gnuchess-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=d81140eea5c69d14b0cfb63816d4b4c9e18fba51f5267de5b1539f468939e9bd
TERMUX_PKG_SHA256=0b37bec2098c2ad695b7443e5d7944dc6dc8284f8d01fcc30bdb94dd033ca23a
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="readline"
TERMUX_PKG_RM_AFTER_INSTALL="bin/gnuchessu bin/gnuchessx"

View File

@@ -1,6 +1,6 @@
--- a/src/components.cc
+++ b/src/components.cc
@@ -74,6 +74,37 @@ int pipefd_e2a[2];
--- ./src/components.cc.orig 2025-05-17 10:43:35.000000000 +0000
+++ ./src/components.cc 2025-09-01 07:23:26.417318926 +0000
@@ -75,6 +75,37 @@
return 0;
}*/
@@ -38,7 +38,7 @@
/*
* Starts the input on a separate thread.
*/
@@ -87,7 +118,17 @@ void InitInputThread()
@@ -88,7 +119,17 @@
}
/* Start input thread */
@@ -56,14 +56,35 @@
}
/*
@@ -171,6 +212,10 @@ void TerminateAdapterEngine()
@@ -161,10 +202,18 @@
void TerminateAdapterEngine()
{
- pthread_cancel( engine_thread );
+#ifndef __ANDROID__
+ pthread_cancel( engine_thread );
+#else
+ pthread_kill( engine_thread, SIGUSR2 );
+#endif
pthread_join( engine_thread, NULL );
if ( ! (flags & UCI ) ) {
+#ifndef __ANDROID__
pthread_cancel( adapter_thread );
+#else
+ pthread_kill( adapter_thread, SIGUSR2 );
+#endif
pthread_join( adapter_thread, NULL );
}
}
@@ -172,7 +221,11 @@
void TerminateInput()
{
if ( ! (flags & UCI ) ) {
+#ifndef __ANDROID__
pthread_cancel( input_thread );
pthread_cancel( input_thread );
+#else
+ pthread_kill( input_thread, SIGUSR2 );
+ pthread_kill( input_thread, SIGUSR2 );
+#endif
pthread_join( input_thread, NULL );
pthread_join( input_thread, NULL );
}
}