commit: f21633dae3da202649266f1a018c2a763f887fd2 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Sun Mar 23 23:33:25 2025 +0000 Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org> CommitDate: Mon Mar 24 12:32:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21633da
sci-physics/hepmc: Fix cmake-4 Closes: https://bugs.gentoo.org/951891 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org> sci-physics/hepmc/files/hepmc-3.3.0-cmake.patch | 74 +++++++++++++++++++++++++ sci-physics/hepmc/hepmc-3.3.0-r1.ebuild | 3 + 2 files changed, 77 insertions(+) diff --git a/sci-physics/hepmc/files/hepmc-3.3.0-cmake.patch b/sci-physics/hepmc/files/hepmc-3.3.0-cmake.patch new file mode 100644 index 000000000000..32f883a19040 --- /dev/null +++ b/sci-physics/hepmc/files/hepmc-3.3.0-cmake.patch @@ -0,0 +1,74 @@ +From ece7b601ce77ead73c071e02c729e9cd9b2a1202 Mon Sep 17 00:00:00 2001 +From: Andrii Verbytskyi <[email protected]> +Date: Thu, 27 Feb 2025 09:40:41 +0100 +Subject: [PATCH 01/11] Update minimal cmake version + +--- + CMakeLists.txt | 2 +- + ChangeLog | 3 +++ + examples/BasicExamples/CMakeLists.txt | 2 +- + examples/CMakeLists.txt | 2 +- + examples/SearchExample/CMakeLists.txt | 2 +- + python/CMakeLists.txt | 2 +- + 6 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 674d6198..80e8506e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR) + #---------------------------------------------------------------------------- + project(HepMC3 LANGUAGES CXX) + set(PROJECT_VERSION 3.03.00) +diff --git a/examples/BasicExamples/CMakeLists.txt b/examples/BasicExamples/CMakeLists.txt +index acebb57a..4c51845a 100644 +--- a/examples/BasicExamples/CMakeLists.txt ++++ b/examples/BasicExamples/CMakeLists.txt +@@ -1,6 +1,6 @@ + # building tests + #------------------ +-cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR) + # + if (${CMAKE_VERSION} VERSION_GREATER "3.8") + cmake_policy(SET CMP0069 NEW) +diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt +index 3a3c75c6..fdf78337 100644 +--- a/examples/CMakeLists.txt ++++ b/examples/CMakeLists.txt +@@ -1,6 +1,6 @@ + # building examples + #------------------ +-cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR) + include_directories(${PROJECT_SOURCE_DIR}/include ) + if (${CMAKE_VERSION} VERSION_GREATER "3.8") + cmake_policy(SET CMP0069 NEW) +diff --git a/examples/SearchExample/CMakeLists.txt b/examples/SearchExample/CMakeLists.txt +index b32029b8..36f39b09 100644 +--- a/examples/SearchExample/CMakeLists.txt ++++ b/examples/SearchExample/CMakeLists.txt +@@ -1,6 +1,6 @@ + # building tests + #------------------ +-cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR) + # + if (${CMAKE_VERSION} VERSION_GREATER "3.8") + cmake_policy(SET CMP0069 NEW) +diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt +index bf9691d0..c0ae3093 100644 +--- a/python/CMakeLists.txt ++++ b/python/CMakeLists.txt +@@ -1,6 +1,6 @@ + #project(pyHepMC3 CXX) + #Should be fixed +-cmake_minimum_required(VERSION 3.5.0) ++cmake_minimum_required(VERSION 3.10.0) + if(${CMAKE_VERSION} VERSION_LESS "3.14.00") + SET_PROPERTY (GLOBAL PROPERTY CMAKE_ROLE "PROJECT") + endif() +-- +GitLab diff --git a/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild b/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild index 0f34ec376a72..3daf3f3c4a15 100644 --- a/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild +++ b/sci-physics/hepmc/hepmc-3.3.0-r1.ebuild @@ -59,6 +59,9 @@ BDEPEND=" app-arch/zstd ) " +PATCHES=( + "${FILESDIR}"/${P}-cmake.patch # gitlab.cern.ch/hepmc/HepMC3/-/merge_requests/377 +) src_configure() { filter-lto # 941937 941936
