Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mongodb/files/, dev-db/mongodb/
Date: Fri, 05 Jan 2018 13:07:21
Message-Id: 1515157626.c17e73664b1be99b76b1f7e4c76068c43bca2846.ultrabug@gentoo
1 commit: c17e73664b1be99b76b1f7e4c76068c43bca2846
2 Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 5 13:05:50 2018 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 13:07:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17e7366
7
8 dev-db/mongodb: drop obsolete 2.6 series
9
10 dev-db/mongodb/Manifest | 2 -
11 .../files/mongodb-2.4-fix-v8-pythonpath.patch | 11 --
12 .../files/mongodb-2.6.10-fix-boost-1.57.patch | 13 --
13 dev-db/mongodb/files/mongodb-2.6.2-fix-scons.patch | 35 ----
14 dev-db/mongodb/mongodb-2.6.12.ebuild | 183 ---------------------
15 5 files changed, 244 deletions(-)
16
17 diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
18 index 9de795e1fd7..9d09d246826 100644
19 --- a/dev-db/mongodb/Manifest
20 +++ b/dev-db/mongodb/Manifest
21 @@ -1,5 +1,3 @@
22 -DIST 20140409-mms-monitoring-agent.zip 40122 BLAKE2B 265121024a973ca02634bf17fc680b2369db0681e365f79690f77fd0aec976d60a374062554c3a72af75911684ce7aa8537f72a3f4d321a65815fb1f7c1c89af SHA512 5290a813c407251b5e4def813ce6fe7e09d6c3a1907fd409e326b15b07aed39f7db3a28710ecdaffe2771136c9433253c5d1857c823844a4b75dd38f1d15eefd
23 -DIST mongodb-src-r2.6.12.tar.gz 16462842 BLAKE2B 881b71958abab312e21b2b3d07fc84a2d9b141999df9a01ca80c7b726f5d87ed95dd964d8a9daf9f37d5c9e81067d1ac2453152654d207e7c4d31ef08bf0a712 SHA512 ceed10f2da50ca390f56cc79d39ea4db7a1ef6764e37dae61c3f3f664708be72de09443bbf94f8e58479e4f2923ff2ab9eee45652e82271b3bad591e03ef7657
24 DIST mongodb-src-r3.0.14.tar.gz 28093922 BLAKE2B c36f1868aaf8d149550d9e8fcfa3598b917426f896cdb9e1d12fb047345011b06975719d24db3ffadadf6e1f6007a3e32768eaaa9da9ec8f340c7a49c9239b45 SHA512 477fab29ca0ad2a0f24b895e30dc4770af8d6a1a57f3c10a02a989b58dd22510db554da0418129d4e81958342ad169696eed4b86bf5aa73916c7cec879db1152
25 DIST mongodb-src-r3.0.15.tar.gz 28096395 BLAKE2B 123194723e7f1057bc5497ce9bf51f8dd2d65495f6e2c84adde22e3b41cace9c0bce8134a7b85fa1c8e89ce953a3df780eae013d61bba44bbf9339c1e2e478af SHA512 21cec235a691dad7d1d2c625ef04a851b59223b8f2c0bdc979f2a0b8249ed46b4e62753fd595afa7b74bce13851d1f6547e54d8ffad8ba1f56e36db664f5b27e
26 DIST mongodb-src-r3.2.12.tar.gz 29178424 BLAKE2B 212a2aaac62460812874bb4d924f9cedcb591699367a72ace620e9635a6511048efa3f1202a51e4b58ca8e5f8879fbe4638284c5d3899290bff6b1ca9be565a3 SHA512 0c4ddaaddf15d97957faff46dc4a3f79c545cacc8a56dbe1d063778117ba9b645323b0cb7fd054fae805d092b8372c411a82e3370244b7939bda20a65fdb951c
27
28 diff --git a/dev-db/mongodb/files/mongodb-2.4-fix-v8-pythonpath.patch b/dev-db/mongodb/files/mongodb-2.4-fix-v8-pythonpath.patch
29 deleted file mode 100644
30 index 19efad67683..00000000000
31 --- a/dev-db/mongodb/files/mongodb-2.4-fix-v8-pythonpath.patch
32 +++ /dev/null
33 @@ -1,11 +0,0 @@
34 ---- a/src/third_party/v8/SConscript 2014-05-26 11:00:37.725508098 +0200
35 -+++ b/src/third_party/v8/SConscript 2014-05-26 11:01:13.265029083 +0200
36 -@@ -29,7 +29,7 @@
37 - import sys
38 - from os.path import join, dirname, abspath
39 - root_dir = dirname(File('SConscript').rfile().abspath)
40 --sys.path.append(join(root_dir, 'tools'))
41 -+sys.path.insert(0, join(root_dir, 'tools'))
42 - import js2c
43 -
44 - Import("env windows linux darwin solaris freebsd debugBuild")
45
46 diff --git a/dev-db/mongodb/files/mongodb-2.6.10-fix-boost-1.57.patch b/dev-db/mongodb/files/mongodb-2.6.10-fix-boost-1.57.patch
47 deleted file mode 100644
48 index 5f289c07883..00000000000
49 --- a/dev-db/mongodb/files/mongodb-2.6.10-fix-boost-1.57.patch
50 +++ /dev/null
51 @@ -1,13 +0,0 @@
52 -diff -up mongodb-src-r2.6.7/src/mongo/shell/linenoise_utf8.h\~ mongodb-src-r2.6.7/src/mongo/shell/linenoise_utf8.h
53 ---- mongodb-src-r2.6.7/src/mongo/shell/linenoise_utf8.h~ 2015-01-13 18:12:06.000000000 +0100
54 -+++ mongodb-src-r2.6.7/src/mongo/shell/linenoise_utf8.h 2015-01-28 22:22:50.538934558 +0100
55 -@@ -17,6 +17,7 @@
56 -
57 - #include <boost/smart_ptr/scoped_array.hpp>
58 - #include <string.h>
59 -+#include <algorithm>
60 -
61 - namespace linenoise_utf8 {
62 -
63 -
64 -Diff finished. Wed Jan 28 22:24:47 2015
65
66 diff --git a/dev-db/mongodb/files/mongodb-2.6.2-fix-scons.patch b/dev-db/mongodb/files/mongodb-2.6.2-fix-scons.patch
67 deleted file mode 100644
68 index 76feba7bfe7..00000000000
69 --- a/dev-db/mongodb/files/mongodb-2.6.2-fix-scons.patch
70 +++ /dev/null
71 @@ -1,35 +0,0 @@
72 ---- a/SConstruct 2014-06-16 19:32:46.274507258 +0200
73 -+++ b/SConstruct 2014-06-16 19:34:04.763586829 +0200
74 -@@ -813,7 +813,6 @@
75 - # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
76 - env.Append( CCFLAGS=["-fPIC",
77 - "-fno-strict-aliasing",
78 -- "-ggdb",
79 - "-pthread",
80 - "-Wall",
81 - "-Wsign-compare",
82 -@@ -821,13 +820,13 @@
83 - "-Winvalid-pch"] )
84 - # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
85 - if linux or darwin:
86 -- env.Append( CCFLAGS=["-pipe"] )
87 - if not has_option("disable-warnings-as-errors"):
88 - env.Append( CCFLAGS=["-Werror"] )
89 -
90 - env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
91 -- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
92 - env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
93 -+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
94 -+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
95 -
96 - # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
97 - # startup.
98 -@@ -844,7 +843,7 @@
99 - if not darwin:
100 - env.Append( LINKFLAGS=["-rdynamic"] )
101 -
102 -- env.Append( LIBS=[] )
103 -+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] )
104 -
105 - #make scons colorgcc friendly
106 - for key in ('HOME', 'TERM'):
107
108 diff --git a/dev-db/mongodb/mongodb-2.6.12.ebuild b/dev-db/mongodb/mongodb-2.6.12.ebuild
109 deleted file mode 100644
110 index e17d7986b3c..00000000000
111 --- a/dev-db/mongodb/mongodb-2.6.12.ebuild
112 +++ /dev/null
113 @@ -1,183 +0,0 @@
114 -# Copyright 1999-2016 Gentoo Foundation
115 -# Distributed under the terms of the GNU General Public License v2
116 -
117 -EAPI=5
118 -SCONS_MIN_VERSION="1.2.0"
119 -CHECKREQS_DISK_BUILD="2400M"
120 -CHECKREQS_DISK_USR="512M"
121 -CHECKREQS_MEMORY="1024M"
122 -
123 -inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs
124 -
125 -MY_P=${PN}-src-r${PV/_rc/-rc}
126 -
127 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
128 -HOMEPAGE="http://www.mongodb.org"
129 -SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz
130 - mms-agent? ( https://dev.gentoo.org/~ultrabug/20140409-mms-monitoring-agent.zip )"
131 -
132 -LICENSE="AGPL-3 Apache-2.0"
133 -SLOT="0"
134 -KEYWORDS="amd64 x86"
135 -IUSE="debug kerberos mms-agent ssl static-libs"
136 -
137 -PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
138 -RDEPEND="
139 - app-arch/snappy
140 - >=dev-cpp/yaml-cpp-0.5.1
141 - >=dev-libs/boost-1.50[threads(+)]
142 - >=dev-libs/libpcre-8.37[cxx]
143 - dev-libs/snowball-stemmer
144 - dev-util/google-perftools[-minimal]
145 - net-libs/libpcap
146 - ssl? ( >=dev-libs/openssl-1.0.1g )"
147 -DEPEND="${RDEPEND}
148 - sys-libs/ncurses
149 - sys-libs/readline
150 - kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
151 -
152 -S=${WORKDIR}/${MY_P}
153 -
154 -pkg_setup() {
155 - enewgroup mongodb
156 - enewuser mongodb -1 -1 /var/lib/${PN} mongodb
157 -
158 - scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
159 - scons_opts+=" --disable-warnings-as-errors"
160 - scons_opts+=" --use-system-boost"
161 - scons_opts+=" --use-system-pcre"
162 - scons_opts+=" --use-system-snappy"
163 - scons_opts+=" --use-system-stemmer"
164 - scons_opts+=" --use-system-tcmalloc"
165 - scons_opts+=" --use-system-yaml"
166 - scons_opts+=" --usev8"
167 -
168 - if use debug; then
169 - scons_opts+=" --dbg=on"
170 - fi
171 -
172 - if use prefix; then
173 - scons_opts+=" --cpppath=${EPREFIX}/usr/include"
174 - scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
175 - fi
176 -
177 - if use kerberos; then
178 - scons_opts+=" --use-sasl-client"
179 - fi
180 -
181 - if use ssl; then
182 - scons_opts+=" --ssl"
183 - fi
184 -}
185 -
186 -src_prepare() {
187 - epatch "${FILESDIR}/${PN}-2.6.2-fix-scons.patch"
188 - epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
189 - epatch "${FILESDIR}/${PN}-2.6.10-fix-boost-1.57.patch"
190 -
191 - # fix yaml-cpp detection
192 - sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct || die
193 -
194 - # bug #462606
195 - sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
196 -
197 - # bug #482576
198 - sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
199 -}
200 -
201 -src_configure() {
202 - # filter some problematic flags
203 - filter-flags "-march=*"
204 - filter-flags -O?
205 -}
206 -
207 -src_compile() {
208 - escons ${scons_opts} all
209 -}
210 -
211 -src_install() {
212 - escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
213 -
214 - use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
215 -
216 - for x in /var/{lib,log}/${PN}; do
217 - keepdir "${x}"
218 - fowners mongodb:mongodb "${x}"
219 - done
220 -
221 - doman debian/mongo*.1
222 - dodoc README docs/building.md
223 -
224 - newinitd "${FILESDIR}/${PN}.initd-r2" ${PN}
225 - newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
226 - newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s}
227 - newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s}
228 -
229 - insinto /etc
230 - newins "${FILESDIR}/${PN}.conf-r2" ${PN}.conf
231 - newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
232 -
233 - systemd_dounit "${FILESDIR}/${PN}.service"
234 -
235 - insinto /etc/logrotate.d/
236 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
237 -
238 - # see bug #526114
239 - pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
240 -
241 - if use mms-agent; then
242 - local MY_PN="mms-agent"
243 - local MY_D="/opt/${MY_PN}"
244 -
245 - insinto /etc
246 - newins "${WORKDIR}/${MY_PN}/settings.py" mms-agent.conf
247 - rm "${WORKDIR}/${MY_PN}/settings.py"
248 -
249 - insinto ${MY_D}
250 - doins "${WORKDIR}/${MY_PN}/"*
251 - dosym /etc/mms-agent.conf ${MY_D}/settings.py
252 -
253 - fowners -R mongodb:mongodb ${MY_D}
254 - newinitd "${FILESDIR}/${MY_PN}.initd-r2" ${MY_PN}
255 - fi
256 -}
257 -
258 -pkg_preinst() {
259 - # wrt bug #461466
260 - if [[ "$(get_libdir)" == "lib64" ]]; then
261 - rmdir "${ED}"/usr/lib/ &>/dev/null
262 - fi
263 -}
264 -
265 -src_test() {
266 - escons ${scons_opts} test
267 - "${S}"/test --dbpath=unittest || die
268 -}
269 -
270 -pkg_postinst() {
271 - local v
272 - for v in ${REPLACING_VERSIONS}; do
273 - if ! version_is_at_least 2.6 ${v}; then
274 - ewarn "!! IMPORTANT !!"
275 - ewarn " "
276 - ewarn "${PN} configuration files have changed !"
277 - ewarn " "
278 - ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf"
279 - ewarn " http://docs.mongodb.org/manual/reference/configuration-options/"
280 - ewarn " "
281 - ewarn "Make sure you also follow the upgrading process :"
282 - ewarn " http://docs.mongodb.org/master/release-notes/2.6-upgrade/"
283 - ewarn " "
284 - if use mms-agent; then
285 - ewarn "MMS Agent configuration file has been moved to :"
286 - ewarn " /etc/mms-agent.conf"
287 - fi
288 - break
289 - else
290 - if use mms-agent; then
291 - elog "Edit your MMS Agent configuration file :"
292 - elog " /etc/mms-agent.conf"
293 - fi
294 - fi
295 - done
296 -}