Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 18:10:26 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 329f00a6b827 - main - irc/znc: Allow build with swig 4.1.0+
Message-ID:  <202304181810.33IIAQfl089344@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 329f00a6b82705138466bdf3f4e541ffbce95165
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-18 17:59:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-18 18:05:14 +0000

    irc/znc: Allow build with swig 4.1.0+
    
    PR:             270720
    Obtained from:  https://github.com/znc/znc/commit/fecdd9895894b3afe903021b0843a422eb4d3308
---
 irc/znc/files/patch-swig | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/irc/znc/files/patch-swig b/irc/znc/files/patch-swig
new file mode 100644
index 000000000000..3a0d7f789a1b
--- /dev/null
+++ b/irc/znc/files/patch-swig
@@ -0,0 +1,33 @@
+Obtained from:	https://github.com/znc/znc/commit/fecdd9895894b3afe903021b0843a422eb4d3308
+
+--- CMakeLists.txt.orig	2023-04-11 14:26:05 UTC
++++ CMakeLists.txt
+@@ -173,7 +173,7 @@ if(WANT_PYTHON AND NOT EXISTS
+ 	endif()
+ endif()
+ if(search_swig)
+-	find_package(SWIG 3.0.0)
++	find_package(SWIG 4.0.1)
+ 	if(NOT SWIG_FOUND)
+ 		message(FATAL_ERROR
+ 			"Can't find SWIG, therefore Perl and Python aren't supported. "
+--- modules/modperl/CMakeLists.txt.orig	2020-09-07 22:57:50 UTC
++++ modules/modperl/CMakeLists.txt
+@@ -53,7 +53,6 @@ if(SWIG_FOUND)
+ 		"-I${PROJECT_SOURCE_DIR}/include"
+ 		"-I${CMAKE_CURRENT_SOURCE_DIR}/.."
+ 		"-I${CMAKE_CURRENT_SOURCE_DIR}/include"
+-		-DZNC_EXPORT_LIB_EXPORT
+ 		-outdir "${CMAKE_CURRENT_BINARY_DIR}"
+ 		-o "${CMAKE_CURRENT_BINARY_DIR}/modperl_biglib.cpp"
+ 		"${CMAKE_CURRENT_SOURCE_DIR}/modperl.i"
+--- modules/modpython/CMakeLists.txt.orig	2020-09-07 22:57:50 UTC
++++ modules/modpython/CMakeLists.txt
+@@ -50,7 +50,6 @@ if(SWIG_FOUND)
+ 		"-I${PROJECT_BINARY_DIR}/include"
+ 		"-I${PROJECT_SOURCE_DIR}/include"
+ 		"-I${CMAKE_CURRENT_SOURCE_DIR}/.."
+-		-DZNC_EXPORT_LIB_EXPORT
+ 		-outdir "${CMAKE_CURRENT_BINARY_DIR}"
+ 		-o "${CMAKE_CURRENT_BINARY_DIR}/modpython_biglib.cpp"
+ 		"${CMAKE_CURRENT_SOURCE_DIR}/modpython.i"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304181810.33IIAQfl089344>