1 |
commit: c2802ba9b7b11cc1add9556e6a858d576fd1e861 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Dec 28 12:42:57 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 12:42:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2802ba9 |
7 |
|
8 |
sys-fabric/libcxgb3: Port to EAPI 6 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706596 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
12 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
.../libcxgb3/files/libcxgb3-1.3.1-fno-common.patch | 41 ++++++++++++++++++++++ |
16 |
sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild | 5 +-- |
17 |
2 files changed, 44 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/sys-fabric/libcxgb3/files/libcxgb3-1.3.1-fno-common.patch b/sys-fabric/libcxgb3/files/libcxgb3-1.3.1-fno-common.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..e23ffa8682c |
22 |
--- /dev/null |
23 |
+++ b/sys-fabric/libcxgb3/files/libcxgb3-1.3.1-fno-common.patch |
24 |
@@ -0,0 +1,41 @@ |
25 |
+--- a/src/cxio_wr.h |
26 |
++++ b/src/cxio_wr.h |
27 |
+@@ -638,9 +638,9 @@ static inline unsigned t3_cq_depth(struct t3_cq *cq) |
28 |
+ return (1UL<<cq->size_log2); |
29 |
+ } |
30 |
+ |
31 |
+-unsigned long iwch_page_size; |
32 |
+-unsigned long iwch_page_shift; |
33 |
+-unsigned long iwch_page_mask; |
34 |
++extern unsigned long iwch_page_size; |
35 |
++extern unsigned long iwch_page_shift; |
36 |
++extern unsigned long iwch_page_mask; |
37 |
+ |
38 |
+ #define PAGE_ALIGN(x) (((x) + iwch_page_mask) & ~iwch_page_mask) |
39 |
+ |
40 |
+--- a/src/iwch.c |
41 |
++++ b/src/iwch.c |
42 |
+@@ -63,6 +63,10 @@ |
43 |
+ .device = PCI_DEVICE_ID_CHELSIO_##d, \ |
44 |
+ .type = CHELSIO_##t } |
45 |
+ |
46 |
++extern unsigned long iwch_page_size; |
47 |
++extern unsigned long iwch_page_mask; |
48 |
++extern unsigned long iwch_page_shift; |
49 |
++ |
50 |
+ struct { |
51 |
+ unsigned vendor; |
52 |
+ unsigned device; |
53 |
+--- a/src/verbs.c |
54 |
++++ b/src/verbs.c |
55 |
+@@ -45,6 +45,10 @@ |
56 |
+ #include "iwch.h" |
57 |
+ #include "iwch-abi.h" |
58 |
+ |
59 |
++unsigned long iwch_page_size; |
60 |
++unsigned long iwch_page_shift; |
61 |
++unsigned long iwch_page_mask; |
62 |
++ |
63 |
+ int iwch_query_device(struct ibv_context *context, struct ibv_device_attr *attr) |
64 |
+ { |
65 |
+ struct ibv_query_device cmd; |
66 |
|
67 |
diff --git a/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild b/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild |
68 |
index 2d5bc5c6608..20ffdc32534 100644 |
69 |
--- a/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild |
70 |
+++ b/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild |
71 |
@@ -1,7 +1,7 @@ |
72 |
# Copyright 1999-2020 Gentoo Authors |
73 |
# Distributed under the terms of the GNU General Public License v2 |
74 |
|
75 |
-EAPI="5" |
76 |
+EAPI=6 |
77 |
|
78 |
OFED_VER="3.12" |
79 |
OFED_RC="1" |
80 |
@@ -12,12 +12,13 @@ inherit openib |
81 |
|
82 |
DESCRIPTION="OpenIB - driver for Chelsio T3-based iWARP (RDMA over IP/ethernet)" |
83 |
KEYWORDS="amd64 ~x86 ~amd64-linux" |
84 |
-IUSE="" |
85 |
|
86 |
DEPEND="sys-fabric/libibverbs:${SLOT}" |
87 |
RDEPEND="${DEPEND}" |
88 |
block_other_ofed_versions |
89 |
|
90 |
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
91 |
+ |
92 |
src_configure() { |
93 |
econf --disable-static |
94 |
} |