diff --git a/fio.spec b/fio.spec index d34245a0e1066b7619ff6891a97b264b50c4f7ea..a85e07851085fbfbfac9023f72f170b7f1cd0713 100644 --- a/fio.spec +++ b/fio.spec @@ -1,6 +1,6 @@ Name: fio Version: 3.7 -Release: 10 +Release: 11 Summary: Versatile IO workload generator License: GPLv2 URL: http://git.kernel.dk/?p=fio.git;a=summary @@ -13,6 +13,7 @@ BuildRequires: libpmem-devel libpmemblk-devel Patch0000: fix-glibc-error.patch Patch0001: Modify-python2.7-to-python3-with-requires.patch Patch0002: fio2gnuplot-fix-TabErrors-when-running-with-Python-3.patch +Patch0003: gcc-10.patch %description fio is a tool used to spawn many threads or processes that perform a specific type of io operation specified by the user.It accepts many global parameters inherited @@ -46,6 +47,9 @@ export EXTFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{_mandir}/man1/* %changelog +* Fri Jul 30 2021 linjiaxin5 - 3.7-11 +- Fix failure caused by GCC upgrade to 10 + * Wed Jul 21 2021 lingsheng - 3.7-10 - Remove unnecessary buildrequire gdb diff --git a/gcc-10.patch b/gcc-10.patch new file mode 100644 index 0000000000000000000000000000000000000000..f86fff4557d369e48fb5aed537c21d6f91a6d906 --- /dev/null +++ b/gcc-10.patch @@ -0,0 +1,9 @@ +--- a/t/arch.c 2021-08-03 15:35:12.952984598 +0800 ++++ b/t/arch.c 2021-08-03 15:34:47.284542645 +0800 +@@ -1,5 +1,5 @@ + #include "../arch/arch.h" + + unsigned long arch_flags = 0; +-bool tsc_reliable; ++extern bool tsc_reliable; + int arch_random;