1 |
commit: 1fc10bd005747daa1917f0c4d9394ae0ef1a70c9 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 22 18:35:21 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 22 20:29:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fc10bd0 |
7 |
|
8 |
sys-cluster/ceph: 17.2.3 more gcc12 fixes (bug #866039), bug #865509 |
9 |
|
10 |
- Fix system-boost boost dependency (bug #865509) |
11 |
- Remove some documentation from patches to reduce the size of the files |
12 |
directory |
13 |
- Drop old snappy dep since it's no longer in the tree |
14 |
|
15 |
Bug: https://bugs.gentoo.org/865509 |
16 |
Closes: https://bugs.gentoo.org/866039 |
17 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
18 |
|
19 |
.../{ceph-17.2.3.ebuild => ceph-17.2.3-r1.ebuild} | 4 +-- |
20 |
.../ceph/files/ceph-17.2.0-cyclic-deps.patch | 29 ------------------- |
21 |
sys-cluster/ceph/files/ceph-17.2.1-python310.patch | 23 --------------- |
22 |
sys-cluster/ceph/files/ceph-17.2.3-gcc12.patch | 33 +++++++++++++++++----- |
23 |
4 files changed, 28 insertions(+), 61 deletions(-) |
24 |
|
25 |
diff --git a/sys-cluster/ceph/ceph-17.2.3.ebuild b/sys-cluster/ceph/ceph-17.2.3-r1.ebuild |
26 |
similarity index 99% |
27 |
rename from sys-cluster/ceph/ceph-17.2.3.ebuild |
28 |
rename to sys-cluster/ceph/ceph-17.2.3-r1.ebuild |
29 |
index 49a8857b5c24..737e960de9d5 100644 |
30 |
--- a/sys-cluster/ceph/ceph-17.2.3.ebuild |
31 |
+++ b/sys-cluster/ceph/ceph-17.2.3-r1.ebuild |
32 |
@@ -41,7 +41,7 @@ DEPEND=" |
33 |
app-arch/bzip2:= |
34 |
app-arch/lz4:= |
35 |
app-arch/snappy:= |
36 |
- || ( >=app-arch/snappy-1.1.9-r1 <app-arch/snappy-1.1.9 ) |
37 |
+ >=app-arch/snappy-1.1.9-r1 |
38 |
app-arch/zstd:= |
39 |
app-shells/bash:0 |
40 |
app-misc/jq:= |
41 |
@@ -99,7 +99,7 @@ DEPEND=" |
42 |
rdma? ( sys-cluster/rdma-core:= ) |
43 |
spdk? ( dev-util/cunit ) |
44 |
sqlite? ( dev-db/sqlite:= ) |
45 |
- system-boost? ( >=dev-libs/boost-1.72:=[threads(+),context,python,${PYTHON_USEDEP}] ) |
46 |
+ system-boost? ( >=dev-libs/boost-1.72:=[threads(+),context,python,${PYTHON_USEDEP},zlib] ) |
47 |
uring? ( sys-libs/liburing:= ) |
48 |
xfs? ( sys-fs/xfsprogs:= ) |
49 |
zbd? ( sys-block/libzbd:= ) |
50 |
|
51 |
diff --git a/sys-cluster/ceph/files/ceph-17.2.0-cyclic-deps.patch b/sys-cluster/ceph/files/ceph-17.2.0-cyclic-deps.patch |
52 |
index f80edddd8de7..e9177cc02764 100644 |
53 |
--- a/sys-cluster/ceph/files/ceph-17.2.0-cyclic-deps.patch |
54 |
+++ b/sys-cluster/ceph/files/ceph-17.2.0-cyclic-deps.patch |
55 |
@@ -1,32 +1,3 @@ |
56 |
-From 78edb6a91788133334ceeeda0c95529df5f40da8 Mon Sep 17 00:00:00 2001 |
57 |
-From: "Kaleb S. KEITHLEY" <kkeithle@××××××.com> |
58 |
-Date: Mon, 14 Feb 2022 07:42:08 -0500 |
59 |
-Subject: [PATCH] rgw: cmake configure error on fedora-37/rawhide |
60 |
- |
61 |
-see |
62 |
-https://kojipkgs.fedoraproject.org//work/tasks/6624/82706624/build.log, |
63 |
-excerpted below |
64 |
- |
65 |
-... |
66 |
-CMake Error: The inter-target dependency graph contains the following |
67 |
-strongly connected component (cycle): "rgw_common" of type |
68 |
-STATIC_LIBRARY depends on "dbstore" (weak) depends on "sqlite_db" (weak) |
69 |
-"dbstore" of type SHARED_LIBRARY depends on "rgw_common" (weak) depends |
70 |
-on "sqlite_db" (weak) "sqlite_db" of type SHARED_LIBRARY depends on |
71 |
-"rgw_common" (weak) depends on "dbstore" (weak) At least one of these |
72 |
-targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only |
73 |
-among static libraries. CMake Generate step failed. Build files cannot |
74 |
-be regenerated correctly. |
75 |
-... |
76 |
- |
77 |
-https://tracker.ceph.com/issues/54266 |
78 |
- |
79 |
-Signed-off-by: Kaleb S. KEITHLEY <kkeithle@××××××.com> |
80 |
---- |
81 |
- src/rgw/store/dbstore/CMakeLists.txt | 2 +- |
82 |
- src/rgw/store/dbstore/sqlite/CMakeLists.txt | 2 +- |
83 |
- 2 files changed, 2 insertions(+), 2 deletions(-) |
84 |
- |
85 |
diff --git a/src/rgw/store/dbstore/CMakeLists.txt b/src/rgw/store/dbstore/CMakeLists.txt |
86 |
index 143ede3c094c9..18e032b73f54f 100644 |
87 |
--- a/src/rgw/store/dbstore/CMakeLists.txt |
88 |
|
89 |
diff --git a/sys-cluster/ceph/files/ceph-17.2.1-python310.patch b/sys-cluster/ceph/files/ceph-17.2.1-python310.patch |
90 |
index 767cd2922a26..959e98a8067a 100644 |
91 |
--- a/sys-cluster/ceph/files/ceph-17.2.1-python310.patch |
92 |
+++ b/sys-cluster/ceph/files/ceph-17.2.1-python310.patch |
93 |
@@ -1,26 +1,3 @@ |
94 |
-From 389054888f2aa782f73564125ec7a1ef0212d536 Mon Sep 17 00:00:00 2001 |
95 |
-From: Pete Zaitcev <zaitcev@××××××.com> |
96 |
-Date: Tue, 14 Dec 2021 23:04:34 -0600 |
97 |
-Subject: [PATCH] mgr: Define PY_SSIZE_T_CLEAN ahead of every Python.h |
98 |
- |
99 |
-Building on Fedora 35 with Python 3.10 makes vstart to loop |
100 |
-forever, throwing the following message: |
101 |
- |
102 |
- Error EINVAL: SystemError: PY_SSIZE_T_CLEAN macro must be |
103 |
- defined for '#' formats |
104 |
- |
105 |
-I followed the hint in the following document: |
106 |
- https://docs.python.org/3/c-api/intro.html |
107 |
- |
108 |
-It says "recommended" to always define PY_SSIZE_T_CLEAN, |
109 |
-but as you can see it is actually required in our case. |
110 |
- |
111 |
-Fixes: https://tracker.ceph.com/issues/53441 |
112 |
-Signed-off-by: Pete Zaitcev <zaitcev@××××××.com> |
113 |
---- |
114 |
- src/mgr/CMakeLists.txt | 1 + |
115 |
- 1 file changed, 1 insertion(+) |
116 |
- |
117 |
diff --git a/src/mgr/CMakeLists.txt b/src/mgr/CMakeLists.txt |
118 |
index 55147af4fc6ba..8f39e41ac0694 100644 |
119 |
--- a/src/mgr/CMakeLists.txt |
120 |
|
121 |
diff --git a/sys-cluster/ceph/files/ceph-17.2.3-gcc12.patch b/sys-cluster/ceph/files/ceph-17.2.3-gcc12.patch |
122 |
index e5e77b4116f6..356da385fedb 100644 |
123 |
--- a/sys-cluster/ceph/files/ceph-17.2.3-gcc12.patch |
124 |
+++ b/sys-cluster/ceph/files/ceph-17.2.3-gcc12.patch |
125 |
@@ -1,12 +1,31 @@ |
126 |
diff --git a/src/include/buffer.h b/src/include/buffer.h |
127 |
-index 0c89367dd3b..98fcd7c3e08 100644 |
128 |
+index 7c8f90e9fb5d3..71cb01935000b 100644 |
129 |
--- a/src/include/buffer.h |
130 |
+++ b/src/include/buffer.h |
131 |
-@@ -62,6 +62,7 @@ |
132 |
- #endif |
133 |
- |
134 |
- #include "inline_memory.h" |
135 |
+@@ -41,6 +41,7 @@ |
136 |
+ #include <iosfwd> |
137 |
+ #include <iomanip> |
138 |
+ #include <list> |
139 |
+#include <memory> |
140 |
+ #include <vector> |
141 |
+ #include <string> |
142 |
+ #if __cplusplus >= 201703L |
143 |
+ |
144 |
+diff --git a/src/test/encoding.cc b/src/test/encoding.cc |
145 |
+index 6d252fae18b71..f18901cbd27d9 100644 |
146 |
+--- a/src/test/encoding.cc |
147 |
++++ b/src/test/encoding.cc |
148 |
+@@ -334,11 +334,11 @@ void lame_decoder(int which) { |
149 |
+ } |
150 |
|
151 |
- #define CEPH_BUFFER_API |
152 |
- |
153 |
+ TEST(EncodingException, Macros) { |
154 |
+- for (unsigned i = 0; i < sizeof(expected_what)/sizeof(expected_what[0]); i++) { |
155 |
++ for (unsigned i = 0; i < std::size(expected_what); i++) { |
156 |
+ try { |
157 |
+ lame_decoder(i); |
158 |
+ } catch (const exception& e) { |
159 |
+- ASSERT_EQ(string(expected_what[i]), string(e.what())); |
160 |
++ ASSERT_NE(string(e.what()).find(expected_what[i]), string::npos); |
161 |
+ } |
162 |
+ } |
163 |
+ } |