public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rr] epel10.3: Add patch to fix build with Linux 6.19+
@ 2026-11-10 21:34 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-11-10 21:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rr
Branch : epel10.3
Commit : 06d1899c3857a179b20f43b1e612413d239beed8
Author : Neal Gompa <ngompa@fedoraproject.org>
Date   : 2026-01-03T10:47:33-05:00
Stats  : +51/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rr/c/06d1899c3857a179b20f43b1e612413d239beed8?branch=epel10.3

Log:
Add patch to fix build with Linux 6.19+

---
diff --git a/rr-5.9.0-use-openat2-header.patch b/rr-5.9.0-use-openat2-header.patch
new file mode 100644
index 0000000..40c1145
--- /dev/null
+++ b/rr-5.9.0-use-openat2-header.patch
@@ -0,0 +1,48 @@
+From 4c7c66d4bad3c00e22dbcf45709c71feae8de655 Mon Sep 17 00:00:00 2001
+From: Neal Gompa <neal@gompa.dev>
+Date: Sat, 3 Jan 2026 10:37:33 -0500
+Subject: [PATCH] Revert "Don't rely on linux/openat2.h"
+
+This is now broken as of Linux 6.19.
+
+This reverts commit aa2ef05cfd68af9ae45f0d05ef07a267749727f3.
+---
+ src/test/openat2.c | 2 ++
+ src/test/util.h    | 8 --------
+ 2 files changed, 2 insertions(+), 8 deletions(-)
+
+diff --git a/src/test/openat2.c b/src/test/openat2.c
+index 22ed2b04..33b9d07a 100644
+--- a/src/test/openat2.c
++++ b/src/test/openat2.c
+@@ -2,6 +2,8 @@
+ 
+ #include "util.h"
+ 
++#include <linux/openat2.h>  /* Definition of RESOLVE_* constants */
++
+ #define TEST_DIR "test_dir"
+ #define FILENAME "foo"
+ #define REL_FILENAME "../" TEST_DIR "/" FILENAME
+diff --git a/src/test/util.h b/src/test/util.h
+index f7a751b7..2882aa5f 100644
+--- a/src/test/util.h
++++ b/src/test/util.h
+@@ -439,14 +439,6 @@ inline static SyscallWrapper get_spurious_desched_syscall(void) {
+ #define RR_KCMP_FILE 0
+ #define RR_KCMP_FILES 2
+ 
+-/* Old systems don't have linux/openat2.h */
+-struct open_how {
+-	__u64 flags;
+-	__u64 mode;
+-	__u64 resolve;
+-};
+-#define RESOLVE_BENEATH	0x08
+-
+ /* Old systems don't have these */
+ #ifndef TIOCGPKT
+ #define TIOCGPKT _IOR('T', 0x38, int)
+-- 
+2.52.0
+

diff --git a/rr.spec b/rr.spec
index d905d6f..0a33c71 100644
--- a/rr.spec
+++ b/rr.spec
@@ -32,6 +32,8 @@ Source: https://github.com/rr-debugger/rr/archive/%{gittag}/%{name}-%{version}.t
 
 Patch1: remove-termio.patch
 Patch2: update-cmake-ver.patch
+# https://github.com/rr-debugger/rr/issues/4037
+Patch3: rr-5.9.0-use-openat2-header.patch
 
 %if  0%{?rhel} == 7
 BuildRequires: cmake3
@@ -135,6 +137,7 @@ patchelf --set-rpath '%{_libdir}/rr/' %{buildroot}%{_libdir}/rr/testsuite/obj/bi
 
 %changelog
 * Sat Jan 03 2026 Neal Gompa <ngompa@fedoraproject.org> - 5.9.0-6
+- Add patch to fix build with Linux 6.19+
 - Rebuild for capnproto 1.3.0
 
 * Fri Nov 28 2025 Neal Gompa <ngompa@fedoraproject.org> - 5.9.0-5

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

only message in thread, other threads:[~2026-11-10 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 21:34 [rpms/rr] epel10.3: Add patch to fix build with Linux 6.19+ Neal Gompa

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