Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mongodb/
Date: Sun, 19 Sep 2021 07:12:57
Message-Id: 1632035560.b61ebf04af42312a1b9ff746e5f2599d1398a826.dilfridge@gentoo
1 commit: b61ebf04af42312a1b9ff746e5f2599d1398a826
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 19 07:12:11 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 19 07:12:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b61ebf04
7
8 dev-db/mongodb: Remove old
9
10 Bug: https://bugs.gentoo.org/768339
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Andreas K. Huettel <dilfridge <AT> gentoo.org>
13
14 dev-db/mongodb/Manifest | 2 -
15 dev-db/mongodb/mongodb-4.2.11-r1.ebuild | 174 -------------------------------
16 dev-db/mongodb/mongodb-4.2.15-r1.ebuild | 176 --------------------------------
17 3 files changed, 352 deletions(-)
18
19 diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
20 index 976ba6d44da..687b1b9815e 100644
21 --- a/dev-db/mongodb/Manifest
22 +++ b/dev-db/mongodb/Manifest
23 @@ -1,5 +1,3 @@
24 -DIST mongodb-src-r4.2.11.tar.gz 61829417 BLAKE2B cc989d6ea87a48b7402d119dda4678a966cf96cec0da5d00d792faf06ecb6fbe4bc426069e1a72548410adcbd26162038ec7201e76036ac599af5f53029c0e66 SHA512 ff398a9d3a012e0eb860c2139967e163b8b0ac045c1c47f2c0c5584ba7c60a1403bb423ce8c6e8b3900fdcad1164a84c6da79276f897fd640366e3f80cf54316
25 -DIST mongodb-src-r4.2.15.tar.gz 62187847 BLAKE2B eb9cbf52b5aeb95d3c6c6bd14da9731a85a24e2c3560163be999bddff1cd1ac90f9cf07b4c3fe22e35ffcdd174a6b2720a801fa179f574ff33150d1a4660ef9e SHA512 ee46a2dfb7ae23ad38da49bf126a2bc7932bded8f01d34516ad575d2aed5d6233c5ad620b2a4424a98afb9e80e26acf40c66982cdd0637c13f0f7aaae8b746a0
26 DIST mongodb-src-r4.4.1.tar.gz 49644743 BLAKE2B 7d84998c69b9b55164ebab04b49c38a4113a0f58d431612389ec37eb044fba1adf9284e9d4454bd40bb7a071fd042308a5cd350129d6d52480412cf6b868ec2b SHA512 16aa66995ea8cfe0cc47b96c1c5643a28ab47fc9f27bd93404cf572944ab30492df7c9255553f918b353cd7157a6ccde9ac6f58bfba322fb52c2d7409c6fb9b0
27 DIST mongodb-src-r4.4.4.tar.gz 49942905 BLAKE2B 8aa9813e87e216899b3c609b413ce6915d6ddf30faea3c0ecda2a14476fc6b08024614fa7b20e1703b5908759459e88e5e302539c27525c2359233743aa7dcda SHA512 a999528a8a6bf4bf0b8ff8f5169b1aadb3c4dab9c7d936c59d66f238b864fad6e8fb6a1b9ec27f395fca95152ee020f96a8c1cf8960a48de3ce5141f8dda7d88
28 DIST mongodb-src-r4.4.8.tar.gz 50492854 BLAKE2B 4776b17e88104879ea69468ff277b07dc317d936654bb26c69750e0aaf8f51bea73994e7fc4841228d8506db392e0454b5fd16257071b86a2e4ad34e90f33632 SHA512 9b0cd81c9c731255a6c079c040ed342a51a72e3ea72047d3ae959c0afde50b0cdb1fcfe7fcbea30c449a3618a09d213752277cee6eb9bc0a55915b9229543606
29
30 diff --git a/dev-db/mongodb/mongodb-4.2.11-r1.ebuild b/dev-db/mongodb/mongodb-4.2.11-r1.ebuild
31 deleted file mode 100644
32 index 40b5d5a7463..00000000000
33 --- a/dev-db/mongodb/mongodb-4.2.11-r1.ebuild
34 +++ /dev/null
35 @@ -1,174 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -PYTHON_COMPAT=( python3_{7..9} )
42 -
43 -SCONS_MIN_VERSION="2.5.0"
44 -CHECKREQS_DISK_BUILD="2400M"
45 -CHECKREQS_DISK_USR="512M"
46 -CHECKREQS_MEMORY="1024M"
47 -
48 -inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
49 -
50 -MY_P=${PN}-src-r${PV/_rc/-rc}
51 -
52 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
53 -HOMEPAGE="https://www.mongodb.com"
54 -SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
55 -
56 -LICENSE="Apache-2.0 SSPL-1"
57 -SLOT="0"
58 -KEYWORDS="amd64 ~arm64"
59 -IUSE="debug kerberos lto ssl test +tools"
60 -RESTRICT="!test? ( test )"
61 -
62 -RDEPEND="acct-group/mongodb
63 - acct-user/mongodb
64 - >=app-arch/snappy-1.1.3:=
65 - >=dev-cpp/yaml-cpp-0.6.2:=
66 - >=dev-libs/boost-1.70:=[threads(+)]
67 - >=dev-libs/libpcre-8.42[cxx]
68 - app-arch/zstd:=
69 - dev-libs/snowball-stemmer:=
70 - net-libs/libpcap
71 - >=sys-libs/zlib-1.2.11:=
72 - kerberos? ( dev-libs/cyrus-sasl[kerberos] )
73 - ssl? (
74 - >=dev-libs/openssl-1.0.1g:0=
75 - )"
76 -DEPEND="${RDEPEND}
77 - ${PYTHON_DEPS}
78 - $(python_gen_any_dep '
79 - test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
80 - >=dev-util/scons-2.5.0[${PYTHON_USEDEP}]
81 - dev-python/cheetah3[${PYTHON_USEDEP}]
82 - dev-python/psutil[${PYTHON_USEDEP}]
83 - dev-python/pyyaml[${PYTHON_USEDEP}]
84 - ')
85 - sys-libs/ncurses:0=
86 - sys-libs/readline:0=
87 - debug? ( dev-util/valgrind )"
88 -PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
89 -
90 -PATCHES=(
91 - "${FILESDIR}/${PN}-4.2.0-fix-scons.patch"
92 - "${FILESDIR}/${PN}-4.2.10-no-compass.patch"
93 -)
94 -
95 -S="${WORKDIR}/${MY_P}"
96 -
97 -python_check_deps() {
98 - if use test; then
99 - has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
100 - has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
101 - fi
102 -
103 - has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
104 - has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
105 - has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
106 - has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
107 -}
108 -
109 -pkg_pretend() {
110 - if [[ -n ${REPLACING_VERSIONS} ]]; then
111 - if ver_test "$REPLACING_VERSIONS" -lt 4.0; then
112 - ewarn "To upgrade from a version earlier than the 4.0-series, you must"
113 - ewarn "successively upgrade major releases until you have upgraded"
114 - ewarn "to 4.0-series. Then upgrade to 4.2 series."
115 - else
116 - ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading."
117 - fi
118 - fi
119 -}
120 -
121 -src_prepare() {
122 - default
123 -
124 - # remove bundled libs
125 - rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die
126 -
127 - # remove compass
128 - rm -r src/mongo/installer/compass || die
129 -}
130 -
131 -src_configure() {
132 - # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
133 - # --use-system-icu fails tests
134 - # --use-system-tcmalloc is strongly NOT recommended:
135 - scons_opts=(
136 - CC="$(tc-getCC)"
137 - CXX="$(tc-getCXX)"
138 -
139 - --disable-warnings-as-errors
140 - --use-system-boost
141 - --use-system-pcre
142 - --use-system-snappy
143 - --use-system-stemmer
144 - --use-system-yaml
145 - --use-system-zlib
146 - --use-system-zstd
147 - )
148 -
149 - use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
150 - use debug && scons_opts+=( --dbg=on )
151 - use kerberos && scons_opts+=( --use-sasl-client )
152 - use lto && scons_opts+=( --lto=on )
153 - use ssl && scons_opts+=( --ssl )
154 -
155 - # respect mongoDB upstream's basic recommendations
156 - # see bug #536688 and #526114
157 - if ! use debug; then
158 - filter-flags '-m*'
159 - filter-flags '-O?'
160 - fi
161 -
162 - default
163 -}
164 -
165 -src_compile() {
166 - escons "${scons_opts[@]}" core tools
167 -}
168 -
169 -# FEATURES="test -usersandbox" emerge dev-db/mongodb
170 -src_test() {
171 - ewarn "Tests may hang with FEATURES=usersandbox"
172 - "${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
173 -}
174 -
175 -src_install() {
176 - escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
177 -
178 - doman debian/mongo*.1
179 - dodoc README docs/building.md
180 -
181 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
182 - newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
183 - newinitd "${FILESDIR}/mongos.initd-r3" mongos
184 - newconfd "${FILESDIR}/mongos.confd-r3" mongos
185 -
186 - insinto /etc
187 - newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
188 - newins "${FILESDIR}/mongos.conf-r2" mongos.conf
189 -
190 - systemd_dounit "${FILESDIR}/${PN}.service"
191 -
192 - insinto /etc/logrotate.d/
193 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
194 -
195 - # see bug #526114
196 - pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
197 -
198 - local x
199 - for x in /var/{lib,log}/${PN}; do
200 - diropts -m0750 -o mongodb -g mongodb
201 - keepdir "${x}"
202 - done
203 -}
204 -
205 -pkg_postinst() {
206 - ewarn "Make sure to read the release notes and follow the upgrade process:"
207 - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
208 - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
209 -}
210
211 diff --git a/dev-db/mongodb/mongodb-4.2.15-r1.ebuild b/dev-db/mongodb/mongodb-4.2.15-r1.ebuild
212 deleted file mode 100644
213 index 3002335b9c7..00000000000
214 --- a/dev-db/mongodb/mongodb-4.2.15-r1.ebuild
215 +++ /dev/null
216 @@ -1,176 +0,0 @@
217 -# Copyright 1999-2021 Gentoo Authors
218 -# Distributed under the terms of the GNU General Public License v2
219 -
220 -EAPI=7
221 -
222 -PYTHON_COMPAT=( python3_{7..9} )
223 -
224 -SCONS_MIN_VERSION="2.5.0"
225 -CHECKREQS_DISK_BUILD="2400M"
226 -CHECKREQS_DISK_USR="512M"
227 -CHECKREQS_MEMORY="1024M"
228 -
229 -inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs
230 -
231 -MY_P=${PN}-src-r${PV/_rc/-rc}
232 -
233 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
234 -HOMEPAGE="https://www.mongodb.com"
235 -SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
236 -
237 -LICENSE="Apache-2.0 SSPL-1"
238 -SLOT="0"
239 -KEYWORDS="~amd64 ~arm64"
240 -IUSE="debug kerberos lto ssl test +tools"
241 -RESTRICT="!test? ( test )"
242 -
243 -RDEPEND="acct-group/mongodb
244 - acct-user/mongodb
245 - >=app-arch/snappy-1.1.3:=
246 - >=dev-cpp/yaml-cpp-0.6.2:=
247 - >=dev-libs/boost-1.70:=[threads(+)]
248 - >=dev-libs/libpcre-8.42[cxx]
249 - app-arch/zstd:=
250 - dev-libs/snowball-stemmer:=
251 - net-libs/libpcap
252 - >=sys-libs/zlib-1.2.11:=
253 - kerberos? ( dev-libs/cyrus-sasl[kerberos] )
254 - ssl? (
255 - >=dev-libs/openssl-1.0.1g:0=
256 - )"
257 -DEPEND="${RDEPEND}
258 - ${PYTHON_DEPS}
259 - $(python_gen_any_dep '
260 - test? ( dev-python/pymongo[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] )
261 - >=dev-util/scons-2.5.0[${PYTHON_USEDEP}]
262 - dev-python/cheetah3[${PYTHON_USEDEP}]
263 - dev-python/psutil[${PYTHON_USEDEP}]
264 - dev-python/pyyaml[${PYTHON_USEDEP}]
265 - ')
266 - sys-libs/ncurses:0=
267 - sys-libs/readline:0=
268 - debug? ( dev-util/valgrind )"
269 -PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
270 -
271 -PATCHES=(
272 - "${FILESDIR}/${PN}-4.2.0-fix-scons.patch"
273 - "${FILESDIR}/${PN}-4.4.1-gcc11.patch"
274 - "${FILESDIR}/${PN}-4.2.15-no-compass.patch"
275 - "${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
276 -)
277 -
278 -S="${WORKDIR}/${MY_P}"
279 -
280 -python_check_deps() {
281 - if use test; then
282 - has_version "dev-python/pymongo[${PYTHON_USEDEP}]" || return 1
283 - has_version "dev-python/requests[${PYTHON_USEDEP}]" || return 1
284 - fi
285 -
286 - has_version ">=dev-util/scons-2.5.0[${PYTHON_USEDEP}]" &&
287 - has_version "dev-python/cheetah3[${PYTHON_USEDEP}]" &&
288 - has_version "dev-python/psutil[${PYTHON_USEDEP}]" &&
289 - has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
290 -}
291 -
292 -pkg_pretend() {
293 - if [[ -n ${REPLACING_VERSIONS} ]]; then
294 - if ver_test "$REPLACING_VERSIONS" -lt 4.0; then
295 - ewarn "To upgrade from a version earlier than the 4.0-series, you must"
296 - ewarn "successively upgrade major releases until you have upgraded"
297 - ewarn "to 4.0-series. Then upgrade to 4.2 series."
298 - else
299 - ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading."
300 - fi
301 - fi
302 -}
303 -
304 -src_prepare() {
305 - default
306 -
307 - # remove bundled libs
308 - rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die
309 -
310 - # remove compass
311 - rm -r src/mongo/installer/compass || die
312 -}
313 -
314 -src_configure() {
315 - # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
316 - # --use-system-icu fails tests
317 - # --use-system-tcmalloc is strongly NOT recommended:
318 - scons_opts=(
319 - CC="$(tc-getCC)"
320 - CXX="$(tc-getCXX)"
321 -
322 - --disable-warnings-as-errors
323 - --use-system-boost
324 - --use-system-pcre
325 - --use-system-snappy
326 - --use-system-stemmer
327 - --use-system-yaml
328 - --use-system-zlib
329 - --use-system-zstd
330 - )
331 -
332 - use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300
333 - use debug && scons_opts+=( --dbg=on )
334 - use kerberos && scons_opts+=( --use-sasl-client )
335 - use lto && scons_opts+=( --lto=on )
336 - use ssl && scons_opts+=( --ssl )
337 -
338 - # respect mongoDB upstream's basic recommendations
339 - # see bug #536688 and #526114
340 - if ! use debug; then
341 - filter-flags '-m*'
342 - filter-flags '-O?'
343 - fi
344 -
345 - default
346 -}
347 -
348 -src_compile() {
349 - escons "${scons_opts[@]}" core tools
350 -}
351 -
352 -# FEATURES="test -usersandbox" emerge dev-db/mongodb
353 -src_test() {
354 - ewarn "Tests may hang with FEATURES=usersandbox"
355 - "${EPYTHON}" ./buildscripts/resmoke.py run --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed with ${EPYTHON}"
356 -}
357 -
358 -src_install() {
359 - escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
360 -
361 - doman debian/mongo*.1
362 - dodoc README docs/building.md
363 -
364 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
365 - newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
366 - newinitd "${FILESDIR}/mongos.initd-r3" mongos
367 - newconfd "${FILESDIR}/mongos.confd-r3" mongos
368 -
369 - insinto /etc
370 - newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
371 - newins "${FILESDIR}/mongos.conf-r2" mongos.conf
372 -
373 - systemd_dounit "${FILESDIR}/${PN}.service"
374 -
375 - insinto /etc/logrotate.d/
376 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
377 -
378 - # see bug #526114
379 - pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
380 -
381 - local x
382 - for x in /var/{lib,log}/${PN}; do
383 - diropts -m0750 -o mongodb -g mongodb
384 - keepdir "${x}"
385 - done
386 -}
387 -
388 -pkg_postinst() {
389 - ewarn "Make sure to read the release notes and follow the upgrade process:"
390 - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
391 - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
392 -}