diff --git a/0001-Build-Static-Library b/0001-Build-Static-Library.patch similarity index 79% rename from 0001-Build-Static-Library rename to 0001-Build-Static-Library.patch index 2efa755c3ab105a6a055adc51c6fa19a43f4df39..e6cd1ddcc986e5bedfd82c9187fe11224a851437 100644 --- a/0001-Build-Static-Library +++ b/0001-Build-Static-Library.patch @@ -6,8 +6,8 @@ index 2d00c4d..b6b3a1a 100644 include (GetCacheVariables) include (GNUInstallDirs) --option (BUILD_SHARED_LIBS "Build shared libraries" OFF) -+option (BUILD_SHARED_LIBS "Build shared libraries" ON) +-option (BUILD_SHARED_LIBS "Build shared libraries" ON) ++option (BUILD_SHARED_LIBS "Build shared libraries" OFF) option (PRINT_UNSYMBOLIZED_STACK_TRACES "Print file offsets in traces instead of symbolizing" OFF) option (WITH_GFLAGS "Use gflags" ON) diff --git a/autofdo-0.19.tar.xz b/autofdo-0.19.tar.xz index 3e56a5a852f0232aba9f20c14428b18be5657d00..140c6819b63edf399ef60ac97de255d01cfec677 100644 Binary files a/autofdo-0.19.tar.xz and b/autofdo-0.19.tar.xz differ diff --git a/autofdo.spec b/autofdo.spec index 25ab027fdce8c1626b38bcd819aa47db267f472a..d946654d70423e34ca1ca6b6070a80c5bd36eafb 100644 --- a/autofdo.spec +++ b/autofdo.spec @@ -1,14 +1,15 @@ 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 # The package in the original url below contains GIT information which is useless, # so remove the GIT information and repackage it. -Source0: %{name}-%{version}.tar.xz +Source0: %{name}-%{version}.tar.xz +Patch0: 0001-Build-Static-Library.patch -BuildRequires: gcc gcc-c++ libtool git cmake elfutils-libelf-devel openssl-devel pkg-config ninja-build gtest libunwind-devel protobuf-devel +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 %description @@ -16,7 +17,7 @@ This package contains a tool to convert perf.data profile to AutoFDO profile that can be used by GCC and LLVM. %prep -%autosetup +%autosetup -p1 %build cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. ./ @@ -29,14 +30,22 @@ cp %{_builddir}/%{name}-%{version}/create_gcov ./ cp %{_builddir}/%{name}-%{version}/dump_gcov ./ cp %{_builddir}/%{name}-%{version}/profile_merger ./ +export QA_CHECK_RAPTH=0 + %files %{_bindir}/create_gcov %{_bindir}/dump_gcov %{_bindir}/profile_merger %changelog -* Fri Dec 22 2023 zhaozhenyu - 0.19-3.20231228.git0e296280 -- Type:update +* Wed Apr 24 2024 zhaozhenyu - 0.19-4.20231228.git0e296280 +- Type:Bugfix +- ID:NA +- SUG:NA +- DESC:Correct file extension and enable pacth in the spec file + +* Fri Dec 22 2023 zhaozhenyu - 0.19-3.20231228.git0e296280 +- Type:Update - ID:NA - SUG:NA - DESC:Update AutoFDO toolchain to 0.19-3.20231228