Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/files/, sys-cluster/ceph/
Date: Tue, 10 Jul 2018 20:52:02
Message-Id: 1531255888.7d3bd77eca37425b9147acbb2edb705a6fcf99a4.chutzpah@gentoo
1 commit: 7d3bd77eca37425b9147acbb2edb705a6fcf99a4
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 10 20:51:28 2018 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 10 20:51:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d3bd77e
7
8 sys-cluster/ceph: Add patch to remove -Werror (bug 660486)
9
10 Closes: https://bugs.gentoo.org/660486
11 Package-Manager: Portage-2.3.41, Repoman-2.3.9
12
13 sys-cluster/ceph/ceph-12.2.5.ebuild | 3 +-
14 .../ceph/files/ceph-12.2.5-boost-sonames.patch | 165 +++++++++++++++++++++
15 sys-cluster/ceph/files/ceph-12.2.5-no-werror.patch | 55 +++++++
16 3 files changed, 222 insertions(+), 1 deletion(-)
17
18 diff --git a/sys-cluster/ceph/ceph-12.2.5.ebuild b/sys-cluster/ceph/ceph-12.2.5.ebuild
19 index c7805109ba2..000712b8e6f 100644
20 --- a/sys-cluster/ceph/ceph-12.2.5.ebuild
21 +++ b/sys-cluster/ceph/ceph-12.2.5.ebuild
22 @@ -128,6 +128,7 @@ PATCHES=(
23 "${FILESDIR}/ceph-12.2.4-boost-build-none-options.patch"
24 "${FILESDIR}/ceph-12.2.4-cflags.patch"
25 "${FILESDIR}/ceph-12.2.4-rocksdb-cflags.patch"
26 + "${FILESDIR}/ceph-12.2.5-no-werror.patch"
27 )
28
29 check-reqs_export_vars() {
30 @@ -163,7 +164,7 @@ src_prepare() {
31 cmake-utils_src_prepare
32
33 if use system-boost; then
34 - eapply "${FILESDIR}/ceph-12.2.4-boost-sonames.patch"
35 + eapply "${FILESDIR}/ceph-12.2.5-boost-sonames.patch"
36 fi
37
38 # remove tests that need root access
39
40 diff --git a/sys-cluster/ceph/files/ceph-12.2.5-boost-sonames.patch b/sys-cluster/ceph/files/ceph-12.2.5-boost-sonames.patch
41 new file mode 100644
42 index 00000000000..57482b3f27c
43 --- /dev/null
44 +++ b/sys-cluster/ceph/files/ceph-12.2.5-boost-sonames.patch
45 @@ -0,0 +1,165 @@
46 +diff --git a/CMakeLists.txt b/CMakeLists.txt
47 +index aa90ba65da..ea65dd4209 100644
48 +--- a/CMakeLists.txt
49 ++++ b/CMakeLists.txt
50 +@@ -567,7 +567,7 @@ set(BOOST_COMPONENTS
51 + set(BOOST_HEADER_COMPONENTS container)
52 +
53 + if(WITH_MGR)
54 +- list(APPEND BOOST_COMPONENTS python)
55 ++ list(APPEND BOOST_COMPONENTS python-${EPYTHON_VERSION})
56 + endif()
57 + if(WITH_BOOST_CONTEXT)
58 + list(APPEND BOOST_COMPONENTS context coroutine)
59 +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
60 +index 7aa8a4392e..111f669f2e 100644
61 +--- a/src/CMakeLists.txt
62 ++++ b/src/CMakeLists.txt
63 +@@ -622,13 +622,13 @@ set(ceph_common_objs
64 + $<TARGET_OBJECTS:crush_objs>)
65 + set(ceph_common_deps
66 + json_spirit erasure_code rt ${LIB_RESOLV}
67 +- Boost::thread
68 +- Boost::system
69 +- Boost::regex
70 +- Boost::random
71 +- Boost::program_options
72 +- Boost::date_time
73 +- Boost::iostreams
74 ++ boost_thread
75 ++ boost_system
76 ++ boost_regex
77 ++ boost_random
78 ++ boost_program_options
79 ++ boost_date_time
80 ++ boost_iostreams
81 + ${BLKID_LIBRARIES}
82 + ${Backtrace_LIBRARIES}
83 + ${BLKIN_LIBRARIES}
84 +@@ -712,7 +712,7 @@ if (WITH_MGR)
85 + $<TARGET_OBJECTS:heap_profiler_objs>)
86 + target_include_directories(ceph-mgr PRIVATE "${PYTHON_INCLUDE_DIRS}")
87 + target_link_libraries(ceph-mgr osdc client global-static common
88 +- Boost::python ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS})
89 ++ boost_python-${EPYTHON_VERSION} ${PYTHON_LIBRARIES} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS})
90 + install(TARGETS ceph-mgr DESTINATION bin)
91 + endif (WITH_MGR)
92 +
93 +@@ -885,7 +885,7 @@ set(ceph_mds_srcs
94 + ceph_mds.cc)
95 + add_executable(ceph-mds ${ceph_mds_srcs})
96 + target_link_libraries(ceph-mds mds ${CMAKE_DL_LIBS} global-static common
97 +- Boost::thread)
98 ++ boost_thread)
99 + install(TARGETS ceph-mds DESTINATION bin)
100 +
101 + add_subdirectory(erasure-code)
102 +diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
103 +index f3999e3b01..0ce7fca1ba 100644
104 +--- a/src/test/CMakeLists.txt
105 ++++ b/src/test/CMakeLists.txt
106 +@@ -148,7 +148,7 @@ add_executable(ceph_omapbench
107 + )
108 + target_link_libraries(ceph_omapbench
109 + librados
110 +- Boost::program_options
111 ++ boost_program_options
112 + global
113 + ${BLKID_LIBRARIES}
114 + ${CMAKE_DL_LIBS}
115 +@@ -202,7 +202,7 @@ if(${WITH_RADOSGW})
116 + cls_rgw_client
117 + cls_user_client
118 + cls_lock_client
119 +- Boost::regex
120 ++ boost_regex
121 + ${BLKID_LIBRARIES}
122 + ${CURL_LIBRARIES}
123 + ${EXPAT_LIBRARIES}
124 +@@ -232,7 +232,7 @@ if(${WITH_RADOSGW})
125 + cls_rgw_client
126 + cls_user_client
127 + cls_lock_client
128 +- Boost::regex
129 ++ boost_regex
130 + ${BLKID_LIBRARIES}
131 + ${CURL_LIBRARIES}
132 + ${EXPAT_LIBRARIES}
133 +diff --git a/src/test/bench/CMakeLists.txt b/src/test/bench/CMakeLists.txt
134 +index 9fba701e05..da3cbcfe96 100644
135 +--- a/src/test/bench/CMakeLists.txt
136 ++++ b/src/test/bench/CMakeLists.txt
137 +@@ -8,7 +8,7 @@ set(smalliobench_srcs
138 + add_executable(ceph_smalliobench
139 + ${smalliobench_srcs}
140 + )
141 +-target_link_libraries(ceph_smalliobench librados Boost::program_options global
142 ++target_link_libraries(ceph_smalliobench librados boost_program_options global
143 + ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
144 +
145 + # ceph_smalliobenchrbd
146 +@@ -27,7 +27,7 @@ if(WITH_RBD)
147 + librados
148 + os
149 + global
150 +- Boost::program_options
151 ++ boost_program_options
152 + ${BLKID_LIBRARIES}
153 + ${CMAKE_DL_LIBS}
154 + )
155 +@@ -50,7 +50,7 @@ set(ceph_smalliobenchfs_srcs
156 + add_executable(ceph_smalliobenchfs
157 + ${ceph_smalliobenchfs_srcs}
158 + )
159 +-target_link_libraries(ceph_smalliobenchfs librados Boost::program_options os global
160 ++target_link_libraries(ceph_smalliobenchfs librados boost_program_options os global
161 + ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
162 +
163 + # ceph_smalliobenchdumb
164 +@@ -63,7 +63,7 @@ set(smalliobenchdumb_srcs
165 + add_executable(ceph_smalliobenchdumb
166 + ${smalliobenchdumb_srcs}
167 + )
168 +-target_link_libraries(ceph_smalliobenchdumb librados Boost::program_options os global
169 ++target_link_libraries(ceph_smalliobenchdumb librados boost_program_options os global
170 + ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
171 +
172 + # ceph_tpbench
173 +@@ -73,7 +73,7 @@ set(tpbench_srcs
174 + add_executable(ceph_tpbench
175 + ${tpbench_srcs}
176 + )
177 +-target_link_libraries(ceph_tpbench librados Boost::program_options global
178 ++target_link_libraries(ceph_tpbench librados boost_program_options global
179 + ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
180 +
181 + install(TARGETS
182 +diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
183 +index 9f72fa3b48..665c977606 100644
184 +--- a/src/tools/CMakeLists.txt
185 ++++ b/src/tools/CMakeLists.txt
186 +@@ -24,13 +24,13 @@ target_link_libraries(ceph_radosacl librados global)
187 + install(TARGETS ceph_radosacl DESTINATION bin)
188 +
189 + add_executable(ceph-osdomap-tool ceph_osdomap_tool.cc)
190 +-target_link_libraries(ceph-osdomap-tool os global Boost::program_options)
191 ++target_link_libraries(ceph-osdomap-tool os global boost_program_options)
192 + install(TARGETS ceph-osdomap-tool DESTINATION bin)
193 +
194 + add_executable(ceph-monstore-tool
195 + ceph_monstore_tool.cc
196 + ../mgr/mgr_commands.cc)
197 +-target_link_libraries(ceph-monstore-tool os global Boost::program_options)
198 ++target_link_libraries(ceph-monstore-tool os global boost_program_options)
199 + install(TARGETS ceph-monstore-tool DESTINATION bin)
200 + install(PROGRAMS
201 + ceph-monstore-update-crush.sh
202 +@@ -41,7 +41,7 @@ add_executable(ceph-objectstore-tool
203 + ceph_objectstore_tool.cc
204 + rebuild_mondb.cc
205 + RadosDump.cc)
206 +-target_link_libraries(ceph-objectstore-tool osd os global Boost::program_options ${CMAKE_DL_LIBS})
207 ++target_link_libraries(ceph-objectstore-tool osd os global boost_program_options ${CMAKE_DL_LIBS})
208 + if(WITH_FUSE)
209 + target_link_libraries(ceph-objectstore-tool fuse)
210 + endif(WITH_FUSE)
211
212 diff --git a/sys-cluster/ceph/files/ceph-12.2.5-no-werror.patch b/sys-cluster/ceph/files/ceph-12.2.5-no-werror.patch
213 new file mode 100644
214 index 00000000000..dd24e7819fe
215 --- /dev/null
216 +++ b/sys-cluster/ceph/files/ceph-12.2.5-no-werror.patch
217 @@ -0,0 +1,55 @@
218 +diff -ur ceph-12.2.5.orig/src/rapidjson/CMakeLists.txt ceph-12.2.5/src/rapidjson/CMakeLists.txt
219 +--- ceph-12.2.5.orig/src/rapidjson/CMakeLists.txt 2018-07-09 11:18:09.188115751 -0700
220 ++++ ceph-12.2.5/src/rapidjson/CMakeLists.txt 2018-07-09 11:36:56.848639110 -0700
221 +@@ -50,7 +50,7 @@
222 + endif(CCACHE_FOUND)
223 +
224 + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
225 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Werror")
226 ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra")
227 + if (RAPIDJSON_BUILD_CXX11)
228 + if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0")
229 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
230 +@@ -73,7 +73,7 @@
231 + endif()
232 + endif()
233 + elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
234 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Werror -Wno-missing-field-initializers")
235 ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wall -Wextra -Wno-missing-field-initializers")
236 + if (RAPIDJSON_BUILD_CXX11)
237 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
238 + endif()
239 +diff -ur ceph-12.2.5.orig/src/rocksdb/CMakeLists.txt ceph-12.2.5/src/rocksdb/CMakeLists.txt
240 +--- ceph-12.2.5.orig/src/rocksdb/CMakeLists.txt 2018-07-09 11:18:09.219115543 -0700
241 ++++ ceph-12.2.5/src/rocksdb/CMakeLists.txt 2018-07-09 11:34:58.843411195 -0700
242 +@@ -174,15 +174,6 @@
243 + PROPERTIES COMPILE_FLAGS "-msse4.2")
244 + endif()
245 +
246 +-option(FAIL_ON_WARNINGS "Treat compile warnings as errors" ON)
247 +-if(FAIL_ON_WARNINGS)
248 +- if(MSVC)
249 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
250 +- else() # assume GCC
251 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
252 +- endif()
253 +-endif()
254 +-
255 + option(WITH_ASAN "build with ASAN" OFF)
256 + if(WITH_ASAN)
257 + add_definitions(-DROCKSDB_TSAN_RUN)
258 +diff -ur ceph-12.2.5.orig/src/rocksdb/Makefile ceph-12.2.5/src/rocksdb/Makefile
259 +--- ceph-12.2.5.orig/src/rocksdb/Makefile 2018-03-11 18:58:51.000000000 -0700
260 ++++ ceph-12.2.5/src/rocksdb/Makefile 2018-07-09 11:35:53.847049123 -0700
261 +@@ -243,11 +243,6 @@
262 + WARNING_FLAGS = -W -Wextra -Wall -Wsign-compare -Wshadow \
263 + -Wno-unused-parameter
264 +
265 +-ifndef DISABLE_WARNING_AS_ERROR
266 +- WARNING_FLAGS += -Werror
267 +-endif
268 +-
269 +-
270 + ifdef LUA_PATH
271 +
272 + ifndef LUA_INCLUDE