public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dwarves] rawhide: Fix libbpf header for kernel 7.3 on aarch64
@ 2026-11-23 18:13 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-23 18:13 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/dwarves
            Branch : rawhide
            Commit : fa18e518aad461cde8ccb025d92ffc4d144c46f4
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-11-06T09:59:42-05:00
            Stats  : +41/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/dwarves/c/fa18e518aad461cde8ccb025d92ffc4d144c46f4?branch=rawhide

            Log:
            Fix libbpf header for kernel 7.3 on aarch64

Related: https://bugzilla.redhat.com/show_bug.cgi?id=2527141

---
diff --git a/0001-libbpf-include-add-128-bit-integer-types.patch b/0001-libbpf-include-add-128-bit-integer-types.patch
new file mode 100644
index 0000000..ffa7060
--- /dev/null
+++ b/0001-libbpf-include-add-128-bit-integer-types.patch
@@ -0,0 +1,35 @@
+From f90a9c487d7542d91fa584b83b6a624a4fbeb341 Mon Sep 17 00:00:00 2001
+From: Daniel Golle <daniel@makrotopia.org>
+Date: Mon, 7 Sep 2026 16:54:26 +0100
+Subject: [PATCH] include: add 128-bit integer types to linux/types.h
+
+Linux 7.3 declares the fpsimd registers in the arm64 sigcontext as
+__u128 instead of __uint128_t, see kernel commit d4bf9e08d412 ("arm64:
+uapi: Use __u128 instead of __uint128_t in UAPI headers"). The private
+linux/types.h in include/ shadows the kernel's linux/types.h while
+building libbpf, so with glibc, whose signal.h pulls in
+asm/sigcontext.h, the build fails with an unknown type name __u128.
+Add the __s128 and __u128 typedefs as the kernel's uapi and tools
+headers define them.
+
+Signed-off-by: Daniel Golle <daniel@makrotopia.org>
+---
+ include/linux/types.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/lib/bpf/include/linux/types.h b/lib/bpf/include/linux/types.h
+index cfb558ac3..3560e9539 100644
+--- a/lib/bpf/include/linux/types.h
++++ b/lib/bpf/include/linux/types.h
+@@ -12,6 +12,11 @@
+ #include <asm/types.h>
+ #include <asm/posix_types.h>
+ 
++#ifdef __SIZEOF_INT128__
++typedef __signed__ __int128 __s128 __attribute__((aligned(16)));
++typedef unsigned __int128 __u128 __attribute__((aligned(16)));
++#endif
++
+ #define __bitwise__
+ #define __bitwise __bitwise__
+ 

diff --git a/dwarves.spec b/dwarves.spec
index 51fd8b2..44db32d 100644
--- a/dwarves.spec
+++ b/dwarves.spec
@@ -3,12 +3,13 @@
 
 Name: dwarves
 Version: 1.32
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL-2.0-only
 Summary: Debugging Information Manipulation Tools (pahole & friends)
 URL: http://acmel.wordpress.com
 Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.xz
 Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.sign
+Patch:  0001-libbpf-include-add-128-bit-integer-types.patch
 Requires: %{libname}%{libver} = %{version}-%{release}
 BuildRequires: gcc
 BuildRequires: cmake >= 2.8.12
@@ -65,7 +66,7 @@ Requires: %{libname}%{libver} = %{version}-%{release}
 Debugging information processing library development files.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 %cmake -DCMAKE_BUILD_TYPE=Release .
@@ -133,6 +134,9 @@ rm -Rf %{buildroot}
 %{_libdir}/%{libname}_reorganize.so
 
 %changelog
+* Fri Nov 06 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 1.32-2
+- Fix libbpf header for kernel 7.3 on aarch64
+
 * Sat Sep 12 2026 Arnaldo Carvalho de Melo <acme@redhat.com> - 1.32-1
 - Regression tests: from 6 in v1.31 to 74
 - New coverage work, 16 csets

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 18:13 [rpms/dwarves] rawhide: Fix libbpf header for kernel 7.3 on aarch64 Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox