git: e84a58d2b6b1 - main - devel/bitkeeper: Fix LLVM15 build

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 28 Aug 2023 16:35:34 UTC
The branch main has been updated by cy:

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

commit e84a58d2b6b18c6f3bf8fc335a53788953cb325b
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-08-28 14:19:35 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-08-28 16:35:26 +0000

    devel/bitkeeper: Fix LLVM15 build
    
    Fix many of the following:
    
    CC tclStubInit.c
    /export/wrkdir/amd64/export/freebsd/git/ports/devel/bitkeeper/work/bk-7.3.3/src/gui/tcltk/tcl/generic/tclStubInit.c:693:5: error: incompatible function pointer types initializing 'int (*)(const mp_int *, const mp_int *)' (aka 'int (*)(const struct mp_int *, const struct mp_int *)') with an expression of type 'int (mp_int *, mp_int *)' (aka 'int (struct mp_int *, struct mp_int *)') [-Wincompatible-function-pointer-types]
        TclBN_mp_cmp, /* 8 */
---
 devel/bitkeeper/files/patch-src_gui_tcltk_Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/devel/bitkeeper/files/patch-src_gui_tcltk_Makefile b/devel/bitkeeper/files/patch-src_gui_tcltk_Makefile
new file mode 100644
index 000000000000..aee0c762bff0
--- /dev/null
+++ b/devel/bitkeeper/files/patch-src_gui_tcltk_Makefile
@@ -0,0 +1,10 @@
+--- gui/tcltk/Makefile.orig	2023-08-28 07:06:54.841207000 -0700
++++ gui/tcltk/Makefile	2023-08-28 07:10:54.236984000 -0700
+@@ -117,6 +117,7 @@
+ 	if [ -n "$$TCLVER" -a -f "$$TCLVER" -a -z "$$FORCE_REBUILD" ]; \
+ 	then	gunzip < "$$TCLVER" | tar -xf -; true; \
+ 	else	unset CC LD CCXTRA CFLAGS; \
++		export CFLAGS=-Wno-incompatible-function-pointer-types; \
+ 		MAKEFLAGS=`echo "$$MAKEFLAGS" | sed 's/ -- .*//'`; \
+ 		$(MAKE) Q=$(Q) populate ; \
+ 		$(MAKE) Q=$(Q) bin/tclsh$(EXE) || exit 1; \