mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
sci-libs/scalapack: fix CMake 4 compat
I haven't rushed to take a new snapshot (after 2.2.2) given there's a mess with its .pc. Closes: https://bugs.gentoo.org/958032 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
b90f0cd723
commit
d0d36d3cbe
66
sci-libs/scalapack/files/scalapack-2.2.0-cmake.patch
Normal file
66
sci-libs/scalapack/files/scalapack-2.2.0-cmake.patch
Normal file
@ -0,0 +1,66 @@
|
||||
https://github.com/Reference-ScaLAPACK/scalapack/commit/41ac62c28fab33cd9ccc1b010c9c215b5f05201b
|
||||
https://github.com/Reference-ScaLAPACK/scalapack/commit/afbc20a9465b79dea14f65c76090fbaecc9c417b
|
||||
|
||||
From 41ac62c28fab33cd9ccc1b010c9c215b5f05201b Mon Sep 17 00:00:00 2001
|
||||
From: Cristian Le <git@lecris.dev>
|
||||
Date: Mon, 31 Mar 2025 11:03:15 +0200
|
||||
Subject: [PATCH] Adjust CI to test for CMake versions
|
||||
|
||||
---
|
||||
BLACS/INSTALL/CMakeLists.txt | 2 +-
|
||||
CMakeLists.txt | 2 +-
|
||||
3 files changed, 19 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/BLACS/INSTALL/CMakeLists.txt b/BLACS/INSTALL/CMakeLists.txt
|
||||
index c75773cd..257813e8 100644
|
||||
--- a/BLACS/INSTALL/CMakeLists.txt
|
||||
+++ b/BLACS/INSTALL/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.8)
|
||||
+cmake_minimum_required(VERSION 2.8...4.0)
|
||||
project(INSTALL C Fortran)
|
||||
|
||||
add_executable(xintface Fintface.f Cintface.c)
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 0d599305..23f8ea70 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.9)
|
||||
+cmake_minimum_required(VERSION 3.9...4.0)
|
||||
|
||||
project(SCALAPACK VERSION 2.2.2 LANGUAGES C Fortran)
|
||||
|
||||
|
||||
From afbc20a9465b79dea14f65c76090fbaecc9c417b Mon Sep 17 00:00:00 2001
|
||||
From: Cristian Le <git@lecris.dev>
|
||||
Date: Mon, 31 Mar 2025 18:30:54 +0200
|
||||
Subject: [PATCH] Bump minimum CMake to 3.26
|
||||
|
||||
Signed-off-by: Cristian Le <git@lecris.dev>
|
||||
---
|
||||
BLACS/INSTALL/CMakeLists.txt | 2 +-
|
||||
CMakeLists.txt | 2 +-
|
||||
3 files changed, 6 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/BLACS/INSTALL/CMakeLists.txt b/BLACS/INSTALL/CMakeLists.txt
|
||||
index 257813e8..acbb7430 100644
|
||||
--- a/BLACS/INSTALL/CMakeLists.txt
|
||||
+++ b/BLACS/INSTALL/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.8...4.0)
|
||||
+cmake_minimum_required(VERSION 3.26...4.0)
|
||||
project(INSTALL C Fortran)
|
||||
|
||||
add_executable(xintface Fintface.f Cintface.c)
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d59f7936..c80c11ee 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.9...4.0)
|
||||
+cmake_minimum_required(VERSION 3.26...4.0)
|
||||
|
||||
project(SCALAPACK VERSION 2.2.2 LANGUAGES C Fortran)
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@ -26,7 +26,9 @@ RDEPEND="
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.2.0-cmake.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user