1 |
commit: db8d00fb900eb88470bcbeaee7c3b92d5e8c5df9 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Mar 26 09:14:02 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 09:14:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db8d00fb |
7 |
|
8 |
sys-cluster/scr: also link yogrt for serial library |
9 |
|
10 |
Closes: https://bugs.gentoo.org/821457 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
sys-cluster/scr/Manifest | 1 - |
14 |
...GRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.patch | 15 +++ |
15 |
sys-cluster/scr/scr-3.0.ebuild | 1 + |
16 |
sys-cluster/scr/scr-3.0_pre2.ebuild | 104 --------------------- |
17 |
4 files changed, 16 insertions(+), 105 deletions(-) |
18 |
|
19 |
diff --git a/sys-cluster/scr/Manifest b/sys-cluster/scr/Manifest |
20 |
index 0eafc8db1..9f5785127 100644 |
21 |
--- a/sys-cluster/scr/Manifest |
22 |
+++ b/sys-cluster/scr/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
DIST scr-3.0.tar.gz 1235509 BLAKE2B 3a470c1f55d633993db6ca7c7980e6b8b34513370a8233202ac21d625f64c1630eafd6084735e81fe60e05f182b71114f51f8f4fe69df8cf609b1e6d6ded01f5 SHA512 168bffb7c0280094075879fa5c626dfc57f9004c9ebe09a97cf0d2b0e67c3979f31c7b39466586eb20562e6768ce576625a6d4d99f9ad9fe5ae02a82cfbc988f |
25 |
-DIST scr-3.0_pre2.tar.gz 1231943 BLAKE2B a4d8e779edc4b48a5b13a0cff851496068076a8ae901f3c3d3ad2344708a0abc6b69ce71bd7313286a91844a87930e6fa5c097d1c5b15ebbc12247ba293f843f SHA512 7b90b14cfbb6fa3020b6c3c3a7f5568963374d9fe7ad0b6962632f776c3699d6c38fa04800736d423350190542896ca9240033dca1e820f7f698c336518c891a |
26 |
|
27 |
diff --git a/sys-cluster/scr/files/scr-3.0-add-YOGRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.patch b/sys-cluster/scr/files/scr-3.0-add-YOGRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.patch |
28 |
new file mode 100644 |
29 |
index 000000000..c430cc90a |
30 |
--- /dev/null |
31 |
+++ b/sys-cluster/scr/files/scr-3.0-add-YOGRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.patch |
32 |
@@ -0,0 +1,15 @@ |
33 |
+From e842ed30c49d26cc818600fd794354103f99c5fe Mon Sep 17 00:00:00 2001 |
34 |
+From: Alessandro Barbieri <lssndrbarbieri@×××××.com> |
35 |
+Date: Sat, 26 Mar 2022 10:10:01 +0100 |
36 |
+Subject: [PATCH] add YOGRT_LIBRARIES to SCR_EXTERNAL_SERIAL_LIBS |
37 |
+ |
38 |
+--- a/cmake/SCR_DEPENDENCIES.cmake |
39 |
++++ b/cmake/SCR_DEPENDENCIES.cmake |
40 |
+@@ -46,6 +46,7 @@ IF(ENABLE_YOGRT) |
41 |
+ SET(HAVE_LIBYOGRT TRUE) |
42 |
+ INCLUDE_DIRECTORIES(${YOGRT_INCLUDE_DIRS}) |
43 |
+ LIST(APPEND SCR_EXTERNAL_LIBS ${YOGRT_LIBRARIES}) |
44 |
++ LIST(APPEND SCR_EXTERNAL_SERIAL_LIBS ${YOGRT_LIBRARIES}) |
45 |
+ LIST(APPEND SCR_LINK_LINE " -L${WITH_YOGRT_PREFIX}/lib -lyogrt") |
46 |
+ ENDIF(YOGRT_FOUND) |
47 |
+ ENDIF(ENABLE_YOGRT) |
48 |
|
49 |
diff --git a/sys-cluster/scr/scr-3.0.ebuild b/sys-cluster/scr/scr-3.0.ebuild |
50 |
index 436162f74..ca08463fd 100644 |
51 |
--- a/sys-cluster/scr/scr-3.0.ebuild |
52 |
+++ b/sys-cluster/scr/scr-3.0.ebuild |
53 |
@@ -47,6 +47,7 @@ DEPEND="${RDEPEND}" |
54 |
PATCHES=( |
55 |
"${FILESDIR}/${PN}-3.0_pre2-shared-libscr_base.patch" |
56 |
"${FILESDIR}/${PN}-3.0_pre2-no-static.patch" |
57 |
+ "${FILESDIR}/${P}-add-YOGRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.patch" |
58 |
) |
59 |
REQUIRED_USE=" |
60 |
${PYTHON_REQUIRED_USE} |
61 |
|
62 |
diff --git a/sys-cluster/scr/scr-3.0_pre2.ebuild b/sys-cluster/scr/scr-3.0_pre2.ebuild |
63 |
deleted file mode 100644 |
64 |
index 4812b3799..000000000 |
65 |
--- a/sys-cluster/scr/scr-3.0_pre2.ebuild |
66 |
+++ /dev/null |
67 |
@@ -1,104 +0,0 @@ |
68 |
-# Copyright 1999-2021 Gentoo Authors |
69 |
-# Distributed under the terms of the GNU General Public License v2 |
70 |
- |
71 |
-EAPI=8 |
72 |
- |
73 |
-DOCS_BUILDER="sphinx" |
74 |
-DOCS_DIR="${S}/doc/rst" |
75 |
-FORTRAN_NEEDED="fortran" |
76 |
-MYPV="${PV/_pre/rc}" |
77 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
78 |
- |
79 |
-inherit cmake python-single-r1 fortran-2 docs |
80 |
- |
81 |
-DESCRIPTION="Scalable Checkpoint / Restart Library" |
82 |
-HOMEPAGE=" |
83 |
- https://computing.llnl.gov/projects/scalable-checkpoint-restart-for-mpi |
84 |
- https://github.com/LLNL/scr |
85 |
-" |
86 |
-SRC_URI="https://github.com/LLNL/scr/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.tar.gz" |
87 |
-S="${WORKDIR}/${PN}-${MYPV}" |
88 |
- |
89 |
-LICENSE="BSD" |
90 |
-SLOT="0" |
91 |
-KEYWORDS="~amd64" |
92 |
-IUSE="doc examples fcntl +flock +fortran mysql slurm syslog test txt-log +yogrt" |
93 |
- |
94 |
-RDEPEND=" |
95 |
- ${PYTHON_DEPS} |
96 |
- |
97 |
- app-shells/pdsh |
98 |
- >=sys-cluster/AXL-0.5.0 |
99 |
- sys-cluster/dtcmp |
100 |
- sys-cluster/er |
101 |
- sys-cluster/KVTree |
102 |
- sys-cluster/rankstr |
103 |
- sys-cluster/redset |
104 |
- sys-cluster/spath |
105 |
- sys-libs/zlib |
106 |
- virtual/mpi |
107 |
- |
108 |
- mysql? ( dev-db/mysql-connector-c ) |
109 |
- slurm? ( sys-cluster/slurm ) |
110 |
- yogrt? ( sys-cluster/libyogrt[slurm?] ) |
111 |
-" |
112 |
-DEPEND="${RDEPEND}" |
113 |
- |
114 |
-PATCHES=( |
115 |
- "${FILESDIR}/${P}-shared-libscr_base.patch" |
116 |
- "${FILESDIR}/${P}-no-static.patch" |
117 |
-) |
118 |
-REQUIRED_USE=" |
119 |
- ${PYTHON_REQUIRED_USE} |
120 |
- |
121 |
- ?? ( fcntl flock ) |
122 |
-" |
123 |
-RESTRICT="!test? ( test )" |
124 |
- |
125 |
-pkg_setup() { |
126 |
- fortran-2_pkg_setup |
127 |
-} |
128 |
- |
129 |
-src_configure() { |
130 |
- local lock="NONE" |
131 |
- use fcntl && lock="FCNTL" |
132 |
- use flock && lock="FLOCK" |
133 |
- |
134 |
- local log="0" |
135 |
- use syslog && log="1" |
136 |
- use txt-log && log="1" |
137 |
- |
138 |
- local resman="NONE" |
139 |
- use slurm && resman="SLURM" |
140 |
- |
141 |
- local mycmakeargs=( |
142 |
- -DBUILD_PDSH=OFF |
143 |
- -DBUILD_SHARED_LIBS=ON |
144 |
- -DENABLE_CRAY_DW=OFF |
145 |
- -DENABLE_IBM_BBAPI=OFF |
146 |
- -DENABLE_PDSH=ON |
147 |
- -DSCR_LINK_STATIC=OFF |
148 |
- |
149 |
- -DSCR_FILE_LOCK="${lock}" |
150 |
- -DSCR_LOG_ENABLE="${log}" |
151 |
- -DSCR_RESOURCE_MANAGER="${resman}" |
152 |
- |
153 |
- -DENABLE_EXAMPLES=$(usex examples) |
154 |
- -DENABLE_FORTRAN=$(usex fortran) |
155 |
- -DENABLE_TESTS=$(usex test) |
156 |
- -DENABLE_YOGRT=$(usex yogrt) |
157 |
- -DSCR_LOG_SYSLOG_ENABLE=$(usex syslog 0 1) |
158 |
- -DSCR_LOG_TXT_ENABLE=$(usex txt-log 0 1) |
159 |
- ) |
160 |
- cmake_src_configure |
161 |
-} |
162 |
- |
163 |
-src_compile() { |
164 |
- cmake_src_compile |
165 |
- docs_compile |
166 |
-} |
167 |
- |
168 |
-src_install() { |
169 |
- cmake_src_install |
170 |
-# find "${ED}" -name '*.a' -delete || die |
171 |
-} |