git: 6e104067a13c - main - cad/openroad: Fix build with swig 4.2.1 and tcl 8.6

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 03 Jun 2024 02:49:40 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e104067a13ca38062dff28520d05f394a1844c2

commit 6e104067a13ca38062dff28520d05f394a1844c2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-06-03 02:40:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-06-03 02:40:49 +0000

    cad/openroad: Fix build with swig 4.2.1 and tcl 8.6
    
    /wrkdirs/usr/ports/cad/openroad/work/.build/src/gui/tclSwig.h:1623:11: error: unknown type name 'Tcl_Size'; did you mean 'Tcl_Time'?
    
    Reference:      https://github.com/swig/swig/commit/b91ffa5631eb049293d3478744606148c9726521
---
 cad/openroad/files/patch-swig-tcl86 | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/cad/openroad/files/patch-swig-tcl86 b/cad/openroad/files/patch-swig-tcl86
new file mode 100644
index 000000000000..f79e3b15e5a5
--- /dev/null
+++ b/cad/openroad/files/patch-swig-tcl86
@@ -0,0 +1,18 @@
+Reference:	https://github.com/swig/swig/issues/2887
+		https://github.com/swig/swig/commit/b91ffa5631eb049293d3478744606148c9726521
+
+--- src/gui/src/tclCmdInputWidget.h.orig	2023-12-27 07:04:34 UTC
++++ src/gui/src/tclCmdInputWidget.h
+@@ -47,6 +47,12 @@
+ 
+ #include "cmdInputWidget.h"
+ #include "tclCmdHighlighter.h"
++
++#include <tcl.h>
++#ifndef TCL_SIZE_MAX
++typedef int Tcl_Size;
++#endif
++
+ #include "tclSwig.h"  // generated header
+ 
+ namespace gui {