public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rr] epel10.3: Avoid implicit function declaration in test (C99 compatibility)
@ 2026-11-10 21:34 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-11-10 21:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rr
            Branch : epel10.3
            Commit : 6db89374ed188c4910eea54d3cce5947099b973f
            Author : Florian Weimer <fweimer@redhat.com>
            Date   : 2022-12-03T12:46:33+01:00
            Stats  : +23/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rr/c/6db89374ed188c4910eea54d3cce5947099b973f?branch=epel10.3

            Log:
            Avoid implicit function declaration in test (C99 compatibility)

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>

---
diff --git a/rr-test-include-sys-mount.patch b/rr-test-include-sys-mount.patch
new file mode 100644
index 0000000..ebc8c4b
--- /dev/null
+++ b/rr-test-include-sys-mount.patch
@@ -0,0 +1,18 @@
+test: Include <sys/mount.h> in util.h
+
+The mount_ns_exec test needs it to call the mount function.
+
+Submitted upstream: <https://github.com/rr-debugger/rr/pull/3409>
+
+diff --git a/src/test/util.h b/src/test/util.h
+index ec891db8ce13019b..cb4b978ee730771b 100644
+--- a/src/test/util.h
++++ b/src/test/util.h
+@@ -78,6 +78,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/ipc.h>
+ #include <sys/mman.h>
++#include <sys/mount.h>
+ #include <sys/msg.h>
+ #include <sys/prctl.h>
+ #include <sys/ptrace.h>

diff --git a/rr.spec b/rr.spec
index d666573..b5106c0 100644
--- a/rr.spec
+++ b/rr.spec
@@ -4,7 +4,7 @@
 %global commit da33770d22b404d7333e46e26495eaca0c5a6d8a
 %global gittag 5.6.0
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global baserelease 3
+%global baserelease 4
 
 ExclusiveArch:  %{ix86} x86_64 aarch64
 
@@ -29,6 +29,7 @@ Source: https://github.com/rr-debugger/rr/archive/%{gittag}/%{name}-%{version}.t
 Patch1: rr-mount.patch
 Patch2: rr-time.patch
 Patch3: rr-ethtool-struct.patch
+Patch4: rr-test-include-sys-mount.patch
 
 %if  0%{?rhel} == 7
 BuildRequires: cmake3
@@ -126,6 +127,9 @@ patchelf --set-rpath '%{_libdir}/rr/' %{buildroot}%{_libdir}/rr/testsuite/obj/bi
 %license LICENSE
 
 %changelog
+* Sat Dec  3 2022 Florian Weimer <fweimer@redhat.com> - 5.6.0-4
+- Avoid implicit function declaration in test (C99 compatibility)
+
 * Fri Dec 02 2022 Fabio Valentini <decathorpe@gmail.com> - 5.6.0-3
 - Rebuild for capnproto 0.10.3 / CVE-2022-46149
 

^ 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: Avoid implicit function declaration in test (C99 compatibility) Florian Weimer

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