public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rr] epel10: Enable rr to be built on older compilers
@ 2026-11-10 21:33 Sagar Patel
  0 siblings, 0 replies; only message in thread
From: Sagar Patel @ 2026-11-10 21:33 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rr
Branch : epel10
Commit : 226109869962344cc20837f989a49b485eac9a44
Author : Sagar Patel <sapatel@redhat.com>
Date   : 2020-02-24T12:30:22-05:00
Stats  : +10/-34 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/rr/c/226109869962344cc20837f989a49b485eac9a44?branch=epel10

Log:
Enable rr to be built on older compilers

---
diff --git a/.gitignore b/.gitignore
index 752ed75..3738c13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /rr-7908fea.tar.gz
 /rr-abd3442.tar.gz
+/rr-4513b23.tar.gz

diff --git a/rr-flags.patch b/rr-flags.patch
deleted file mode 100644
index c0e687d..0000000
--- a/rr-flags.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-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
index 7567b8f..2380968 100644
--- a/rr.spec
+++ b/rr.spec
@@ -1,4 +1,4 @@
-%global commit abd344288878c9b4046e0b8664927992947a46eb
+%global commit 4513b23c8092097dc42c73f3cbaf4cfaebd04efe
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
 ExclusiveArch:  %{ix86} x86_64
 
@@ -10,7 +10,7 @@ ExclusiveArch:  %{ix86} x86_64
 Summary:        Tool to record and replay execution of applications
 Name:           rr
 Version:        5.3.0
-Release:        10.20200213git%{shortcommit}%{?dist}
+Release:        11.20200224git%{shortcommit}%{?dist}
 # The entire source code is MIT with the exceptions of
 # files in following directories:
 #   third-party/blake2       CC0
@@ -20,12 +20,9 @@ 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
@@ -46,16 +43,10 @@ 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}
+%cmake3 .. -DCMAKE_BUILD_TYPE=Release %{?disable32bit}
 
 make %{?_smp_mflags}
 
@@ -80,6 +71,11 @@ rm -rf %{buildroot}%{_datadir}/rr/src
 %license LICENSE
 
 %changelog
+* Mon Feb 24 2020 Sagar Patel <sapatel@redhat.com> 10.20200224git4513b23
+- Sync with upstream branch master,
+  commit 4513b23c8092097dc42c73f3cbaf4cfaebd04efe.
+- New patches enable rr to be built on older compilers.
+
 * Thu Feb 13 2020 Sagar Patel <sapatel@redhat.com> 10.20200213gitabd3442
 - Sync with upstream branch master,
   commit abd344288878c9b4046e0b8664927992947a46eb.

diff --git a/sources b/sources
index 1e9cc6c..62074d7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rr-abd3442.tar.gz) = 8e68b9f8cb040ea8416a327019f72014e2257480d4cf0e39198dcd7566dca02daad1077a2f16227c03f5f3d11b8feb7dfba5edf91f185c9ed8b5dd44226a0c0d
+SHA512 (rr-4513b23.tar.gz) = a3ecad204f436eb147e015cd0b2364f5b8e41cb74440ed23759ba0c26cd5800e612e5244b4b72f15d143d6ad37a524ed327c9c6ad0af289e2c9d712d55f64050

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

only message in thread, other threads:[~2026-11-10 21:33 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:33 [rpms/rr] epel10: Enable rr to be built on older compilers Sagar Patel

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