public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sagar Patel <sapatel@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rr] epel10.3: Initial import (#1793156)
Date: Tue, 10 Nov 2026 21:33:51 GMT [thread overview]
Message-ID: <179434643174.1.17753823383822794140.rpms-rr-5d92dff69927@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rr
Branch : epel10.3
Commit : 5d92dff699273fe582270cb45264ac4808492151
Author : Sagar Patel <sapatel@redhat.com>
Date : 2020-01-31T14:33:05-05:00
Stats : +109/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rr/c/5d92dff699273fe582270cb45264ac4808492151?branch=epel10.3
Log:
Initial import (#1793156)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..702c9c6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/rr-7908fea.tar.gz
diff --git a/rr-flags.patch b/rr-flags.patch
new file mode 100644
index 0000000..c0e687d
--- /dev/null
+++ b/rr-flags.patch
@@ -0,0 +1,21 @@
+diff -up rr-4452c7f4f5be41e6df155682b42b4336a67ddf5c/CMakeLists.txt.flags rr-4452c7f4f5be41e6df155682b42b4336a67ddf5c/CMakeLists.txt
+--- rr-4452c7f4f5be41e6df155682b42b4336a67ddf5c/CMakeLists.txt.flags 2019-12-08 03:23:38.000000000 -0500
++++ rr-4452c7f4f5be41e6df155682b42b4336a67ddf5c/CMakeLists.txt 2020-01-10 14:27:51.971474564 -0500
+@@ -72,7 +72,7 @@ set(PRELOAD_COMPILE_FLAGS "${RR_FLAGS_RE
+ # Flags used to build Brotli. SHOULD be optimized. MUST NOT error on warnings.
+ set(BROTLI_COMPILE_FLAGS ${RR_FLAGS_RELEASE})
+ # Flags used to build tests. MUST have -DDEBUG and debuginfo enabled, MUST NOT be optimized.
+-set(RR_TEST_FLAGS "${RR_FLAGS_DEBUG} -g3 -O0")
++set(RR_TEST_FLAGS "${RR_FLAGS_DEBUG} -g3 -Og")
+ # Flags used to build other files. Entirely build-type-dependent.
+ set(RR_FLAGS ${RR_FLAGS_RELEASE})
+
+@@ -81,7 +81,7 @@ string(TOLOWER ${CMAKE_BUILD_TYPE} LOWER
+ if(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "debug")
+ set(PRELOAD_COMPILE_FLAGS "${PRELOAD_COMPILE_FLAGS} -O2 -Werror")
+ set(BROTLI_COMPILE_FLAGS "${RR_FLAGS_RELEASE} -O2")
+- set(RR_TEST_FLAGS "${RR_TEST_FLAGS} -Werror")
++ set(RR_TEST_FLAGS "${RR_TEST_FLAGS} -Werror -Wno-error=unused-result -Wno-error=attribute-warning")
+ set(RR_FLAGS "${RR_FLAGS_DEBUG} -g3 -Werror")
+ elseif(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "release")
+ # CMake itself will add optimization flags
diff --git a/rr.spec b/rr.spec
new file mode 100644
index 0000000..5913013
--- /dev/null
+++ b/rr.spec
@@ -0,0 +1,86 @@
+%global commit 7908feaee2ddedcee6db7619a221b24193fb5e99
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+ExclusiveArch: %{ix86} x86_64
+
+# Disable 32-bit builds on architectures with multilibs
+# to avoid attempting pulling in 32-bit in to koji build.
+%ifarch x86_64
+%global disable32bit -Ddisable32bit=ON
+%endif
+Summary: Tool to record and replay execution of applications
+Name: rr
+Version: 5.3.0
+Release: 8.20200124git%{shortcommit}%{?dist}
+# The entire source code is MIT with the exceptions of
+# files in following directories:
+# third-party/blake2 CC0
+# third-party/gdb BSD
+# third-party/proc-service BSD
+License: MIT and CC0 and BSD
+URL: http://rr-project.org
+
+Source: https://github.com/mozilla/rr/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
+# The following patch avoids errors during the build due to -D_FORTIFY_SOURCE=2 and -Werror.
+Patch1: rr-flags.patch
+
+%if 0%{?rhel} == 7
+BuildRequires: cmake3
+BuildRequires: devtoolset-9-toolchain
+BuildRequires: python36-pexpect
+%else
+BuildRequires: cmake
+BuildRequires: python3-pexpect
+%endif
+BuildRequires: make gcc gcc-c++ gdb
+BuildRequires: libgcc
+BuildRequires: glibc-devel
+BuildRequires: libstdc++-devel
+BuildRequires: man-pages
+BuildRequires: capnproto capnproto-libs capnproto-devel
+
+%description
+rr is a lightweight tool for recording and replaying execution
+of applications (trees of processes and threads).
+For more information, please visit http://rr-project.org
+
+%prep
+%setup -q -n rr-%{commit}
+
+%patch1 -p1 -b .flags
+
+%build
+
+%if 0%{?rhel} == 7
+. /opt/rh/devtoolset-9/enable
+%endif
+
+mkdir obj && cd obj
+%cmake3 .. %{?disable32bit}
+
+make %{?_smp_mflags}
+
+%install
+cd obj
+%make_install
+
+rm -rf %{buildroot}%{_datadir}/rr/src
+
+%files
+%dir %{_libdir}/rr
+%{_libdir}/rr/librrpreload.so
+%{_bindir}/rr
+%{_bindir}/rr_exec_stub*
+%{_bindir}/signal-rr-recording.sh
+%{_bindir}/rr-collect-symbols.py
+%{_datadir}/bash-completion/completions/rr
+%dir %{_datadir}/rr
+%{_datadir}/rr/*.xml
+%{_datadir}/rr/rr_page_*
+
+%license LICENSE
+
+%changelog
+* Tue Jan 14 2020 William Cohen <wcohen@redhat.com> 5.3.0-8.20200124git7908fea
+- Sync with upstream branch master,
+ commit 70ba28f7ab2923d4e36ffc9d5d2e32357353b25c.
+- SRPM buildable on Fedora koji or other rpm build systems.
diff --git a/sources b/sources
new file mode 100644
index 0000000..24566c3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (rr-7908fea.tar.gz) = c1899a66ea2f9cb273270c68c9fa3da9a7fa5b61f15f5da8a96ec2ad9f7b4e5859fdeb5dff3178139fc4fefb77fe1501e3b6cbfae87c7a6ea57db6774a8b8472
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=179434643174.1.17753823383822794140.rpms-rr-5d92dff69927@fedoraproject.org \
--to=sapatel@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