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/, dev-db/mongodb/files/
Date: Fri, 09 Aug 2019 07:28:17
Message-Id: 1565335683.3004e2571a7b08d15e41e149e15fd50f818b78df.ultrabug@gentoo
1 commit: 3004e2571a7b08d15e41e149e15fd50f818b78df
2 Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 9 07:15:47 2019 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 9 07:28:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3004e257
7
8 dev-db/mongodb: drop soon to EOL 3.4
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
12
13 dev-db/mongodb/Manifest | 1 -
14 dev-db/mongodb/files/mongodb-3.4.0-fix-scons.patch | 35 -----
15 .../files/mongodb-3.4.6-sysmacros-include.patch | 38 -----
16 dev-db/mongodb/mongodb-3.4.16.ebuild | 160 ---------------------
17 4 files changed, 234 deletions(-)
18
19 diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
20 index c161dde8b45..4d77bdc425a 100644
21 --- a/dev-db/mongodb/Manifest
22 +++ b/dev-db/mongodb/Manifest
23 @@ -1,4 +1,3 @@
24 -DIST mongodb-src-r3.4.16.tar.gz 40093657 BLAKE2B 7123444dbdd0b2ad3adfb3391e0177d33c1b6c6a4ea83027821c564faad047a736e52926bc15c58bef59c18282436e913fd3bc9963705e030da01356f83ea367 SHA512 e22eb1fe2a832fed8305200614988c5ecfd619cee44fe2263bffa151732c0e26584084e64065dbc65152be6e5c1767a538193770359bea92f3703c72239075db
25 DIST mongodb-src-r3.6.11.tar.gz 40581959 BLAKE2B 86244472ce8cff5180d8833a3415dd8a43fb5c76545034822989d5be90f45ed0ef1d43cb726be1e53241255491a7a516e6f90b1c1218ad10cf4ead4557311088 SHA512 e74af9f2f40ab0e2c20b135db3f0ce17825cfe5da912ff8edb2902226abb662a6cf87038ea57df73b06b4961ba71aa78fffd542153eb30c4ea2729d642b1091d
26 DIST mongodb-src-r3.6.12.tar.gz 40847074 BLAKE2B 45cc0ec4858fa4c17fb86449e6feaf11df32fd55f8a642031ce9be967127d608842cdc64e0a335af67ab3942a233d905b0778782e54dfe4c5d2ad58b828745ca SHA512 173112a05234e06ef4b6c26a092b285b4d12618b3f131fc2b73bd152c11ec42db11cb003566efefce0c98df87a520d0515a3bb1982ffdb27827cd032b1bb3f68
27 DIST mongodb-src-r3.6.13.tar.gz 40853787 BLAKE2B de9621de4f570d569df5cfe026ea5da24641c97f1ac9f3e58a0706b1d0bd74757390a075c95c6d3acd12f3c5c7bcbeb9302ac997248c54a5b7910b582debdc82 SHA512 eb84fb22ff871b5ec620d6fc29a6a66072211656e914630ad0f53e4fcad55aa40a76a0e68e68bdbe8ef061bea09ce6ad6aea5d8d865ea8a8fdca0ed829555fcd
28
29 diff --git a/dev-db/mongodb/files/mongodb-3.4.0-fix-scons.patch b/dev-db/mongodb/files/mongodb-3.4.0-fix-scons.patch
30 deleted file mode 100644
31 index 2dd751fad81..00000000000
32 --- a/dev-db/mongodb/files/mongodb-3.4.0-fix-scons.patch
33 +++ /dev/null
34 @@ -1,35 +0,0 @@
35 ---- a/SConstruct 2016-12-27 11:10:06.801949538 +0100
36 -+++ b/SConstruct 2016-12-27 11:12:40.426407713 +0100
37 -@@ -1557,7 +1557,6 @@
38 - # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
39 - env.Append( CCFLAGS=["-fno-omit-frame-pointer",
40 - "-fno-strict-aliasing",
41 -- "-ggdb",
42 - "-pthread",
43 - "-Wall",
44 - "-Wsign-compare",
45 -@@ -1568,8 +1567,9 @@
46 - if not has_option("disable-warnings-as-errors"):
47 - env.Append( CCFLAGS=["-Werror"] )
48 -
49 -- env.Append( CXXFLAGS=["-Woverloaded-virtual"] )
50 - env.Append( LINKFLAGS=["-pthread"] )
51 -+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
52 -+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
53 -
54 - # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
55 - # startup.
56 -@@ -1579,10 +1579,10 @@
57 - env.Append( LINKFLAGS=["-Wl,-z,now"] )
58 - env.Append( LINKFLAGS=["-rdynamic"] )
59 -
60 -- env.Append( LIBS=[] )
61 -+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] )
62 -
63 -- #make scons colorgcc friendly
64 -- for key in ('HOME', 'TERM'):
65 -+ #make scons colorgcc, distcc, ccache friendly
66 -+ for key in ('HOME', 'PATH', 'TERM'):
67 - try:
68 - env['ENV'][key] = os.environ[key]
69 - except KeyError:
70
71 diff --git a/dev-db/mongodb/files/mongodb-3.4.6-sysmacros-include.patch b/dev-db/mongodb/files/mongodb-3.4.6-sysmacros-include.patch
72 deleted file mode 100644
73 index 868ba73e442..00000000000
74 --- a/dev-db/mongodb/files/mongodb-3.4.6-sysmacros-include.patch
75 +++ /dev/null
76 @@ -1,38 +0,0 @@
77 -From e245cac2b3c18015dee8caddd449532785d15c2b Mon Sep 17 00:00:00 2001
78 -From: Jason Carey <jcarey@××××.me>
79 -Date: Mon, 26 Jun 2017 11:09:10 -0400
80 -Subject: [PATCH] SERVER-29855 Pull major/minor from sys/sysmacros.h
81 -
82 -Per newer versions of glibc:
83 -
84 -----
85 -error: In the GNU C Library, "major" is defined
86 - by <sys/sysmacros.h>. For historical compatibility, it is
87 - currently defined by <sys/types.h> as well, but we plan to
88 - remove this soon. To use "major", include <sys/sysmacros.h>
89 - directly. If you did not intend to use a system-defined macro
90 - "major", you should undefine it after including <sys/types.h>. [-Werror]
91 - string path = str::stream() << "/sys/dev/block/" << major(dev) << ':' << minor(dev)
92 -----
93 -
94 -Including <sys/sysmacros.h> appears to be the correct solution to quiet
95 -the warning
96 ----
97 - src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp | 4 ++++
98 - 1 file changed, 4 insertions(+)
99 -
100 -diff --git a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
101 -index 5a784b25dc7..c43e148d3f4 100644
102 ---- a/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
103 -+++ b/src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp
104 -@@ -36,6 +36,10 @@
105 - #include <boost/filesystem/path.hpp>
106 - #include <fstream>
107 -
108 -+#ifdef __linux__
109 -+#include <sys/sysmacros.h>
110 -+#endif
111 -+
112 - #include "mongo/db/mongod_options.h"
113 - #include "mongo/db/storage/mmap_v1/data_file_sync.h"
114 - #include "mongo/db/storage/mmap_v1/dur.h"
115
116 diff --git a/dev-db/mongodb/mongodb-3.4.16.ebuild b/dev-db/mongodb/mongodb-3.4.16.ebuild
117 deleted file mode 100644
118 index fb7263b16bf..00000000000
119 --- a/dev-db/mongodb/mongodb-3.4.16.ebuild
120 +++ /dev/null
121 @@ -1,160 +0,0 @@
122 -# Copyright 1999-2018 Gentoo Authors
123 -# Distributed under the terms of the GNU General Public License v2
124 -
125 -EAPI=6
126 -
127 -PYTHON_COMPAT=( python2_7 )
128 -
129 -SCONS_MIN_VERSION="2.3.0"
130 -CHECKREQS_DISK_BUILD="2400M"
131 -CHECKREQS_DISK_USR="512M"
132 -CHECKREQS_MEMORY="1024M"
133 -
134 -inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user
135 -
136 -MY_P=${PN}-src-r${PV/_rc/-rc}
137 -
138 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
139 -HOMEPAGE="https://www.mongodb.com"
140 -SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
141 -
142 -LICENSE="AGPL-3 Apache-2.0"
143 -SLOT="0"
144 -KEYWORDS="~amd64"
145 -IUSE="debug kerberos libressl mms-agent ssl test +tools"
146 -
147 -RDEPEND=">=app-arch/snappy-1.1.3
148 - >=dev-cpp/yaml-cpp-0.5.3:=
149 - >=dev-libs/boost-1.60:=[threads(+)]
150 - >=dev-libs/libpcre-8.41[cxx]
151 - dev-libs/snowball-stemmer
152 - net-libs/libpcap
153 - >=sys-libs/zlib-1.2.8:=
154 - kerberos? ( dev-libs/cyrus-sasl[kerberos] )
155 - mms-agent? ( app-admin/mms-agent )
156 - ssl? (
157 - !libressl? ( >=dev-libs/openssl-1.0.1g:0= )
158 - libressl? ( dev-libs/libressl:0= )
159 - )"
160 -DEPEND="${RDEPEND}
161 - ${PYTHON_DEPS}
162 - dev-util/scons
163 - sys-libs/ncurses:0=
164 - sys-libs/readline:0=
165 - debug? ( dev-util/valgrind )
166 - test? (
167 - dev-python/pymongo[${PYTHON_USEDEP}]
168 - dev-python/pyyaml[${PYTHON_USEDEP}]
169 - )"
170 -PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
171 -
172 -PATCHES=(
173 - "${FILESDIR}/${PN}-3.4.0-fix-scons.patch"
174 - "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch"
175 - "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
176 -)
177 -
178 -S=${WORKDIR}/${MY_P}
179 -
180 -pkg_pretend() {
181 - if [[ -n ${REPLACING_VERSIONS} ]]; then
182 - if ver_test "$REPLACING_VERSIONS" -lt 3.2; then
183 - ewarn "To upgrade from a version earlier than the 3.2-series, you must"
184 - ewarn "successively upgrade major releases until you have upgraded"
185 - ewarn "to 3.2-series. Then upgrade to 3.4 series."
186 - fi
187 - fi
188 -}
189 -
190 -pkg_setup() {
191 - enewgroup mongodb
192 - enewuser mongodb -1 -1 /var/lib/${PN} mongodb
193 -
194 - python-single-r1_pkg_setup
195 -}
196 -
197 -src_prepare() {
198 - default
199 -
200 - # remove bundled libs
201 - rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
202 -}
203 -
204 -src_configure() {
205 - # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
206 - # --use-system-icu fails tests
207 - # --use-system-tcmalloc is strongly NOT recommended:
208 - scons_opts=(
209 - CC="$(tc-getCC)"
210 - CXX="$(tc-getCXX)"
211 -
212 - --disable-warnings-as-errors
213 - --use-system-boost
214 - --use-system-pcre
215 - --use-system-snappy
216 - --use-system-stemmer
217 - --use-system-yaml
218 - --use-system-zlib
219 - )
220 -
221 - use debug && scons_opts+=( --dbg=on )
222 - use kerberos && scons_opts+=( --use-sasl-client )
223 - use ssl && scons_opts+=( --ssl )
224 -
225 - # respect mongoDB upstream's basic recommendations
226 - # see bug #536688 and #526114
227 - if ! use debug; then
228 - filter-flags '-m*'
229 - filter-flags '-O?'
230 - fi
231 -
232 - default
233 -}
234 -
235 -src_compile() {
236 - escons "${scons_opts[@]}" core tools
237 -}
238 -
239 -# FEATURES="test -usersandbox" emerge dev-db/mongodb
240 -src_test() {
241 - # this one test fails
242 - rm jstests/core/jsHeapLimit.js || die
243 -
244 - "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
245 -}
246 -
247 -src_install() {
248 - escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
249 -
250 - doman debian/mongo*.1
251 - dodoc README docs/building.md
252 -
253 - newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
254 - newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
255 - newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s}
256 - newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s}
257 -
258 - insinto /etc
259 - newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
260 - newins "${FILESDIR}/mongos.conf-r2" ${PN/db/s}.conf
261 -
262 - systemd_dounit "${FILESDIR}/${PN}.service"
263 -
264 - insinto /etc/logrotate.d/
265 - newins "${FILESDIR}/${PN}.logrotate" ${PN}
266 -
267 - # see bug #526114
268 - pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
269 -
270 - local x
271 - for x in /var/{lib,log}/${PN}; do
272 - diropts -m0750 -o mongodb -g mongodb
273 - keepdir "${x}"
274 - done
275 -}
276 -
277 -pkg_postinst() {
278 - ewarn "Make sure to read the release notes and follow the upgrade process:"
279 - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
280 - ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
281 -}