diff --git a/dwarves-1.25-port-to-newer-cmake.patch b/dwarves-1.25-port-to-newer-cmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..d58c5dcc78dc678ed061bd443bd253d767fc4ac6 --- /dev/null +++ b/dwarves-1.25-port-to-newer-cmake.patch @@ -0,0 +1,8 @@ +--- dwarves-1.25/CMakeLists.txt.orig 2025-03-02 18:00:43.203226000 +0800 ++++ dwarves-1.25/CMakeLists.txt 2025-03-02 18:00:55.513716500 +0800 +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 2.8.12...${CMAKE_VERSION}) + project(pahole C) + cmake_policy(SET CMP0005 NEW) + diff --git a/dwarves.spec b/dwarves.spec index 5f44ed268ef9f4bf30cb2fc54e4107eec223fb6b..dfb77db979d0a53fd631e06c61193b838b1d7746 100644 --- a/dwarves.spec +++ b/dwarves.spec @@ -4,8 +4,8 @@ Name: dwarves Version: 1.25 -Release: 4 -License: GPLv2 +Release: 5 +License: GPL-2.0-only Summary: Debugging Information Manipulation Tools URL: http://acmel.wordpress.com Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.xz @@ -17,6 +17,7 @@ BuildRequires: zlib-devel BuildRequires: elfutils-devel >= 0.170 Patch0: backport-btf_encoder-Fix-dwarf-int-type-with-greater-than-16-.patch +Patch1: dwarves-1.25-port-to-newer-cmake.patch %description dwarves is a set of tools that use the debugging information inserted in @@ -81,6 +82,9 @@ tar -zxvf %{SOURCE1} --strip-components 1 -C %{_builddir}/%{name}-%{version}/lib %{_libdir}/%{libname}_reorganize.so %changelog +* Sun Mar 02 2025 Funda Wang - 1.25-5 +- try build with cmake 4.0 + * Fri Dec 20 2024 Funda Wang - 1.25-4 - adopt to new cmake macro