Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bcc for openSUSE:Factory checked in 
at 2024-06-05 17:39:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bcc (Old)
 and      /work/SRC/openSUSE:Factory/.bcc.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bcc"

Wed Jun  5 17:39:26 2024 rev:62 rq:1178440 version:0.30.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/bcc/bcc.changes  2024-03-27 20:43:28.799138608 
+0100
+++ /work/SRC/openSUSE:Factory/.bcc.new.24587/bcc.changes       2024-06-05 
17:39:48.812455777 +0200
@@ -1,0 +2,11 @@
+Tue Jun  4 06:14:17 UTC 2024 - Shung-Hsi Yu <shung-hsi...@suse.com>
+
+- Add python3-pyelftools as requirement of bcc-tools (boo#1225497)
+
+-------------------------------------------------------------------
+Tue Jun  4 05:41:57 UTC 2024 - Shung-Hsi Yu <shung-hsi...@suse.com>
+
+- Remove bcc-devel's requirement on llvm-devel
+  * add build-remove-llvm-dev-dependency-from-libbcc.patch
+
+-------------------------------------------------------------------

New:
----
  build-remove-llvm-dev-dependency-from-libbcc.patch

BETA DEBUG BEGIN:
  New:- Remove bcc-devel's requirement on llvm-devel
  * add build-remove-llvm-dev-dependency-from-libbcc.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bcc.spec ++++++
--- /var/tmp/diff_new_pack.HC27GQ/_old  2024-06-05 17:39:50.572519848 +0200
+++ /var/tmp/diff_new_pack.HC27GQ/_new  2024-06-05 17:39:50.584520285 +0200
@@ -56,6 +56,8 @@
 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
+# PATCH-FIX-UPSTREAM build-remove-llvm-dev-dependency-from-libbcc.patch -- 
based on PR 5018
+Patch1:         build-remove-llvm-dev-dependency-from-libbcc.patch
 ExcludeArch:    ppc s390
 BuildRequires:  bison
 BuildRequires:  cmake >= 2.8.7
@@ -101,8 +103,6 @@
 Summary:        Header files for the BPF Compiler Collection
 Group:          Development/Languages/C and C++
 Requires:       libbcc0 = %{version}
-# See 
https://lists.opensuse.org/archives/list/fact...@lists.opensuse.org/message/LNX2YOF3PQCFUJHCXZ5422EWK7JAGYDY/
-Requires:       llvm%{_llvm_sonum}-devel
 
 %description devel
 Headers and pkg-config build descriptions for developing BCC programs.
@@ -142,6 +142,7 @@
 Group:          System/Monitoring
 Requires:       audit
 Requires:       python3-bcc = %{version}
+Requires:       python3-pyelftools
 
 %description tools
 Python tracing scripts from the BPF Compiler Collection.
@@ -155,7 +156,7 @@
 Documentation on how to write programs with the BPF Compiler Collection.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 # Prevent the cpp examples from compilation and installation

++++++ build-remove-llvm-dev-dependency-from-libbcc.patch ++++++
>From 5b8e284d06743e21be814913f187957e43122751 Mon Sep 17 00:00:00 2001
From: Manu Bretelle <chan...@gmail.com>
Date: Wed, 29 May 2024 14:38:22 -0700
Subject: [PATCH 1/2] build: remove llvm-dev dependency from libbcc

In #4737 I added depedency on llvm-config.h in order to discover what LLVM 
version
is being used. This was only meant to be used at build time.
By adding llvm-config.h in bpf_module.h, a public header of libbcc, I introduced
a dependency on llvm-dev to libbcc which is unnecessary.

This change removes the include from `bpf_module.h`, which should be enough, and
add it to `bpf_module.cc` instead.

Fixes #4997

Signed-off-by: Manu Bretelle <chan...@gmail.com>
---
 src/cc/bpf_module.cc | 1 +
 src/cc/bpf_module.h  | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cc/bpf_module.cc b/src/cc/bpf_module.cc
index 91ab9af6..c0dd0119 100644
--- a/src/cc/bpf_module.cc
+++ b/src/cc/bpf_module.cc
@@ -17,6 +17,7 @@
 
 #include <fcntl.h>
 #include <linux/bpf.h>
+#include <llvm/Config/llvm-config.h>
 #if LLVM_VERSION_MAJOR <= 16
 #include <llvm-c/Transforms/IPO.h>
 #endif
diff --git a/src/cc/bpf_module.h b/src/cc/bpf_module.h
index 56786e90..fc491cfe 100644
--- a/src/cc/bpf_module.h
+++ b/src/cc/bpf_module.h
@@ -22,8 +22,6 @@
 #include <string>
 #include <vector>
 
-#include <llvm/Config/llvm-config.h>
-
 #include "bcc_exception.h"
 #include "table_storage.h"
 
-- 
2.45.1

Reply via email to