From nobody Tue Apr 18 21:50:49 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1Hfd6lYDz45kS6; Tue, 18 Apr 2023 21:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1Hfd1lCcz467b; Tue, 18 Apr 2023 21:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681854649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gEEpxGZAwAPy8Nt74YICWI/vkZ99LV+cQ1SprglK/f4=; b=ppV16McFXVNEi9QNzxWCQlF7S/zQ6Gl26c6GeyTKWpsGWDU8nk6oBhyW+y5TKIiVZfbf5b gbEwWVLrVjER+xFlhD6c0HE4568vm49JpokFU6WSZ0uv/DL348D4wfPQeId9b0VmRPBab9 NeMcDGYDlwP3G4Nab09LV9j2Okk1fG9AOq6SrIBZNL/OZ9qpBuqxneEezP3WRQNo/dFL6z zyvgq9JYDNlrawzOpSrG+mYk+JMKIzjtWSEGfGV7JG4JnNB0KQa5ULGnlUs2ijhYCAHzeD w5S86OhyfgSbxWVX0uE9yVSpw9eopu8afgODmXghFDauovrYX4wpQWiboAlb/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681854649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gEEpxGZAwAPy8Nt74YICWI/vkZ99LV+cQ1SprglK/f4=; b=XG+qfsXrp7TU/onGUW+VhUqYgE+uA9p1kVcP8uLzOvZ5ERz2Hvpkmksmedbntw0k8TTDxF 14EJAKIzkWwwvl7vx6Btu26JFnlvU9HkeYffRh2/2IS1aifTgIVkg/gI76UOyFPAFKG/Pe xlRlV4NQHr5UxIiaLm5COlQ+UwUPjo2mMAUJXMUVb4ForFIQHfk7uJb+IDJOEu/6d15ohz NHvJR3fapJajZI1sOQRMJrNFpGHEpqXVXCkRUsLhLC4w81svPpfYRJWPgpnGWdJDcC/a+U jNaXf4X+cY9cjiqZiSvNUF+3x542j5MM9ECuz4nfcszLgeK+cjoZ7pK3VVoU0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681854649; a=rsa-sha256; cv=none; b=WxfDzdVTfFHm/8EY5tuu4cAoX4io8HEsIGO5fMfjWGfeItQqPDmspDJA4DITIalv4Z37ax LPeckaR6Kd+z532hunmXJCGEPwuh02Q4KfuFWt7E89M1Z3KMbJgwtWP/3zoQArqUZADN94 Xv+7cZo5rbbq1/FhKTfsyrpKRcI8sr22B7utEXQW7z4EY/gsv6Z8IVaWPxey8Qq8CY53RA cRExoBCTzmO6s+mDi/ZNzydGUaRzeUFechUw9ZtobfYr54pz4dAM28zLubNo2nu+NfXY+x BN+I0nREyT1Wo0DES6F3GFB5pwxKofrd5aYviG9B6hL+ti99kkTQ2dO/GPQnkQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q1Hfd0cQvzTHp; Tue, 18 Apr 2023 21:50:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33ILonFQ054726; Tue, 18 Apr 2023 21:50:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33ILon1G054725; Tue, 18 Apr 2023 21:50:49 GMT (envelope-from git) Date: Tue, 18 Apr 2023 21:50:49 GMT Message-Id: <202304182150.33ILon1G054725@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 6abba1c915b7 - main - devel/llvm14: Fix build with swig 4.1.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6abba1c915b7ec4f98916d8e3e1203611be39f7e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6abba1c915b7ec4f98916d8e3e1203611be39f7e commit 6abba1c915b7ec4f98916d8e3e1203611be39f7e Author: Po-Chuan Hsieh AuthorDate: 2023-04-18 21:39:19 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-04-18 21:39:19 +0000 devel/llvm14: Fix build with swig 4.1.1 PR: 270720 --- devel/llvm14/files/patch-swig | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/devel/llvm14/files/patch-swig b/devel/llvm14/files/patch-swig new file mode 100644 index 000000000000..310efab9a63e --- /dev/null +++ b/devel/llvm14/files/patch-swig @@ -0,0 +1,62 @@ +--- lldb/bindings/CMakeLists.txt.orig 2022-06-22 16:46:24 UTC ++++ lldb/bindings/CMakeLists.txt +@@ -26,8 +26,6 @@ set(SWIG_COMMON_FLAGS + -features autodoc + -I${LLDB_SOURCE_DIR}/include + -I${CMAKE_CURRENT_SOURCE_DIR} +- -D__STDC_LIMIT_MACROS +- -D__STDC_CONSTANT_MACROS + ${DARWIN_EXTRAS} + ) + +--- lldb/bindings/interface/SBValueList.i.orig 2022-06-22 16:46:24 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/interfaces.swig.orig 2022-06-22 16:46:24 UTC ++++ lldb/bindings/interfaces.swig +@@ -1,8 +1,5 @@ + /* Various liblldb typedefs that SWIG needs to know about. */ + #define __extension__ /* Undefine GCC keyword to make Swig happy when processing glibc's stdint.h. */ +-/* The ISO C99 standard specifies that in C++ implementations limit macros such +- as INT32_MAX should only be defined if __STDC_LIMIT_MACROS is. */ +-#define __STDC_LIMIT_MACROS + %include "stdint.i" + + %include "lldb/lldb-defines.h" +--- lldb/bindings/lua/lua-typemaps.swig.orig 2022-06-22 16:46:24 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; +--- lldb/bindings/python/python-typemaps.swig.orig 2022-06-22 16:46:24 UTC ++++ lldb/bindings/python/python-typemaps.swig +@@ -435,7 +435,7 @@ template <> bool SetNumberFromPyObject(double + + %typemap(out) lldb::FileSP { + $result = nullptr; +- lldb::FileSP &sp = $1; ++ const lldb::FileSP &sp = $1; + if (sp) { + PythonFile pyfile = unwrapOrSetPythonException(PythonFile::FromFile(*sp)); + if (!pyfile.IsValid())