git: 7fd8bd33ba65 - main - games/qwfwd: Update 1.2.20240216 => 1.2.20250221

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sat, 22 Feb 2025 13:59:02 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7fd8bd33ba65b76f3461c7a09e6f1d3cc7fc22dc

commit 7fd8bd33ba65b76f3461c7a09e6f1d3cc7fc22dc
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-02-22 13:50:20 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-02-22 13:50:20 +0000

    games/qwfwd: Update 1.2.20240216 => 1.2.20250221
    
    Also add patches:
     - fix stdout/stderr via pipe - disable buffering:
       https://github.com/QW-Group/qwfwd/pull/14
     - increase MAX_SERVERS to make sure that "find best route" feature
       will work properly:
       https://github.com/QW-Group/qwfwd/issues/12
---
 games/qwfwd/Makefile                |  4 ++--
 games/qwfwd/distinfo                |  6 +++---
 games/qwfwd/files/patch-src_main.c  | 15 +++++++++++++++
 games/qwfwd/files/patch-src_query.c | 11 +++++++++++
 4 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/games/qwfwd/Makefile b/games/qwfwd/Makefile
index d5ea311191c3..8ee95a5d44cd 100644
--- a/games/qwfwd/Makefile
+++ b/games/qwfwd/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	qwfwd
-DISTVERSION=	1.2.20240216
+DISTVERSION=	1.2.20250221
 CATEGORIES=	games
 
 MAINTAINER=	vvd@FreeBSD.org
@@ -13,7 +13,7 @@ USES=		cmake
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	QW-Group
-GH_TAGNAME=	f657ff7
+GH_TAGNAME=	648d7d3743c0
 USE_RC_SUBR=	${PORTNAME}
 
 EXTRACT_AFTER_ARGS=	--exclude .git* \
diff --git a/games/qwfwd/distinfo b/games/qwfwd/distinfo
index 4e0024a01541..d72d26e24004 100644
--- a/games/qwfwd/distinfo
+++ b/games/qwfwd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1739926256
-SHA256 (QW-Group-qwfwd-1.2.20240216-f657ff7_GH0.tar.gz) = 8052eb5b756574c580a49d30502cb31397324dd4bdce7979534ec34478055385
-SIZE (QW-Group-qwfwd-1.2.20240216-f657ff7_GH0.tar.gz) = 55473
+TIMESTAMP = 1740230567
+SHA256 (QW-Group-qwfwd-1.2.20250221-648d7d3743c0_GH0.tar.gz) = 725e66025ab3faa701548852ac2896159d0cc12956ba775995999f6b40602d75
+SIZE (QW-Group-qwfwd-1.2.20250221-648d7d3743c0_GH0.tar.gz) = 55528
diff --git a/games/qwfwd/files/patch-src_main.c b/games/qwfwd/files/patch-src_main.c
new file mode 100644
index 000000000000..ecac827ba391
--- /dev/null
+++ b/games/qwfwd/files/patch-src_main.c
@@ -0,0 +1,15 @@
+--- src/main.c.orig	2025-02-21 06:10:33 UTC
++++ src/main.c
+@@ -174,6 +174,12 @@ int main(int _argc, char *_argv[])
+ 
+ 	srand((unsigned) time (NULL));
+ 
++	// Disable buffering for stdout and stderr to avoid issues when output
++	// is redirected to a file or pipe instead of being displayed in a
++	// terminal.
++	setbuf(stdout, NULL);
++	setbuf(stderr, NULL);
++
+ 	// show help ffs
+ 	if (argc > 1 && (	   !stricmp("-h", argv[1])
+ 						|| !stricmp("-?", argv[1])
diff --git a/games/qwfwd/files/patch-src_query.c b/games/qwfwd/files/patch-src_query.c
new file mode 100644
index 000000000000..4bb43d7c17c3
--- /dev/null
+++ b/games/qwfwd/files/patch-src_query.c
@@ -0,0 +1,11 @@
+--- src/query.c.orig	2025-02-21 06:10:33 UTC
++++ src/query.c
+@@ -21,7 +21,7 @@
+ 
+ #define MAX_MASTERS 8 // size for masters fixed size array, I am lazy
+ 
+-#define MAX_SERVERS 512 // we will not add more than that servers to our list, just for some sanity
++#define MAX_SERVERS 4096 // we will not add more than that servers to our list, just for some sanity
+ 
+ #define MAX_SV_FILTERS 16 // how much servers we can filter with masters_filter_servers, can be increased widely.
+ #define QW_DEFAULT_SV_FILTER "127.0.0.1" // some masters provide unusable servers, filter them.