Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2026-04-28 11:59:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.11940 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bcc" Tue Apr 28 11:59:44 2026 rev:77 rq:1349714 version:0.36.1 Changes: -------- --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2026-03-29 20:00:52.205871570 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.11940/bcc.changes 2026-04-28 12:03:32.255362270 +0200 @@ -1,0 +2,6 @@ +Tue Apr 28 06:46:10 UTC 2026 - Hoyeon Lee <[email protected]> + +- fix build for LLVM 22 due to createDiagnostics() signature change + * Add 0001-Fix-build-with-LLVM-22.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-build-with-LLVM-22.patch ----------(New B)---------- New:- fix build for LLVM 22 due to createDiagnostics() signature change * Add 0001-Fix-build-with-LLVM-22.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bcc.spec ++++++ --- /var/tmp/diff_new_pack.bgbwVa/_old 2026-04-28 12:03:32.891388618 +0200 +++ /var/tmp/diff_new_pack.bgbwVa/_new 2026-04-28 12:03:32.891388618 +0200 @@ -40,6 +40,7 @@ Group: Development/Tools/Other URL: https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: 0001-Fix-build-with-LLVM-22.patch Source100: bcc-rpmlintrc ExcludeArch: ppc s390 BuildRequires: bison ++++++ 0001-Fix-build-with-LLVM-22.patch ++++++ >From 4c7be1ec6ab74e973f8d18a9011fa349c3d9dd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <[email protected]> Date: Mon, 2 Mar 2026 10:03:15 +0100 Subject: [PATCH] Fix build with LLVM-22 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LLVM-22 changed the signatures of various createDiagnostics() calls [1]. Introduce a new version macro guard and adapt the code to the changed API. Fixes #5483 [1] https://github.com/llvm/llvm-project/commit/30633f30894129919050f24fdd1f8f6bc46beae0 Signed-off-by: Holger Hoffstätte <[email protected]> --- src/cc/frontends/clang/loader.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/cc/frontends/clang/loader.cc b/src/cc/frontends/clang/loader.cc index 6f8387aaf017..1f706344724d 100644 --- a/src/cc/frontends/clang/loader.cc +++ b/src/cc/frontends/clang/loader.cc @@ -464,7 +464,10 @@ int ClangLoader::do_compile( } invocation0.getFrontendOpts().DisableFree = false; -#if LLVM_VERSION_MAJOR >= 20 +#if LLVM_VERSION_MAJOR >= 22 + compiler0.setVirtualFileSystem(llvm::vfs::getRealFileSystem()); + compiler0.createDiagnostics(new IgnoringDiagConsumer()); +#elif LLVM_VERSION_MAJOR >= 20 compiler0.createDiagnostics(*llvm::vfs::getRealFileSystem(), new IgnoringDiagConsumer()); #else compiler0.createDiagnostics(new IgnoringDiagConsumer()); @@ -487,7 +490,10 @@ int ClangLoader::do_compile( add_main_input(invocation1, main_path, &*out_buf); invocation1.getFrontendOpts().DisableFree = false; -#if LLVM_VERSION_MAJOR >= 20 +#if LLVM_VERSION_MAJOR >= 22 + compiler1.setVirtualFileSystem(llvm::vfs::getRealFileSystem()); + compiler1.createDiagnostics(); +#elif LLVM_VERSION_MAJOR >= 20 compiler1.createDiagnostics(*llvm::vfs::getRealFileSystem()); #else compiler1.createDiagnostics(); @@ -517,7 +523,10 @@ int ClangLoader::do_compile( invocation2.getCodeGenOpts().setInlining(CodeGenOptions::NormalInlining); // suppress warnings in the 2nd pass, but bail out on errors (our fault) invocation2.getDiagnosticOpts().IgnoreWarnings = true; -#if LLVM_VERSION_MAJOR >= 20 +#if LLVM_VERSION_MAJOR >= 22 + compiler2.setVirtualFileSystem(llvm::vfs::getRealFileSystem()); + compiler2.createDiagnostics(); +#elif LLVM_VERSION_MAJOR >= 20 compiler2.createDiagnostics(*llvm::vfs::getRealFileSystem()); #else compiler2.createDiagnostics(); -- 2.52.0
