1 |
commit: 76aaea7d5b986c9f5832993016404047422f50f9 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 13 15:08:34 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 13 15:11:42 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76aaea7d |
7 |
|
8 |
sys-cluster/rdma-core: Version bump (v25.0) |
9 |
|
10 |
- make pandoc optional (otherwise 25.0 fails to build) |
11 |
- point correct SHAREDSTATEDIR |
12 |
|
13 |
Closes: https://bugs.gentoo.org/694158 |
14 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
15 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
16 |
|
17 |
sys-cluster/rdma-core/Manifest | 1 + |
18 |
sys-cluster/rdma-core/files/optional_pandoc.patch | 54 ++++++++++++++++++++++ |
19 |
sys-cluster/rdma-core/rdma-core-24.0.ebuild | 1 + |
20 |
...rdma-core-24.0.ebuild => rdma-core-25.0.ebuild} | 3 ++ |
21 |
sys-cluster/rdma-core/rdma-core-9999.ebuild | 1 + |
22 |
5 files changed, 60 insertions(+) |
23 |
|
24 |
diff --git a/sys-cluster/rdma-core/Manifest b/sys-cluster/rdma-core/Manifest |
25 |
index 195599ddb95..923dc163552 100644 |
26 |
--- a/sys-cluster/rdma-core/Manifest |
27 |
+++ b/sys-cluster/rdma-core/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST rdma-core-24.0.tar.gz 1219485 BLAKE2B 400076305ca634a14d8f46df3477f9e3e753b95840237a217cfffe1a78e93ee90994e628f2a0693bde588ce15965df0014acb55bc92c36e3c45011cc69e9898a SHA512 0ef2b2b4250a1738adec964911a286f60e2310472c943dac1be45c70974a8bd1f32ee96013bff9e492132403af810aee1350d404a87ae7671731f7a5bd80c655 |
30 |
+DIST rdma-core-25.0.tar.gz 1494005 BLAKE2B 406926ae57ae4914a77c82025906270bbc45632ed1e0ecb44b1662d797066bf27275c8b4c4bee40795880bdb4ed06f8f9d3714cfffc64132c00395328ee0527f SHA512 b2c6eaf16f89fb913e35b0eb602f60e8bf45979673597c34006ed78c2e671cf1e50b1cc0752740dc474a58fc94eb0c3f66175183e6b903605ff1512469ceef38 |
31 |
|
32 |
diff --git a/sys-cluster/rdma-core/files/optional_pandoc.patch b/sys-cluster/rdma-core/files/optional_pandoc.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..4ed0e3a63ef |
35 |
--- /dev/null |
36 |
+++ b/sys-cluster/rdma-core/files/optional_pandoc.patch |
37 |
@@ -0,0 +1,54 @@ |
38 |
+The master "CMakeLists.txt" listed "pandoc" as an optional dependency, |
39 |
+but subsequent "make install" fails if "pandoc" is missing. |
40 |
+This patch makes "pandoc" really optional. |
41 |
+diff -ru rdma-core-25.0.orig/CMakeLists.txt rdma-core-25.0/CMakeLists.txt |
42 |
+--- a/CMakeLists.txt 2019-07-26 02:17:21.000000000 +0800 |
43 |
++++ b/CMakeLists.txt 2019-07-31 00:08:41.485085990 +0800 |
44 |
+@@ -602,11 +602,17 @@ |
45 |
+ add_subdirectory(kernel-headers) |
46 |
+ # Libraries |
47 |
+ add_subdirectory(libibumad) |
48 |
++if (PANDOC_FOUND) |
49 |
+ add_subdirectory(libibumad/man) |
50 |
++endif() |
51 |
+ add_subdirectory(libibverbs) |
52 |
++if (PANDOC_FOUND) |
53 |
+ add_subdirectory(libibverbs/man) |
54 |
++endif() |
55 |
+ add_subdirectory(librdmacm) |
56 |
++if (PANDOC_FOUND) |
57 |
+ add_subdirectory(librdmacm/man) |
58 |
++endif() |
59 |
+ |
60 |
+ # Providers |
61 |
+ if (HAVE_COHERENT_DMA) |
62 |
+@@ -614,13 +620,19 @@ |
63 |
+ add_subdirectory(providers/cxgb3) # NO SPARSE |
64 |
+ add_subdirectory(providers/cxgb4) # NO SPARSE |
65 |
+ add_subdirectory(providers/efa) |
66 |
++if (PANDOC_FOUND) |
67 |
+ add_subdirectory(providers/efa/man) |
68 |
++endif() |
69 |
+ add_subdirectory(providers/hns) |
70 |
+ add_subdirectory(providers/i40iw) # NO SPARSE |
71 |
+ add_subdirectory(providers/mlx4) |
72 |
++if (PANDOC_FOUND) |
73 |
+ add_subdirectory(providers/mlx4/man) |
74 |
++endif() |
75 |
+ add_subdirectory(providers/mlx5) |
76 |
++if (PANDOC_FOUND) |
77 |
+ add_subdirectory(providers/mlx5/man) |
78 |
++endif() |
79 |
+ add_subdirectory(providers/mthca) |
80 |
+ add_subdirectory(providers/nes) # NO SPARSE |
81 |
+ add_subdirectory(providers/ocrdma) |
82 |
+@@ -639,7 +651,9 @@ |
83 |
+ add_subdirectory(libibnetdisc/man) |
84 |
+ add_subdirectory(infiniband-diags) |
85 |
+ add_subdirectory(infiniband-diags/scripts) |
86 |
++if (PANDOC_FOUND) |
87 |
+ add_subdirectory(infiniband-diags/man) |
88 |
++endif() |
89 |
+ |
90 |
+ if (CYTHON_EXECUTABLE) |
91 |
+ add_subdirectory(pyverbs) |
92 |
|
93 |
diff --git a/sys-cluster/rdma-core/rdma-core-24.0.ebuild b/sys-cluster/rdma-core/rdma-core-24.0.ebuild |
94 |
index fb16737ff02..f50ad59a5b0 100644 |
95 |
--- a/sys-cluster/rdma-core/rdma-core-24.0.ebuild |
96 |
+++ b/sys-cluster/rdma-core/rdma-core-24.0.ebuild |
97 |
@@ -61,6 +61,7 @@ src_configure() { |
98 |
local mycmakeargs=( |
99 |
-DCMAKE_INSTALL_SYSCONFDIR=/etc |
100 |
-DCMAKE_INSTALL_FULL_RUNDIR=/run |
101 |
+ -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib |
102 |
-DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d |
103 |
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" |
104 |
-DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes |
105 |
|
106 |
diff --git a/sys-cluster/rdma-core/rdma-core-24.0.ebuild b/sys-cluster/rdma-core/rdma-core-25.0.ebuild |
107 |
similarity index 96% |
108 |
copy from sys-cluster/rdma-core/rdma-core-24.0.ebuild |
109 |
copy to sys-cluster/rdma-core/rdma-core-25.0.ebuild |
110 |
index fb16737ff02..c2d102716c9 100644 |
111 |
--- a/sys-cluster/rdma-core/rdma-core-24.0.ebuild |
112 |
+++ b/sys-cluster/rdma-core/rdma-core-25.0.ebuild |
113 |
@@ -52,6 +52,8 @@ RDEPEND="${COMMON_DEPEND} |
114 |
|
115 |
BDEPEND="virtual/pkgconfig" |
116 |
|
117 |
+PATCHES=( "${FILESDIR}"/optional_pandoc.patch ) |
118 |
+ |
119 |
pkg_setup() { |
120 |
python-single-r1_pkg_setup |
121 |
|
122 |
@@ -61,6 +63,7 @@ src_configure() { |
123 |
local mycmakeargs=( |
124 |
-DCMAKE_INSTALL_SYSCONFDIR=/etc |
125 |
-DCMAKE_INSTALL_FULL_RUNDIR=/run |
126 |
+ -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib |
127 |
-DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d |
128 |
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" |
129 |
-DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes |
130 |
|
131 |
diff --git a/sys-cluster/rdma-core/rdma-core-9999.ebuild b/sys-cluster/rdma-core/rdma-core-9999.ebuild |
132 |
index e96e6d79908..69def0d58b5 100644 |
133 |
--- a/sys-cluster/rdma-core/rdma-core-9999.ebuild |
134 |
+++ b/sys-cluster/rdma-core/rdma-core-9999.ebuild |
135 |
@@ -61,6 +61,7 @@ src_configure() { |
136 |
local mycmakeargs=( |
137 |
-DCMAKE_INSTALL_SYSCONFDIR=/etc |
138 |
-DCMAKE_INSTALL_FULL_RUNDIR=/run |
139 |
+ -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib |
140 |
-DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d |
141 |
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" |
142 |
-DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes |