mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 04:20:38 -09:00
package/pahole: fix build with host-cmake 4.0
host-pahole build fails with recent host-cmake versions, producing the following error: CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. The issue can be reproduced with a minimal defconfig: BR2_arm=y BR2_cortex_a7=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_DEFCONFIG="versatile" BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE=y And host-cmake >= 4.0.0 The issue has already been fixed in the upstream pahole project and is included in versions >= 1.28. Fix the issue on the current LTS branch by bringing the fixing commit from upstream. Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
c043e0d5f8
commit
48eae4808e
@@ -0,0 +1,45 @@
|
||||
From 12ca11281912c272f931e836b9160ee827250716 Mon Sep 17 00:00:00 2001
|
||||
From: Arnaldo Carvalho de Melo <acme@redhat.com>
|
||||
Date: Tue, 26 Nov 2024 14:19:16 -0300
|
||||
Subject: [PATCH] CMakeLists.txt: Require cmake 3.5 or higher
|
||||
|
||||
To address this warning from cmake:
|
||||
|
||||
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
|
||||
Compatibility with CMake < 3.5 will be removed from a future version of
|
||||
CMake.
|
||||
|
||||
Update the VERSION argument <min> value or use a ...<max> suffix to tell
|
||||
CMake that the project does not need compatibility with older versions.
|
||||
|
||||
Cc: Alan Maguire <alan.maguire@oracle.com>
|
||||
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
|
||||
Cc: Domenico Andreoli <cavok@debian.org>
|
||||
Cc: Dominique Leuenberger <dimstar@opensuse.org>
|
||||
Cc: Dominique Martinet <asmadeus@codewreck.org>
|
||||
Cc: Eduard Zingerman <eddyz87@gmail.com>
|
||||
Cc: Guilherme Amadio <amadio@gentoo.org>
|
||||
Cc: Jan Alexander Steffens <heftig@archlinux.org>
|
||||
Cc: Jiri Olsa <jolsa@kernel.org>
|
||||
Cc: Matthias Schwarzott <zzam@gentoo.org>
|
||||
Link: https://lore.kernel.org/all/Z0YEFABQejfGTyrj@x1
|
||||
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|
||||
Upstream: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=12ca11281912c272f931e836b9160ee827250716
|
||||
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 1d0dadf6eea7..90fa65c391b6 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.8.12)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
project(pahole C)
|
||||
cmake_policy(SET CMP0005 NEW)
|
||||
|
||||
--
|
||||
2.49.0
|
||||
|
||||
Reference in New Issue
Block a user