1 |
commit: 52faecfab023afea340cb5a35770f0dcdaf952e6 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 25 21:04:45 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 25 21:04:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52faecfa |
7 |
|
8 |
sys-cluster/rdma-core: add 41.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/778971 |
11 |
Bug: https://bugs.gentoo.org/792033 |
12 |
Bug: https://bugs.gentoo.org/835411 |
13 |
Bug: https://bugs.gentoo.org/837830 |
14 |
Bug: https://bugs.gentoo.org/852083 |
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
sys-cluster/rdma-core/Manifest | 1 + |
18 |
sys-cluster/rdma-core/rdma-core-41.0.ebuild | 102 ++++++++++++++++++++++++++++ |
19 |
2 files changed, 103 insertions(+) |
20 |
|
21 |
diff --git a/sys-cluster/rdma-core/Manifest b/sys-cluster/rdma-core/Manifest |
22 |
index 6d54badbb34f..64abd5527599 100644 |
23 |
--- a/sys-cluster/rdma-core/Manifest |
24 |
+++ b/sys-cluster/rdma-core/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST rdma-core-38.0.tar.gz 1760189 BLAKE2B ab028ce9367353201748f19d05d4d02170920b155b7ebb3584043729422e377cfb4ae29ed442ce7f965faa2470fe558499e9b2e7da51f282fa65ab029d4bcaa9 SHA512 98b3e3d26675891d54652817851f172855443faf6950b5c17177f10f5b3b197778590ad0e9640ecceaba17cf4aceb276ddb145ab46c1f6af9d2f6954688c3239 |
27 |
DIST rdma-core-39.0.tar.gz 1762652 BLAKE2B 7fed2be57624451c660120c6360fedd15ffaff36608879a329c3f078b647cb325c94fc949ef14f99b3be8b43ffddee6759e7da2f88287adf4dee413658afb5db SHA512 a003cae24cff6791a6281b1ab7cc1823fb08a74e03231bf846f8ebbd5fa447c8dd900357493108f6a2b22fd5dabd657fe42e1ce2f65a01746ce47a3222815459 |
28 |
+DIST rdma-core-41.0.tar.gz 1784540 BLAKE2B 3c153dcc3563427f32fa32d9a31527635c6bb3e63297c201f30de1328a68ac73ecb3af89074dfcc27d92c640d14d8d8ec61c001659d18336a4156cf8ed22996c SHA512 d8c1210ca078ea53879cee42c838cc88bcc98430471ae609d8c4a25218dbfd63a70f5bbd4e9ba6efabdfc467f7d5796ce618ec22013d414f17502d1257601a80 |
29 |
|
30 |
diff --git a/sys-cluster/rdma-core/rdma-core-41.0.ebuild b/sys-cluster/rdma-core/rdma-core-41.0.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..d3914a582bc8 |
33 |
--- /dev/null |
34 |
+++ b/sys-cluster/rdma-core/rdma-core-41.0.ebuild |
35 |
@@ -0,0 +1,102 @@ |
36 |
+# Copyright 1999-2022 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python3_{8..11} ) |
42 |
+ |
43 |
+inherit cmake python-single-r1 udev systemd |
44 |
+ |
45 |
+DESCRIPTION="Userspace components for the Linux Kernel's drivers/infiniband subsystem" |
46 |
+HOMEPAGE="https://github.com/linux-rdma/rdma-core" |
47 |
+ |
48 |
+if [[ ${PV} == *9999 ]]; then |
49 |
+ inherit git-r3 |
50 |
+ EGIT_REPO_URI="https://github.com/linux-rdma/rdma-core" |
51 |
+else |
52 |
+ SRC_URI="https://github.com/linux-rdma/rdma-core/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
53 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )" |
57 |
+SLOT="0" |
58 |
+IUSE="neigh python static-libs systemd valgrind" |
59 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
60 |
+ |
61 |
+COMMON_DEPEND=" |
62 |
+ dev-lang/perl |
63 |
+ virtual/libudev:= |
64 |
+ neigh? ( dev-libs/libnl:3 ) |
65 |
+ systemd? ( sys-apps/systemd:= ) |
66 |
+ valgrind? ( dev-util/valgrind ) |
67 |
+ python? ( ${PYTHON_DEPS} )" |
68 |
+DEPEND="${COMMON_DEPEND} |
69 |
+ python? ( |
70 |
+ $(python_gen_cond_dep ' |
71 |
+ dev-python/cython[${PYTHON_USEDEP}] |
72 |
+ ') |
73 |
+ )" |
74 |
+RDEPEND="${COMMON_DEPEND} |
75 |
+ !sys-fabric/infiniband-diags |
76 |
+ !sys-fabric/libibverbs |
77 |
+ !sys-fabric/librdmacm |
78 |
+ !sys-fabric/libibumad |
79 |
+ !sys-fabric/ibacm |
80 |
+ !sys-fabric/libibmad |
81 |
+ !sys-fabric/srptools |
82 |
+ !sys-fabric/infinipath-psm |
83 |
+ !sys-fabric/libcxgb3 |
84 |
+ !sys-fabric/libcxgb4 |
85 |
+ !sys-fabric/libmthca |
86 |
+ !sys-fabric/libmlx4 |
87 |
+ !sys-fabric/libmlx5 |
88 |
+ !sys-fabric/libocrdma |
89 |
+ !sys-fabric/libnes" |
90 |
+# python is required unconditionally at build-time |
91 |
+BDEPEND=" |
92 |
+ ${PYTHON_DEPS} |
93 |
+ virtual/pkgconfig" |
94 |
+ |
95 |
+PATCHES=( "${FILESDIR}"/${PN}-39.0-RDMA_BuildType.patch ) |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local mycmakeargs=( |
99 |
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc |
100 |
+ -DCMAKE_INSTALL_RUNDIR=/run |
101 |
+ -DCMAKE_INSTALL_SHAREDSTATEDIR="${EPREFIX}"/var/lib |
102 |
+ -DCMAKE_INSTALL_UDEV_RULESDIR="${EPREFIX}$(get_udevdir)"/rules.d |
103 |
+ -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" |
104 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex !systemd)" |
105 |
+ -DENABLE_VALGRIND="$(usex valgrind)" |
106 |
+ -DENABLE_RESOLVE_NEIGH="$(usex neigh)" |
107 |
+ -DENABLE_STATIC="$(usex static-libs)" |
108 |
+ -DNO_PYVERBS="$(usex !python)" |
109 |
+ -DNO_MAN_PAGES=1 |
110 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
111 |
+ ) |
112 |
+ cmake_src_configure |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ cmake_src_install |
117 |
+ |
118 |
+ udev_dorules "${ED}"/etc/udev/rules.d/70-persistent-ipoib.rules |
119 |
+ rm -r "${ED}"/etc/{udev,init.d} || die |
120 |
+ |
121 |
+ if use neigh; then |
122 |
+ newinitd "${FILESDIR}"/ibacm.init ibacm |
123 |
+ newinitd "${FILESDIR}"/iwpmd.init iwpmd |
124 |
+ fi |
125 |
+ |
126 |
+ newinitd "${FILESDIR}"/srpd.init srpd |
127 |
+ |
128 |
+ use python && python_optimize |
129 |
+} |
130 |
+ |
131 |
+pkg_postinst() { |
132 |
+ udev_reload |
133 |
+} |
134 |
+ |
135 |
+pkg_postrm() { |
136 |
+ udev_reload |
137 |
+} |