git: 47e7d26def93 - main - ports-mgmt/sccache-overlay: Increase the timeout for server start

From: Alexander Leidinger <netchild_at_FreeBSD.org>
Date: Fri, 07 Jun 2024 10:57:31 UTC
The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/ports/commit/?id=47e7d26def939bee65ef9b4ddb39fdda01fb19e9

commit 47e7d26def939bee65ef9b4ddb39fdda01fb19e9
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2024-06-07 10:53:48 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2024-06-07 10:57:25 +0000

    ports-mgmt/sccache-overlay: Increase the timeout for server start
    
    This does not fix all timeout failures on server start, but
    reduces the amount of failed start attempts during a poudriere run
    a lot.
    
    I consider this as a workaround, not a real fix.
    
    PR:             279496
    Approved by:    maintainer
---
 ports-mgmt/sccache-overlay/Makefile                    |  2 +-
 ports-mgmt/sccache-overlay/files/patch-src_commands.rs | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ports-mgmt/sccache-overlay/Makefile b/ports-mgmt/sccache-overlay/Makefile
index 20eb3f8f5686..513fa385bf1f 100644
--- a/ports-mgmt/sccache-overlay/Makefile
+++ b/ports-mgmt/sccache-overlay/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	sccache
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.2.15
-PORTREVISION=	27
+PORTREVISION=	28
 CATEGORIES=	ports-mgmt
 PKGNAMESUFFIX=	-overlay
 
diff --git a/ports-mgmt/sccache-overlay/files/patch-src_commands.rs b/ports-mgmt/sccache-overlay/files/patch-src_commands.rs
new file mode 100644
index 000000000000..ed7138a75385
--- /dev/null
+++ b/ports-mgmt/sccache-overlay/files/patch-src_commands.rs
@@ -0,0 +1,11 @@
+--- src/commands.rs.orig	2024-06-03 08:36:26 UTC
++++ src/commands.rs
+@@ -46,7 +46,7 @@ pub const DEFAULT_PORT: u16 = 4226;
+ pub const DEFAULT_PORT: u16 = 4226;
+ 
+ /// The number of milliseconds to wait for server startup.
+-const SERVER_STARTUP_TIMEOUT_MS: u32 = 10000;
++const SERVER_STARTUP_TIMEOUT_MS: u32 = 30000;
+ 
+ /// Get the port on which the server should listen.
+ fn get_port() -> u16 {