sys-cluster/opencoarrays: fix -Wint-conversion CMake conf warning/error

Closes: https://bugs.gentoo.org/888009

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2023-05-27 23:25:54 +03:00
parent f2733f0b56
commit fd1dbc562b
4 changed files with 28 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
Gentoo issue: https://bugs.gentoo.org/888009
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -422,7 +422,7 @@
char processor_name[MPI_MAX_PROCESSOR_NAME];
int name_len;
MPI_Get_processor_name(processor_name, &name_len);
- printf('Hello world from processor %s, rank %d out of %d processors',
+ printf(\"Hello world from processor %s, rank %d out of %d processors\",
processor_name, world_rank, world_size);
MPI_Finalize();
}"

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -34,6 +34,10 @@ DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}/${PN}-2.10.1_fix_Wint-conversion_warning_error.patch"
)
src_configure() {
filter-lto # Bug 860765

View File

@@ -37,6 +37,10 @@ DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}/${PN}-2.10.1_fix_Wint-conversion_warning_error.patch"
)
src_configure() {
filter-lto # Bug 860765

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -34,6 +34,10 @@ DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}/${PN}-2.10.1_fix_Wint-conversion_warning_error.patch"
)
src_configure() {
filter-lto # Bug 860765