Date: Tue, 18 Apr 2023 21:50:50 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: cec65646334e - main - devel/llvm15: Fix build with swig 4.1.1 Message-ID: <202304182150.33ILooJI054744@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=cec65646334ecd4856de745dd0ddd1a4b5a874bf commit cec65646334ecd4856de745dd0ddd1a4b5a874bf Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-04-18 21:39:20 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-04-18 21:39:20 +0000 devel/llvm15: Fix build with swig 4.1.1 PR: 270720 --- devel/llvm15/files/patch-swig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/devel/llvm15/files/patch-swig b/devel/llvm15/files/patch-swig new file mode 100644 index 000000000000..9e36f27b1f7a --- /dev/null +++ b/devel/llvm15/files/patch-swig @@ -0,0 +1,29 @@ +--- lldb/bindings/interface/SBValueList.i.orig 2022-11-29 10:05:58 UTC ++++ lldb/bindings/interface/SBValueList.i +@@ -103,7 +103,6 @@ class SBValueList (public) + GetFirstValueByName (const char* name) const; + + %extend { +- %nothreadallow; + std::string lldb::SBValueList::__str__ (){ + lldb::SBStream description; + const size_t n = $self->GetSize(); +@@ -122,7 +121,6 @@ class SBValueList (public) + --desc_len; + return std::string(desc, desc_len); + } +- %clearnothreadallow; + } + + #ifdef SWIGPYTHON +--- lldb/bindings/lua/lua-typemaps.swig.orig 2022-11-29 10:05:58 UTC ++++ lldb/bindings/lua/lua-typemaps.swig +@@ -247,7 +247,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE); + // Typemap for file handles (e.g. used in SBDebugger::GetOutputFileHandle) + + %typemap(out) lldb::FileSP { +- lldb::FileSP &sp = $1; ++ const lldb::FileSP &sp = $1; + if (sp && sp->IsValid()) { + luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream)); + p->closef = &LLDBSwigLuaCloseFileHandle;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304182150.33ILooJI054744>