Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bpftrace for openSUSE:Factory 
checked in at 2023-03-06 18:56:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bpftrace (Old)
 and      /work/SRC/openSUSE:Factory/.bpftrace.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bpftrace"

Mon Mar  6 18:56:19 2023 rev:20 rq:1069557 version:0.17.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/bpftrace/bpftrace.changes        2023-02-09 
16:23:29.198799405 +0100
+++ /work/SRC/openSUSE:Factory/.bpftrace.new.31432/bpftrace.changes     
2023-03-06 18:56:20.932908866 +0100
@@ -1,0 +2,6 @@
+Mon Mar  6 08:57:00 UTC 2023 - Shung-Hsi Yu <[email protected]>
+
+- Add Vendor-BPF_F_KPROBE_MULTI_RETURN-definition.patch to fix build on
+  Leap 15.5/SLES 15-SP5
+
+-------------------------------------------------------------------

New:
----
  Vendor-BPF_F_KPROBE_MULTI_RETURN-definition.patch

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

Other differences:
------------------
++++++ bpftrace.spec ++++++
--- /var/tmp/diff_new_pack.1weWfG/_old  2023-03-06 18:56:21.544911988 +0100
+++ /var/tmp/diff_new_pack.1weWfG/_new  2023-03-06 18:56:21.548912009 +0100
@@ -38,6 +38,7 @@
 Group:          Development/Tools/Debuggers
 URL:            https://github.com/iovisor/bpftrace
 Source:         
https://github.com/iovisor/bpftrace/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch1:         Vendor-BPF_F_KPROBE_MULTI_RETURN-definition.patch
 BuildRequires:  binutils
 BuildRequires:  binutils-devel
 BuildRequires:  bison

++++++ Vendor-BPF_F_KPROBE_MULTI_RETURN-definition.patch ++++++
>From df2ef0b5bdcd9c9ec2059c1b78305cd079ac7d83 Mon Sep 17 00:00:00 2001
From: Shung-Hsi Yu <[email protected]>
Date: Wed, 1 Mar 2023 16:57:01 +0800
Subject: [PATCH 1/1] Vendor BPF_F_KPROBE_MULTI_RETURN definition

This is done in similar fashion as commit d524a408a2 "Add bpf_map_type
and bpf_prog_type to vendored bpf.h" to decouple the build from the
system bpftrace being built on, so bpftrace built on older
kernels/libraries will still work correctly on newer kernels.
---
 src/libbpf/bpf.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libbpf/bpf.h b/src/libbpf/bpf.h
index 53c33369..bcdf27b3 100644
--- a/src/libbpf/bpf.h
+++ b/src/libbpf/bpf.h
@@ -8,6 +8,10 @@
 #define BPF_PSEUDO_MAP_VALUE 2
 #endif
 
+#ifndef BPF_F_KPROBE_MULTI_RETURN
+#define BPF_F_KPROBE_MULTI_RETURN       (1U << 0)
+#endif
+
 // clang-format off
 enum bpf_map_type {
        BPF_MAP_TYPE_UNSPEC,
-- 
2.39.2

Reply via email to