From bd6c0fbc9792082dd9c4e84b537f04c97220e7aa Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 2 Mar 2025 18:02:53 +0800 Subject: [PATCH] try build with cmake 4.0 --- dwarves-1.25-port-to-newer-cmake.patch | 8 ++++++++ dwarves.spec | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dwarves-1.25-port-to-newer-cmake.patch 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 0000000..d58c5dc --- /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 5f44ed2..dfb77db 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 -- Gitee