diff --git a/0002-DUMP_GCOV-Change-fatal-to-error-when-argc-not-equal-2.patch b/0002-DUMP_GCOV-Change-fatal-to-error-when-argc-not-equal-2.patch new file mode 100644 index 0000000000000000000000000000000000000000..5d401cea5f48db83c63ff7debf362b616724f836 --- /dev/null +++ b/0002-DUMP_GCOV-Change-fatal-to-error-when-argc-not-equal-2.patch @@ -0,0 +1,25 @@ +From 7df1845234f8ac47a825f1f783a1130ad4627122 Mon Sep 17 00:00:00 2001 +From: liyancheng <412998149@qq.com> +Date: Thu, 28 Nov 2024 15:52:34 +0800 +Subject: [PATCH] [DUMP_GCOV] Change fatal to error when argc not equal 2 + +--- + dump_gcov.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dump_gcov.cc b/dump_gcov.cc +index 49a2ba6..ce55143 100644 +--- a/dump_gcov.cc ++++ b/dump_gcov.cc +@@ -25,7 +25,7 @@ int main(int argc, char **argv) { + absl::ParseCommandLine(argc, argv); + + if (argc != 2) { +- LOG(FATAL) << "Please use: dump_gcov file_path\n"; ++ LOG(ERROR) << "Please use: dump_gcov file_path\n"; + return -1; + } + devtools_crosstool_autofdo::SymbolMap symbol_map; +-- +2.33.0 + diff --git a/autofdo.spec b/autofdo.spec index b2699608d16af36c3ef803e95374dfcde1389005..f16a195f3878e4b1b10d5226d98c4008e1678042 100644 --- a/autofdo.spec +++ b/autofdo.spec @@ -1,6 +1,6 @@ Name: autofdo Version: 0.19 -Release: 3.20231228.git0e296280 +Release: 4.20231228.git0e296280 Summary: A tool to convert perf.data profile to AutoFDO profile License: Apache-2.0 URL: https://github.com/google/autofdo @@ -8,6 +8,7 @@ URL: https://github.com/google/autofdo # so remove the GIT information and repackage it. Source0: %{name}-%{version}.tar.xz Patch0: 0001-Build-Static-Library.patch +Patch1: 0002-DUMP_GCOV-Change-fatal-to-error-when-argc-not-equal-2.patch BuildRequires: gcc gcc-c++ libtool git cmake elfutils-libelf-devel openssl-devel pkg-config ninja-build gtest libunwind-devel protobuf-devel chrpath Requires: glibc openssl-libs elfutils libgcc libstdc++ zlib @@ -37,7 +38,13 @@ export QA_CHECK_RAPTH=0 %{_bindir}/profile_merger %changelog -* Fri Dec 22 2023 zhaozhenyu - 0.19-3.20231228.git0e296280 +* Thu Nov 28 2024 liyancheng <412998149@qq.com> - 0.19-4.20231228.git0e296280 +- Type:Bugfix +- ID:NA +- SUG:NA +- DESC:Change fatal to error when argc not equal 2 + +* Fri Dec 22 2023 zhaozhenyu - 0.19-3.20231228.git0e296280 - Type:Update - ID:NA - SUG:NA