Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2026 12:00:15 +0000
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: 4d9999315148 - main - irc/znc: Fix build with swig 4.4.0+
Message-ID:  <6968d6cf.3a488.5d0b90d7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

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

commit 4d999931514860d14d4ddaccdd171f29eeb3cba5
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-01-15 11:45:02 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-01-15 11:54:01 +0000

    irc/znc: Fix build with swig 4.4.0+
    
    PR:             291779
    Approved by:    portmgr (blanket)
---
 irc/znc/files/patch-swig | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/irc/znc/files/patch-swig b/irc/znc/files/patch-swig
new file mode 100644
index 000000000000..06ac2607fd95
--- /dev/null
+++ b/irc/znc/files/patch-swig
@@ -0,0 +1,12 @@
+--- modules/modpython/codegen.pl.orig	2025-07-01 21:17:15 UTC
++++ modules/modpython/codegen.pl
+@@ -174,7 +174,8 @@ namespace {
+ #if PY_VERSION_HEX>=0x03000000
+ 						assert(0); /* Should never reach here in Python 3 */
+ #endif
+-						*cptr = SWIG_Python_str_AsChar(obj);
++						PyObject *bytes = NULL;
++						*cptr = (char *)SWIG_PyUnicode_AsUTF8AndSize(obj, NULL, &bytes);
+ 					}
+ 				}
+ 				if (psize) *psize = len + 1;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6968d6cf.3a488.5d0b90d7>