public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aaron Merey <amerey@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rr] epel10: Fix FTBFS on rawhide by including <limits.h> in test/util.h
Date: Tue, 10 Nov 2026 21:33:44 GMT	[thread overview]
Message-ID: <179434642466.1.13236514580935200683.rpms-rr-8c1bd9dd7c40@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rr
            Branch : epel10
            Commit : 8c1bd9dd7c40a6895bcd6f5be66b6c92debb09d6
            Author : Aaron Merey <amerey@redhat.com>
            Date   : 2026-04-29T15:01:21-04:00
            Stats  : +39/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rr/c/8c1bd9dd7c40a6895bcd6f5be66b6c92debb09d6?branch=epel10

            Log:
            Fix FTBFS on rawhide by including <limits.h> in test/util.h

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,
but gcc 16 and glibc 2.43+ on rawhide do not, so the testsuite
subpackage fails to compile.

Add the include to src/test/util.h, which every test already
includes, fixing all current and future affected tests at once.

---
diff --git a/rr-5.9.0-include-limits-h.patch b/rr-5.9.0-include-limits-h.patch
new file mode 100644
index 0000000..a8818c6
--- /dev/null
+++ b/rr-5.9.0-include-limits-h.patch
@@ -0,0 +1,31 @@
+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.spec b/rr.spec
index 353538c..bcbc242 100644
--- a/rr.spec
+++ b/rr.spec
@@ -4,7 +4,7 @@
 %global commit da33770d22b404d7333e46e26495eaca0c5a6d8a
 %global gittag 5.9.0
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global baserelease 8
+%global baserelease 9
 
 ExclusiveArch:  %{ix86} x86_64 aarch64
 
@@ -36,6 +36,8 @@ Patch2: update-cmake-ver.patch
 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
@@ -138,6 +140,11 @@ patchelf --set-rpath '%{_libdir}/rr/' %{buildroot}%{_libdir}/rr/testsuite/obj/bi
 %license LICENSE
 
 %changelog
+* Tue Apr 28 2026 Aaron Merey <amerey@redhat.com> - 5.9.0-9
+- Fix FTBFS on rawhide (gcc 16, glibc 2.43+) by including <limits.h>
+  in src/test/util.h, which several test files rely on for INT_MAX
+  and other limit macros.
+
 * Tue Apr 28 2026 Aaron Merey <amerey@redhat.com> - 5.9.0-8
 - Backport upstream fix for MADV_GUARD_INSTALL/REMOVE (kernel >= 6.13)
   to unbreak recording of multi-threaded programs (upstream commit 34ff3a70).

                 reply	other threads:[~2026-11-10 21:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179434642466.1.13236514580935200683.rpms-rr-8c1bd9dd7c40@fedoraproject.org \
    --to=amerey@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox