public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rr] f44: Rebase to rr-5.10.0
@ 2026-11-09 21:31 Aaron Merey
  0 siblings, 0 replies; only message in thread
From: Aaron Merey @ 2026-11-09 21:31 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rr
            Branch : f44
            Commit : d194f0a986346fb717e2960bec69551dd37de883
            Author : Aaron Merey <amerey@redhat.com>
            Date   : 2026-11-07T15:12:42-05:00
            Stats  : +11/-384 in 8 file(s)
            URL    : https://src.fedoraproject.org/rpms/rr/c/d194f0a986346fb717e2960bec69551dd37de883?branch=f44

            Log:
            Rebase to rr-5.10.0

Drop patches now included upstream. Add jq to rr-testsuite Requires.

Assisted-by: Claude Fable 5.1 <noreply@anthropic.com>

---
diff --git a/.gitignore b/.gitignore
index 458911c..a9d444e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
 /rr-5.7.0.tar.gz
 /rr-5.8.0.tar.gz
 /rr-5.9.0.tar.gz
+/rr-5.10.0.tar.gz

diff --git a/remove-termio.patch b/remove-termio.patch
deleted file mode 100644
index 988c200..0000000
--- a/remove-termio.patch
+++ /dev/null
@@ -1,189 +0,0 @@
-From 77d1ba4d96bb00378a73452988291a2c8de83a2d Mon Sep 17 00:00:00 2001
-From: Kyle Huey <khuey@kylehuey.com>
-Date: Thu, 27 Mar 2025 13:41:51 -0700
-Subject: [PATCH] 4 squashed commits removing use of deprecated termio.h
-
-commit 0a53fb90868c58d7479ac061117d74e81d3ac377
-Author: Robert O'Callahan <robert@ocallahan.org>
-Date:   Sat Aug 2 10:16:42 2025 +1200
-
-    Provide our own definition of `struct termio` for testing.
-
-    Resolves #3998
-
-commit 76d010c29c402d9600af04b096dcda0f2e3df5a6
-Author: Robert O'Callahan <robert@ocallahan.org>
-Date:   Tue Jul 29 23:05:21 2025 +1200
-
-    Stop checking struct sizes against glibc `termio` since that has been removed.
-
-    Resolves #3995.
-
-commit 63a63e804990b4c19ea42c98b447d72584292422
-Author: Kyle Huey <khuey@kylehuey.com>
-Date:   Thu Mar 27 13:53:50 2025 -0700
-
-    Fix build on Android where bionic does have termios2.
-
-commit 69ed35d11b2d7fae349d76e81753266c3c359c6d
-Author: Kyle Huey <khuey@kylehuey.com>
-Date:   Thu Mar 27 13:41:51 2025 -0700
-
-    Support TCGETS2 and TCSETS2.
-
-    Fixes #2430
----
- CMakeLists.txt        |  9 +++++++++
- src/kernel_abi.h      |  1 -
- src/record_syscall.cc | 21 ++++++++++++++++++++
- src/test/ioctl_tty.c  | 45 ++++++++++++++++++++++++++++++++++++++++++-
- 4 files changed, 74 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 8e3f055d..6e24c526 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -396,6 +396,15 @@ else()
-   message(AUTHOR_WARNING "backtrace(3) not present in execinfo.h. Automatic backtraces for failures in rr are disabled.")
- endif()
- 
-+include(CheckTypeSize)
-+set(SAVE_CMAKE_EXTRA_INCLUDE_FILES "${CMAKE_EXTRA_INCLUDE_FILES}")
-+list(APPEND CMAKE_EXTRA_INCLUDE_FILES "termios.h")
-+check_type_size("struct termios2" SIZEOF_TERMIOS2)
-+if(HAVE_SIZEOF_TERMIOS2)
-+  add_definitions(-DHAVE_TERMIOS2)
-+endif()
-+set(CMAKE_EXTRA_INCLUDE_FILES "${SAVE_CMAKE_EXTRA_INCLUDE_FILES}")
-+
- # Test only symbols
- check_symbol_exists(pthread_mutexattr_setrobust "pthread.h" HAVE_ROBUST_MUTEX)
- 
-diff --git a/src/kernel_abi.h b/src/kernel_abi.h
-index 41deda4a..eb59fcac 100644
---- a/src/kernel_abi.h
-+++ b/src/kernel_abi.h
-@@ -748,7 +748,6 @@ struct BaseArch : public wordsize,
-     unsigned char c_line;
-     unsigned char c_cc[8];
-   };
--  RR_VERIFY_TYPE(termio);
- 
-   struct seccomp_notif_sizes {
-     uint16_t seccomp_notif;
-diff --git a/src/record_syscall.cc b/src/record_syscall.cc
-index de4cf222..8eefa411 100644
---- a/src/record_syscall.cc
-+++ b/src/record_syscall.cc
-@@ -103,6 +103,25 @@
- 
- using namespace std;
- 
-+#ifndef HAVE_TERMIOS2
-+// The kernel header that defines this conflicts badly with glibc headers
-+// (but not bionic, which does define this) so we define it ourselves.
-+// NB: We need this struct defined so that the preprocessor macro for
-+// TCGETS2 will evaluate. But we use IOCTL_MASK_SIZE on it and we use
-+// the size from the tracee to determine how many bytes to record, so
-+// we don't actually depend on this being *accurate*.
-+struct termios2 {
-+  tcflag_t c_iflag;
-+  tcflag_t c_oflag;
-+  tcflag_t c_cflag;
-+  tcflag_t c_lflag;
-+  cc_t c_line;
-+  cc_t c_cc[19];
-+  speed_t c_ispeed;
-+  speed_t c_ospeed;
-+};
-+#endif
-+
- namespace rr {
- 
- union _semun {
-@@ -1943,6 +1962,7 @@ static Switchable prepare_ioctl(RecordTask* t,
-       case IOCTL_MASK_SIZE(TUNSETIFINDEX):
-       case IOCTL_MASK_SIZE(TUNSETVNETLE):
-       case IOCTL_MASK_SIZE(TUNSETVNETBE):
-+      case IOCTL_MASK_SIZE(TCSETS2):
-         return PREVENT_SWITCH;
-       case IOCTL_MASK_SIZE(USBDEVFS_GETDRIVER):
-         // Reads and writes its parameter despite not having the _IOC_READ bit.
-@@ -2078,6 +2098,7 @@ static Switchable prepare_ioctl(RecordTask* t,
-     case IOCTL_MASK_SIZE(OTPGETREGIONINFO):
-     case IOCTL_MASK_SIZE(ECCGETLAYOUT):
-     case IOCTL_MASK_SIZE(ECCGETSTATS):
-+    case IOCTL_MASK_SIZE(TCGETS2):
-       syscall_state.reg_parameter(3, size);
-       return PREVENT_SWITCH;
- 
-diff --git a/src/test/ioctl_tty.c b/src/test/ioctl_tty.c
-index 98ee07d8..ade21bfa 100644
---- a/src/test/ioctl_tty.c
-+++ b/src/test/ioctl_tty.c
-@@ -2,11 +2,41 @@
- 
- #include "util.h"
- 
-+#ifndef HAVE_TERMIOS2
-+/* We have to define termios2 ourselves with glibc. See
-+ * https://github.com/npat-efault/picocom/blob/1acf1ddabaf3576b4023c4f6f09c5a3e4b086fb8/termios2.txt
-+ * for the long explanation.
-+ */
-+struct termios2 {
-+  tcflag_t c_iflag;
-+  tcflag_t c_oflag;
-+  tcflag_t c_cflag;
-+  tcflag_t c_lflag;
-+  cc_t c_line;
-+  cc_t c_cc[19];
-+  speed_t c_ispeed;
-+  speed_t c_ospeed;
-+};
-+#endif
-+
-+/* glibc 2.42 removed termio:
-+   https://sourceware.org/git/?p=glibc.git;a=commit;h=e04afb71771710cdc6025fe95908f5f17de7b72d
-+*/
-+struct rr_termio {
-+  unsigned short c_iflag;
-+  unsigned short c_oflag;
-+  unsigned short c_cflag;
-+  unsigned short c_lflag;
-+  unsigned char c_line;
-+  unsigned char c_cc[8];
-+};
-+
- int main(void) {
-   int fd;
-   int ret;
-   struct termios* tc;
--  struct termio* tio;
-+  struct termios2* tc2;
-+  struct rr_termio* tio;
-   pid_t* pgrp;
-   int* navail;
-   int* outq;
-@@ -94,6 +124,19 @@ int main(void) {
-   VERIFY_GUARD(nread);
-   atomic_printf("FIONREAD returned nread=%d\n", *nread);
- 
-+  ALLOCATE_GUARD(tc2, 'i');
-+  test_assert(0 == ioctl(fd, TCGETS2, tc));
-+  VERIFY_GUARD(tc2);
-+  atomic_printf("TCGETS2 returned { iflag=0x%x, oflag=0x%x, cflag=0x%x, "
-+                "lflag=0x%x, ispeed=%d, ospeed=%d }\n",
-+                tc2->c_iflag, tc2->c_oflag, tc2->c_cflag, tc2->c_lflag,
-+                tc2->c_ispeed, tc2->c_ospeed);
-+  test_assert(0 == ioctl(fd, TCSETS2, tc2));
-+
-+  // NB: leaving the TCSETS2 as the last word seems to mess up the terminal,
-+  // so fix it.
-+  test_assert(0 == ioctl(fd, TCSETS, tc));
-+
-   atomic_puts("EXIT-SUCCESS");
-   return 0;
- }
--- 
-2.50.1
-

diff --git a/rr-5.9.0-emulate-madv-guard.patch b/rr-5.9.0-emulate-madv-guard.patch
deleted file mode 100644
index 75f19e4..0000000
--- a/rr-5.9.0-emulate-madv-guard.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From 34ff3a700a0b972ab5b16727fa3015dc4ed0a4c4 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= <emilio@crisal.io>
-Date: Fri, 1 Aug 2025 14:22:21 +0200
-Subject: [PATCH] Emulate -EINVAL for MADV_GUARD_{INSTALL,REMOVE}.
-
-Fixes #3997
----
- src/kernel_supplement.h | 6 ++++++
- src/record_syscall.cc   | 4 ++++
- src/test/madvise_misc.c | 2 ++
- src/test/util.h         | 6 ++++++
- 4 files changed, 18 insertions(+)
-
-diff --git a/src/kernel_supplement.h b/src/kernel_supplement.h
-index 490b433a..9fb2b069 100644
---- a/src/kernel_supplement.h
-+++ b/src/kernel_supplement.h
-@@ -281,6 +281,12 @@ struct rr_input_mask {
- #ifndef MADV_COLLAPSE
- #define MADV_COLLAPSE 25
- #endif
-+#ifndef MADV_GUARD_INSTALL
-+#define MADV_GUARD_INSTALL 102
-+#endif
-+#ifndef MADV_GUARD_REMOVE
-+#define MADV_GUARD_REMOVE 103
-+#endif
- 
- #ifndef BUS_MCEERR_AR
- #define BUS_MCEERR_AR 4
-diff --git a/src/record_syscall.cc b/src/record_syscall.cc
-index bee9f550..363f94f3 100644
---- a/src/record_syscall.cc
-+++ b/src/record_syscall.cc
-@@ -5245,6 +5245,10 @@ static Switchable rec_prepare_syscall_arch(RecordTask* t,
-           t->set_regs(r);
-           break;
-         }
-+        case MADV_GUARD_INSTALL:
-+        case MADV_GUARD_REMOVE:
-+          syscall_state.emulate_result(-EINVAL);
-+          break;
-         default:
-           syscall_state.expect_errno = EINVAL;
-           break;
-diff --git a/src/test/madvise_misc.c b/src/test/madvise_misc.c
-index bda2ea06..a6b0fe57 100644
---- a/src/test/madvise_misc.c
-+++ b/src/test/madvise_misc.c
-@@ -29,6 +29,8 @@ int main(void) {
-   DO_MADVISE(MADV_POPULATE_READ);
-   DO_MADVISE(MADV_POPULATE_WRITE);
-   DO_MADVISE(MADV_COLLAPSE);
-+  DO_MADVISE(MADV_GUARD_INSTALL);
-+  DO_MADVISE(MADV_GUARD_REMOVE);
- 
-   atomic_puts("EXIT-SUCCESS");
- 
-diff --git a/src/test/util.h b/src/test/util.h
-index e4c4aa52..f7a751b7 100644
---- a/src/test/util.h
-+++ b/src/test/util.h
-@@ -497,6 +497,12 @@ struct open_how {
- #ifndef MADV_COLLAPSE
- #define MADV_COLLAPSE 25
- #endif
-+#ifndef MADV_GUARD_INSTALL
-+#define MADV_GUARD_INSTALL 102
-+#endif
-+#ifndef MADV_GUARD_REMOVE
-+#define MADV_GUARD_REMOVE 103
-+#endif
- 
- #ifndef F_OFD_GETLK
- #define F_OFD_GETLK 36
--- 
-2.53.0
-

diff --git a/rr-5.9.0-include-limits-h.patch b/rr-5.9.0-include-limits-h.patch
deleted file mode 100644
index a8818c6..0000000
--- a/rr-5.9.0-include-limits-h.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 1a3ad641b80a905f1e8eb93272b028b716e26d2e Mon Sep 17 00:00:00 2001
-From: Aaron Merey <amerey@redhat.com>
-Date: Wed, 29 Apr 2026 14:57:05 -0400
-Subject: [PATCH] test: include <limits.h> in util.h for INT_MAX and friends
-
-Several test files (futex_requeue.c, pidfd.c, sioc.c, readlink.c,
-detach_state.c, blacklist.c, etc.) reference INT_MAX without
-including <limits.h>. Older toolchains pulled it in transitively;
-gcc 16 / glibc 2.43+ don't, breaking the build.
-
-Add the include to util.h, which every test already includes, so
-all current and future users are covered in one place.
----
- src/test/util.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/test/util.h b/src/test/util.h
-index 7d5172de..eb60103b 100644
---- a/src/test/util.h
-+++ b/src/test/util.h
-@@ -26,6 +26,7 @@
- #include <fcntl.h>
- #include <grp.h>
- #include <inttypes.h>
-+#include <limits.h>
- #include <linux/aio_abi.h>
- #include <linux/audit.h>
- #include <linux/capability.h>
--- 
-2.53.0
-

diff --git a/rr-5.9.0-use-openat2-header.patch b/rr-5.9.0-use-openat2-header.patch
deleted file mode 100644
index 40c1145..0000000
--- a/rr-5.9.0-use-openat2-header.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-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 52d006c..dc4a5e0 100644
--- a/rr.spec
+++ b/rr.spec
@@ -2,9 +2,9 @@
 %undefine __cmake_in_source_build
 
 %global commit da33770d22b404d7333e46e26495eaca0c5a6d8a
-%global gittag 5.9.0
+%global gittag 5.10.0
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global baserelease 10
+%global baserelease 1
 
 ExclusiveArch:  %{ix86} x86_64 aarch64
 
@@ -15,7 +15,7 @@ ExclusiveArch:  %{ix86} x86_64 aarch64
 %endif
 Summary:        Tool to record and replay execution of applications
 Name:           rr
-Version:        5.9.0
+Version:        5.10.0
 Release:        %{baserelease}%{?dist}
 # The entire source code is MIT with the exceptions of
 # files in following directories:
@@ -30,15 +30,6 @@ URL:            http://rr-project.org
 
 Source: https://github.com/rr-debugger/rr/archive/%{gittag}/%{name}-%{version}.tar.gz
 
-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
-# https://github.com/rr-debugger/rr/issues/3997
-Patch4: rr-5.9.0-emulate-madv-guard.patch
-# Fix FTBFS on rawhide (gcc 16, glibc 2.43+): missing <limits.h> for INT_MAX.
-Patch5: rr-5.9.0-include-limits-h.patch
-
 %if  0%{?rhel} == 7
 BuildRequires: cmake3
 BuildRequires: python36-pexpect
@@ -69,6 +60,7 @@ Requires: rr
 Requires: gdb
 Requires: lldb
 Requires: python3
+Requires: jq
 %if  0%{?rhel} == 7
 Requires: python36-pexpect
 Requires: cmake3
@@ -140,6 +132,11 @@ patchelf --set-rpath '%{_libdir}/rr/' %{buildroot}%{_libdir}/rr/testsuite/obj/bi
 %license LICENSE
 
 %changelog
+* Sat Nov 07 2026 Aaron Merey <amerey@redhat.com> - 5.10.0-1
+- Rebase to rr-5.10.0.
+- Drop patches now included upstream.
+- Add jq to rr-testsuite Requires.
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.0-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index c2d8cb5..eee0bc6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rr-5.9.0.tar.gz) = 796d9b0b64e3993dfc14cf488e5e598b1de4828da415b1f97435598d62c1c133fc268d7838601275a00f59f05bf53d0bb796380418f4cb6cdfdda2c50207f996
+SHA512 (rr-5.10.0.tar.gz) = c395b23462bf30ca9ee9140ebee54cab5bc4a8a5ad91ff0f52a98c23644e65dc991d1f9e587752b4fff27cb192c19621064bc56d29c9dc35eb510e64409b6a07

diff --git a/update-cmake-ver.patch b/update-cmake-ver.patch
deleted file mode 100644
index 960e3e7..0000000
--- a/update-cmake-ver.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 28a4ddcf1ade05760aac0ace5119418d5dbf880f Mon Sep 17 00:00:00 2001
-From: Robert O'Callahan <robert@ocallahan.org>
-Date: Fri, 25 Apr 2025 15:15:51 +1200
-Subject: [PATCH] Update CMake minimum version to avoid warnings
-
-Resolves #3950
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index ebbbaaf0..bd9c9f22 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,6 +1,6 @@
- # *-* Mode: cmake; *-*
- 
--cmake_minimum_required(VERSION 3.5)
-+cmake_minimum_required(VERSION 3.12)
- project(rr C CXX ASM)
- 
- # "Do not add flags to export symbols from executables without the ENABLE_EXPORTS target property."
--- 
-2.50.1
-

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 21:31 [rpms/rr] f44: Rebase to rr-5.10.0 Aaron Merey

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