From c42eae3a42219bc3b3816eafcd78cdb826180203 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Tue, 1 Sep 2026 16:08:27 +0000 Subject: [PATCH] Fix Tcl 9 build with stubs enabled Allow Tcl 9 in Tcl_InitStubs(). See https://www.tcl-lang.org/man/tcl8.6/TclLib/InitStubs.htm#M4 Without this patch, we get this error: % package require Pgtcl version conflict for package "tcl": have 9.0.3, need 8.1 while evaluating package require Pgtcl --- generic/pgtcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/pgtcl.c b/generic/pgtcl.c index 6f10ba5..98a724d 100644 --- a/generic/pgtcl.c +++ b/generic/pgtcl.c @@ -98,7 +98,7 @@ Pgtcl_Init(Tcl_Interp *interp) #endif #ifdef USE_TCL_STUBS - if (Tcl_InitStubs(interp, "8.1", 0) == NULL) + if (Tcl_InitStubs(interp, "8.1-", 0) == NULL) return TCL_ERROR; #endif