Tested in a proot on amd64.  Passes portcheck and port-lib-depends-check.

Changelog: https://github.com/pokerth/pokerth/releases/tag/v2.0.7

OKs?  Comments?
diff --git games/pokerth/Makefile games/pokerth/Makefile
index 8b5c7fa6c45..4dc80924c92 100644
--- games/pokerth/Makefile
+++ games/pokerth/Makefile
@@ -2,7 +2,7 @@ BROKEN-i386 =   protobuf/abseil problems
 
 COMMENT =      texas holdem poker client, local or internet games
 
-V =            2.0.6
+V =            2.0.7
 DIST_TUPLE =   github pokerth pokerth v${V} .
 PKGNAME =      pokerth-${V}
 
diff --git games/pokerth/distinfo games/pokerth/distinfo
index 09b64344f8b..dd8a7718252 100644
--- games/pokerth/distinfo
+++ games/pokerth/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pokerth-pokerth-v2.0.6.tar.gz) = 
BUJ3TU2/ZGN16Anqubgd9uzLDFKnXmlenwIQ13LnUWw=
-SIZE (pokerth-pokerth-v2.0.6.tar.gz) = 27518352
+SHA256 (pokerth-pokerth-v2.0.7.tar.gz) = 
ju2GsFNwNTxWUUcbyYhW76jw9harIMZbsoDXu3Mv0Lo=
+SIZE (pokerth-pokerth-v2.0.7.tar.gz) = 27530236
diff --git games/pokerth/patches/patch-src_gui_qt6-qml_CMakeLists_txt 
games/pokerth/patches/patch-src_gui_qt6-qml_CMakeLists_txt
index 5bec9a310de..4e5ce091ebc 100644
--- games/pokerth/patches/patch-src_gui_qt6-qml_CMakeLists_txt
+++ games/pokerth/patches/patch-src_gui_qt6-qml_CMakeLists_txt
@@ -1,7 +1,7 @@
 Index: src/gui/qt6-qml/CMakeLists.txt
 --- src/gui/qt6-qml/CMakeLists.txt.orig
 +++ src/gui/qt6-qml/CMakeLists.txt
-@@ -132,5 +132,4 @@ endif()
+@@ -147,5 +147,4 @@ endif()
  
  install(TARGETS pokerth_qml-client DESTINATION bin OPTIONAL)
  install(DIRECTORY ../../../data DESTINATION share/pokerth)
diff --git games/pokerth/patches/patch-src_net_serveraccepthelper_h 
games/pokerth/patches/patch-src_net_serveraccepthelper_h
new file mode 100644
index 00000000000..c32b983767a
--- /dev/null
+++ games/pokerth/patches/patch-src_net_serveraccepthelper_h
@@ -0,0 +1,21 @@
+TCP_KEEPALIVE not supported
+
+Index: src/net/serveraccepthelper.h
+--- src/net/serveraccepthelper.h.orig
++++ src/net/serveraccepthelper.h
+@@ -245,6 +245,7 @@ class ServerAcceptHelper : public ServerAcceptInterfac
+                     int keepidle  = 30;   // seconds until first keepalive 
probe
+                     int keepintvl = 10;   // seconds between subsequent probes
+                     int keepcnt   = 6;    // number of failed probes before 
disconnect
++#if !defined(__OpenBSD__)
+ #if defined(__APPLE__)
+                     setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &keepidle,  
sizeof(keepidle));
+ #else
+@@ -252,6 +253,7 @@ class ServerAcceptHelper : public ServerAcceptInterfac
+ #endif
+                     setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &keepintvl, 
sizeof(keepintvl));
+                     setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT,   &keepcnt,   
sizeof(keepcnt));
++#endif
+                     // TCP_USER_TIMEOUT: abort connection if data remains
+                     // unacknowledged for 90s (matches keepalive detection).
+                     // Without this, a dead client can keep the server

Reply via email to