Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mongo-tools/, dev-db/mongodb/
Date: Thu, 02 Aug 2018 07:31:14
Message-Id: 1533195053.56192c875c9139eee2bd13e85928efe499d5c01f.ultrabug@gentoo
1 commit: 56192c875c9139eee2bd13e85928efe499d5c01f
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Thu Jul 19 10:46:43 2018 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 2 07:30:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56192c87
7
8 dev-db/mongodb: bump to 3.6.6
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 app-admin/mongo-tools/mongo-tools-3.4.16.ebuild | 18 +++---
13 app-admin/mongo-tools/mongo-tools-3.6.6.ebuild | 20 +++----
14 dev-db/mongodb/Manifest | 1 +
15 dev-db/mongodb/mongodb-3.4.16.ebuild | 51 +++++++---------
16 ...{mongodb-3.4.16.ebuild => mongodb-3.6.6.ebuild} | 69 +++++++++++-----------
17 5 files changed, 75 insertions(+), 84 deletions(-)
18
19 diff --git a/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild
20 index 509a9eb6a0e..5efc22cf1e8 100644
21 --- a/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild
22 +++ b/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild
23 @@ -27,32 +27,32 @@ S=${WORKDIR}/${MY_P}
24 src_prepare() {
25 default
26
27 - # do not substitute version because it uses git
28 - sed -i '/^sed/,+3d' build.sh || die
29 - sed -i '/^mv/d' build.sh || die
30 + # 1) ensure we use bash wrt #582906
31 + # 2) do not substitute version because it uses git
32 + sed -e 's@/bin/sh@/bin/bash@g' \
33 + -e '/^sed/,+3d' \
34 + -e '/^mv/d' \
35 + -i build.sh || die
36
37 # build pie to avoid text relocations wrt #582854
38 # skip on ppc64 wrt #610984
39 if ! use ppc64; then
40 sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
41 fi
42 -
43 - # ensure we use bash wrt #582906
44 - sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
45 }
46
47 src_compile() {
48 local myconf=()
49
50 if use sasl; then
51 - myconf+=(sasl)
52 + myconf+=(sasl)
53 fi
54
55 if use ssl; then
56 - myconf+=(ssl)
57 + myconf+=(ssl)
58 fi
59
60 - ./build.sh ${myconf[@]} || die "build failed"
61 + ./build.sh "${myconf[@]}" || die "build failed"
62 }
63
64 src_install() {
65
66 diff --git a/app-admin/mongo-tools/mongo-tools-3.6.6.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.6.ebuild
67 index 3589981cbd8..47f22a423a8 100644
68 --- a/app-admin/mongo-tools/mongo-tools-3.6.6.ebuild
69 +++ b/app-admin/mongo-tools/mongo-tools-3.6.6.ebuild
70 @@ -27,33 +27,33 @@ S=${WORKDIR}/${MY_P}
71 src_prepare() {
72 default
73
74 - # do not substitute version because it uses git
75 - sed -i '/^sed/,+3d' build.sh || die
76 - sed -i '/^stty/d' build.sh || die
77 - sed -i '/^mv/d' build.sh || die
78 + # 1) ensure we use bash wrt #582906
79 + # 2) do not substitute version because it uses git
80 + sed -e 's@/bin/sh@/bin/bash@g' \
81 + -e '/^sed/,+3d' \
82 + -e '/^stty/d' \
83 + -e '/^mv/d' \
84 + -i build.sh || die
85
86 # build pie to avoid text relocations wrt #582854
87 # skip on ppc64 wrt #610984
88 if ! use ppc64; then
89 sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
90 fi
91 -
92 - # ensure we use bash wrt #582906
93 - sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
94 }
95
96 src_compile() {
97 local myconf=()
98
99 if use sasl; then
100 - myconf+=(sasl)
101 + myconf+=(sasl)
102 fi
103
104 if use ssl; then
105 - myconf+=(ssl)
106 + myconf+=(ssl)
107 fi
108
109 - ./build.sh ${myconf[@]} || die "build failed"
110 + ./build.sh "${myconf[@]}" || die "build failed"
111 }
112
113 src_install() {
114
115 diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
116 index 08ba14fc001..b59b7af8535 100644
117 --- a/dev-db/mongodb/Manifest
118 +++ b/dev-db/mongodb/Manifest
119 @@ -10,4 +10,5 @@ DIST mongodb-src-r3.6.2.tar.gz 39999539 BLAKE2B 3e38917ebaf79b63bf054279fbb91a64
120 DIST mongodb-src-r3.6.3.tar.gz 40093607 BLAKE2B bb21bf0487661eec6140ade22526617b26b2499bd36e138d955d14a4b13a0685ec7308bccfc11ef17c785cd8a71c5b6cd9d154d461b8973410b03952b93953ec SHA512 94aa9955f99d5f6bbbe65dc3755583952525398308ca7cb9224b91d1fa403de5bb3abb63a651583815cbecaff58966b5cfe7334a36ef6583f73d8c213410ddbc
121 DIST mongodb-src-r3.6.4.tar.gz 40159916 BLAKE2B d3878d4e6bbf331de672768b2c92a4d71f758232170432d757f7e61849e6e1ef3b190e6a089101c9ea23c4ce23087c684c86fc6ea0f32f6fe052ce322d47e438 SHA512 02c2a697af9fdcbb16d19792be17d987e18c684418a63ed4750471c7ec22eb2eabf84e93cb1d298f67898b7e23687f668bb333c50ffc4e1b8adf8859f856ad95
122 DIST mongodb-src-r3.6.5.tar.gz 40310152 BLAKE2B 72110ae47b17ec8b1f60636a5ef8491b076e1cc019513fd872ea38b3bb8393efff4bddc7b795b3da711f258d21be9fa23e24d396a9429349c51ce05fff180a53 SHA512 6ecb3140ee4a7929fabe62d698f23e87cb5030cf31abefe7f82374f407fb87dc05f712089998f96bc40e23698836a86e7f3590892bde9d2d6f2c4bcc15cc3ebf
123 +DIST mongodb-src-r3.6.6.tar.gz 40391572 BLAKE2B 1cee1ad5431d2941cf2f0ee31290b2b5bc1c628f2cb5041d4d5a1427d342ecc3bbfb123e540581d81a1c5b018464abb9dcd1ead8df0de6a01a1462ca0c258e83 SHA512 cd91979ba29538c9e1645fe81e03ac56101b0fa8980ea2bdf89a4987ee8f7f6ddc97e2b27495500548a4424f155a1847471c7a5715beabf75ff894edf05c546b
124 DIST mongodb-src-r4.0.0.tar.gz 49138467 BLAKE2B 616e267c737729103de544d82db60489e7a32c5f9847ffd2d643a9025c18aa867718216f5de9f18a93fb2a7930c3dbe9ec3850eef09dbec084570328a99f2865 SHA512 11d00cdde606cfea268471cffccedb6d003e421aeffda2303aff4d4126c386aaec50a1de733d7a1d5fb6605403cf9f2218dae50374c7b5e8625fa80317804589
125
126 diff --git a/dev-db/mongodb/mongodb-3.4.16.ebuild b/dev-db/mongodb/mongodb-3.4.16.ebuild
127 index 3869755fe9f..309759cbd00 100644
128 --- a/dev-db/mongodb/mongodb-3.4.16.ebuild
129 +++ b/dev-db/mongodb/mongodb-3.4.16.ebuild
130 @@ -10,7 +10,7 @@ CHECKREQS_DISK_BUILD="2400M"
131 CHECKREQS_DISK_USR="512M"
132 CHECKREQS_MEMORY="1024M"
133
134 -inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator
135 +inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user
136
137 MY_P=${PN}-src-r${PV/_rc/-rc}
138
139 @@ -30,6 +30,7 @@ RDEPEND=">=app-arch/snappy-1.1.3
140 dev-libs/snowball-stemmer
141 net-libs/libpcap
142 >=sys-libs/zlib-1.2.8:=
143 + kerberos? ( dev-libs/cyrus-sasl[kerberos] )
144 mms-agent? ( app-admin/mms-agent )
145 ssl? (
146 !libressl? ( >=dev-libs/openssl-1.0.1g:0= )
147 @@ -37,11 +38,10 @@ RDEPEND=">=app-arch/snappy-1.1.3
148 )"
149 DEPEND="${RDEPEND}
150 ${PYTHON_DEPS}
151 - <dev-util/scons-3
152 - sys-libs/ncurses
153 - sys-libs/readline
154 + dev-util/scons
155 + sys-libs/ncurses:0=
156 + sys-libs/readline:0=
157 debug? ( dev-util/valgrind )
158 - kerberos? ( dev-libs/cyrus-sasl[kerberos] )
159 test? (
160 dev-python/pymongo[${PYTHON_USEDEP}]
161 dev-python/pyyaml[${PYTHON_USEDEP}]
162 @@ -57,10 +57,12 @@ PATCHES=(
163 S=${WORKDIR}/${MY_P}
164
165 pkg_pretend() {
166 - if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2 ]]; then
167 - ewarn "To upgrade from a version earlier than the 3.2-series, you must"
168 - ewarn "successively upgrade major releases until you have upgraded"
169 - ewarn "to 3.2-series. Then upgrade to 3.4 series."
170 + if [[ -n ${REPLACING_VERSIONS} ]]; then
171 + if ver_test "$REPLACING_VERSIONS" -lt 3.2; then
172 + ewarn "To upgrade from a version earlier than the 3.2-series, you must"
173 + ewarn "successively upgrade major releases until you have upgraded"
174 + ewarn "to 3.2-series. Then upgrade to 3.4 series."
175 + fi
176 fi
177 }
178
179 @@ -75,14 +77,13 @@ src_prepare() {
180 default
181
182 # remove bundled libs
183 - rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
184 + rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
185 }
186
187 src_configure() {
188 # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
189 # --use-system-icu fails tests
190 # --use-system-tcmalloc is strongly NOT recommended:
191 -
192 scons_opts=(
193 CC="$(tc-getCC)"
194 CXX="$(tc-getCXX)"
195 @@ -125,24 +126,17 @@ src_test() {
196 src_install() {
197 escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
198
199 - local x
200 - for x in /var/{lib,log}/${PN}; do
201 - keepdir "${x}"
202 - fowners mongodb:mongodb "${x}"
203 - fperms 0750 "${x}"
204 - done
205 -
206 doman debian/mongo*.1
207 dodoc README docs/building.md
208
209 newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
210 newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
211 - newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s}
212 - newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s}
213 + newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s}
214 + newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s}
215
216 insinto /etc
217 newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
218 - newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
219 + newins "${FILESDIR}/mongos.conf-r2" ${PN/db/s}.conf
220
221 systemd_dounit "${FILESDIR}/${PN}.service"
222
223 @@ -151,17 +145,16 @@ src_install() {
224
225 # see bug #526114
226 pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
227 -}
228
229 -pkg_preinst() {
230 - # wrt bug #461466
231 - if [[ "$(get_libdir)" == "lib64" ]]; then
232 - rmdir "${ED}"/usr/lib/ &>/dev/null
233 - fi
234 + local x
235 + for x in /var/{lib,log}/${PN}; do
236 + diropts -m0750 -o mongodb -g mongodb
237 + keepdir "${x}"
238 + done
239 }
240
241 pkg_postinst() {
242 ewarn "Make sure to read the release notes and follow the upgrade process:"
243 - ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/"
244 - ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures"
245 + ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
246 + ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
247 }
248
249 diff --git a/dev-db/mongodb/mongodb-3.4.16.ebuild b/dev-db/mongodb/mongodb-3.6.6.ebuild
250 similarity index 68%
251 copy from dev-db/mongodb/mongodb-3.4.16.ebuild
252 copy to dev-db/mongodb/mongodb-3.6.6.ebuild
253 index 3869755fe9f..8945e0387ba 100644
254 --- a/dev-db/mongodb/mongodb-3.4.16.ebuild
255 +++ b/dev-db/mongodb/mongodb-3.6.6.ebuild
256 @@ -5,12 +5,12 @@ EAPI=6
257
258 PYTHON_COMPAT=( python2_7 )
259
260 -SCONS_MIN_VERSION="2.3.0"
261 +SCONS_MIN_VERSION="2.5.0"
262 CHECKREQS_DISK_BUILD="2400M"
263 CHECKREQS_DISK_USR="512M"
264 CHECKREQS_MEMORY="1024M"
265
266 -inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator
267 +inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user
268
269 MY_P=${PN}-src-r${PV/_rc/-rc}
270
271 @@ -30,6 +30,7 @@ RDEPEND=">=app-arch/snappy-1.1.3
272 dev-libs/snowball-stemmer
273 net-libs/libpcap
274 >=sys-libs/zlib-1.2.8:=
275 + kerberos? ( dev-libs/cyrus-sasl[kerberos] )
276 mms-agent? ( app-admin/mms-agent )
277 ssl? (
278 !libressl? ( >=dev-libs/openssl-1.0.1g:0= )
279 @@ -37,30 +38,35 @@ RDEPEND=">=app-arch/snappy-1.1.3
280 )"
281 DEPEND="${RDEPEND}
282 ${PYTHON_DEPS}
283 - <dev-util/scons-3
284 - sys-libs/ncurses
285 - sys-libs/readline
286 + dev-python/cheetah[${PYTHON_USEDEP}]
287 + dev-python/pyyaml[${PYTHON_USEDEP}]
288 + virtual/python-typing[${PYTHON_USEDEP}]
289 + dev-util/scons
290 + sys-libs/ncurses:0=
291 + sys-libs/readline:0=
292 debug? ( dev-util/valgrind )
293 - kerberos? ( dev-libs/cyrus-sasl[kerberos] )
294 test? (
295 dev-python/pymongo[${PYTHON_USEDEP}]
296 - dev-python/pyyaml[${PYTHON_USEDEP}]
297 )"
298 PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
299
300 PATCHES=(
301 - "${FILESDIR}/${PN}-3.4.0-fix-scons.patch"
302 - "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch"
303 "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
304 + "${FILESDIR}/${PN}-3.6.1-fix-scons.patch"
305 + "${FILESDIR}/${PN}-3.6.1-no-compass.patch"
306 )
307
308 S=${WORKDIR}/${MY_P}
309
310 pkg_pretend() {
311 - if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2 ]]; then
312 - ewarn "To upgrade from a version earlier than the 3.2-series, you must"
313 - ewarn "successively upgrade major releases until you have upgraded"
314 - ewarn "to 3.2-series. Then upgrade to 3.4 series."
315 + if [[ -n ${REPLACING_VERSIONS} ]]; then
316 + if ver_test "$REPLACING_VERSIONS" -lt 3.4; then
317 + ewarn "To upgrade from a version earlier than the 3.4-series, you must"
318 + ewarn "successively upgrade major releases until you have upgraded"
319 + ewarn "to 3.4-series. Then upgrade to 3.6 series."
320 + else
321 + ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading."
322 + fi
323 fi
324 }
325
326 @@ -75,14 +81,16 @@ src_prepare() {
327 default
328
329 # remove bundled libs
330 - rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
331 + rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
332 +
333 + # remove compass
334 + rm -r src/mongo/installer/compass || die
335 }
336
337 src_configure() {
338 # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
339 # --use-system-icu fails tests
340 # --use-system-tcmalloc is strongly NOT recommended:
341 -
342 scons_opts=(
343 CC="$(tc-getCC)"
344 CXX="$(tc-getCXX)"
345 @@ -116,33 +124,23 @@ src_compile() {
346
347 # FEATURES="test -usersandbox" emerge dev-db/mongodb
348 src_test() {
349 - # this one test fails
350 - rm jstests/core/jsHeapLimit.js || die
351 -
352 "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
353 }
354
355 src_install() {
356 escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
357
358 - local x
359 - for x in /var/{lib,log}/${PN}; do
360 - keepdir "${x}"
361 - fowners mongodb:mongodb "${x}"
362 - fperms 0750 "${x}"
363 - done
364 -
365 doman debian/mongo*.1
366 dodoc README docs/building.md
367
368 newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
369 newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
370 - newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s}
371 - newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s}
372 + newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s}
373 + newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s}
374
375 insinto /etc
376 newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
377 - newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
378 + newins "${FILESDIR}/mongos.conf-r2" ${PN/db/s}.conf
379
380 systemd_dounit "${FILESDIR}/${PN}.service"
381
382 @@ -151,17 +149,16 @@ src_install() {
383
384 # see bug #526114
385 pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
386 -}
387
388 -pkg_preinst() {
389 - # wrt bug #461466
390 - if [[ "$(get_libdir)" == "lib64" ]]; then
391 - rmdir "${ED}"/usr/lib/ &>/dev/null
392 - fi
393 + local x
394 + for x in /var/{lib,log}/${PN}; do
395 + diropts -m0750 -o mongodb -g mongodb
396 + keepdir "${x}"
397 + done
398 }
399
400 pkg_postinst() {
401 ewarn "Make sure to read the release notes and follow the upgrade process:"
402 - ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/"
403 - ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures"
404 + ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
405 + ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
406 }