The package rpms/rr.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rr.git/commit/?id=5d92dff699273fe582....
Change: +%ifarch x86_64
Thanks.
Full change: ============
commit 5d92dff699273fe582270cb45264ac4808492151 Author: Sagar Patel sapatel@redhat.com Date: Fri Jan 31 14:33:05 2020 -0500
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/%%7Bcommit%7D/%%7Bname%7D-%%7Bshortcom... +# 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
arch-excludes@lists.fedoraproject.org