public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bcc] rawhide: Rebuilt for LLVM 23
Date: Fri, 09 Oct 2026 08:28:42 GMT	[thread overview]
Message-ID: <179153452210.1.11562936660292558223.rpms-bcc-8f80a14b0be4@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bcc
Branch : rawhide
Commit : 8f80a14b0be4772a4c78dde83da9ee706cc5cedf
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date   : 2026-10-06T15:46:49-04:00
Stats  : +38/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bcc/c/8f80a14b0be4772a4c78dde83da9ee706cc5cedf?branch=rawhide

Log:
Rebuilt for LLVM 23

---
diff --git a/Fix-build-with-LLVM-23.patch b/Fix-build-with-LLVM-23.patch
new file mode 100644
index 0000000..40e1583
--- /dev/null
+++ b/Fix-build-with-LLVM-23.patch
@@ -0,0 +1,33 @@
+From dad0db93fd0f443b2a4f43bc2f23c621c9202516 Mon Sep 17 00:00:00 2001
+From: Viktor Malik <viktor.malik@gmail.com>
+Date: Thu, 13 Aug 2026 08:22:00 +0200
+Subject: [PATCH] src/cc: Fix MCContext constructor for LLVM 23
+
+Two LLVM 23 patches [1,2] changed the MCContext constructor to take
+MCAsmInfo, MCRegisterInfo, and MCSubtargetInfo by a reference rather
+than by a pointer. Reflect the change in call of the constructor.
+
+[1] https://github.com/llvm/llvm-project/commit/13e98d834101efd1794cdd026377c508293ee21b
+[2] https://github.com/llvm/llvm-project/commit/d50631faad3003e73589528c83d3bbbad7ba72f1
+
+Signed-off-by: Viktor Malik <viktor.malik@gmail.com>
+---
+ src/cc/bcc_debug.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/cc/bcc_debug.cc b/src/cc/bcc_debug.cc
+index 2e53c44d4778..0812c4abc788 100644
+--- a/src/cc/bcc_debug.cc
++++ b/src/cc/bcc_debug.cc
+@@ -148,7 +148,11 @@ void SourceDebugger::dump() {
+       T->createMCSubtargetInfo(TripleArg, "", ""));
+   MCObjectFileInfo MOFI;
+ #if LLVM_VERSION_MAJOR >= 13
++#if LLVM_VERSION_MAJOR >= 23
++  MCContext Ctx(TheTriple, *MAI, *MRI, *STI, nullptr);
++#else
+   MCContext Ctx(TheTriple, MAI.get(), MRI.get(), STI.get(), nullptr);
++#endif
+   Ctx.setObjectFileInfo(&MOFI);
+   MOFI.initMCObjectFileInfo(Ctx, false, false);
+ #else

diff --git a/bcc.spec b/bcc.spec
index 0111db1..7dfaf07 100644
--- a/bcc.spec
+++ b/bcc.spec
@@ -19,12 +19,13 @@
 
 Name:           bcc
 Version:        0.36.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        BPF Compiler Collection (BCC)
 License:        Apache-2.0
 URL:            https://github.com/iovisor/bcc
 Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
 Patch0:         Fix-build-with-LLVM-22.patch
+Patch1:         Fix-build-with-LLVM-23.patch
 
 # Arches will be included as upstream support is added and dependencies are
 # satisfied in the respective arches
@@ -225,6 +226,9 @@ cp -a libbpf-tools/tmp-install/bin/* %{buildroot}/%{_sbindir}/
 %{_sbindir}/bpf-*
 
 %changelog
+* Tue Oct 06 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 0.36.1-4
+- Rebuilt for LLVM 23
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-10-09  8:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179153452210.1.11562936660292558223.rpms-bcc-8f80a14b0be4@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox