From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19513158086 for ; Tue, 14 Dec 2021 08:22:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90F012BC006; Tue, 14 Dec 2021 08:22:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8FBA2BC006 for ; Tue, 14 Dec 2021 08:22:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45F5634365B for ; Tue, 14 Dec 2021 08:22:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 62489D0 for ; Tue, 14 Dec 2021 08:22:36 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639470146.4a53b08273b86eed76a989e647aecccfb485b2d4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/, dev-util/clazy/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/clazy/clazy-1.10-r2.ebuild dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch X-VCS-Directories: dev-util/clazy/ dev-util/clazy/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4a53b08273b86eed76a989e647aecccfb485b2d4 X-VCS-Branch: master Date: Tue, 14 Dec 2021 08:22:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 031f50f2-226f-40f0-b146-60fab803b8b7 X-Archives-Hash: f3a83406826aeb757474183990529056 commit: 4a53b08273b86eed76a989e647aecccfb485b2d4 Author: Sam James gentoo org> AuthorDate: Tue Dec 14 08:22:09 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Dec 14 08:22:26 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a53b082 dev-util/clazy: fix build with LLVM < 12 Upstream commit: 0ee1ed9ff1bd4cf2a49e1232696747f1898e2987 Closes: https://bugs.gentoo.org/829134 Signed-off-by: Sam James gentoo.org> dev-util/clazy/clazy-1.10-r2.ebuild | 1 + .../files/clazy-1.10-llvm-earlier-than-12.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/dev-util/clazy/clazy-1.10-r2.ebuild b/dev-util/clazy/clazy-1.10-r2.ebuild index f482a18606ed..bcb85e9d4148 100644 --- a/dev-util/clazy/clazy-1.10-r2.ebuild +++ b/dev-util/clazy/clazy-1.10-r2.ebuild @@ -24,6 +24,7 @@ BDEPEND="test? ( ${PYTHON_DEPS} )" PATCHES=( "${FILESDIR}"/${P}-gcc-build.patch "${FILESDIR}"/${P}-use-c++17.patch + "${FILESDIR}"/${P}-llvm-earlier-than-12.patch ) llvm_check_deps() { diff --git a/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch new file mode 100644 index 000000000000..714d196b5fd9 --- /dev/null +++ b/dev-util/clazy/files/clazy-1.10-llvm-earlier-than-12.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/829134 +https://invent.kde.org/sdk/clazy/-/commit/0ee1ed9ff1bd4cf2a49e1232696747f1898e2987.patch + +From: Allen Winter +Date: Sat, 11 Dec 2021 14:57:52 -0500 +Subject: [PATCH] src/SourceCompatibilityHelpers.h - fix compile with LLVM<12 + +fix the GET_LEXER macro for LLVM versions less than 12 +--- a/src/SourceCompatibilityHelpers.h ++++ b/src/SourceCompatibilityHelpers.h +@@ -123,7 +123,7 @@ clang::Lexer(id, inputFile.getValue(), sm, lo) + + #else + #define GET_LEXER(id, inputFile, sm, lo) \ +-clang::Lexer(id, inputFile.getValue(), sm, lo) ++clang::Lexer(id, inputFile, sm, lo) + #endif + + inline bool isFinal(const clang::CXXRecordDecl *record) +GitLab