1 |
commit: 1637d896b557f9e6209870435b76244e88f48cc7 |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 7 07:47:57 2020 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 07:48:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1637d896 |
7 |
|
8 |
dev-db/mongodb: clean vulnerable wrt #738760 |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
dev-db/mongodb/Manifest | 1 - |
14 |
dev-db/mongodb/mongodb-4.0.12.ebuild | 167 ----------------------------------- |
15 |
2 files changed, 168 deletions(-) |
16 |
|
17 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
18 |
index dc31d22796d..32c038e7f39 100644 |
19 |
--- a/dev-db/mongodb/Manifest |
20 |
+++ b/dev-db/mongodb/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
DIST mongodb-src-r3.6.13.tar.gz 40853787 BLAKE2B de9621de4f570d569df5cfe026ea5da24641c97f1ac9f3e58a0706b1d0bd74757390a075c95c6d3acd12f3c5c7bcbeb9302ac997248c54a5b7910b582debdc82 SHA512 eb84fb22ff871b5ec620d6fc29a6a66072211656e914630ad0f53e4fcad55aa40a76a0e68e68bdbe8ef061bea09ce6ad6aea5d8d865ea8a8fdca0ed829555fcd |
23 |
DIST mongodb-src-r3.6.17.tar.gz 40932592 BLAKE2B 94bbb943fd929318a2b32344cb4574243ad234d1cd14ffef864d7fd2d60841866fd5a1966eae8f14266a9648deb62b7b55386d41338b515d5e6849e980143d42 SHA512 b4d9e9bfc7ff886532641058c99da29420d1aa472cb4cf2b254e0fd0af5ecc72ac8bf28dcd55ab738b799b00132ffacddd154dea37ccfbf459c7cc603c2582e0 |
24 |
-DIST mongodb-src-r4.0.12.tar.gz 49937644 BLAKE2B 81044a6d68be6420d30fb2d7386ff29871a696cad94ce5977c1aba60c2ce80e18ccb86492c1947a359ef124332ea82ac3cb0fb73a68f51904a008fdf911aa055 SHA512 802eaf57d56c5e8e217344f10104a201acb6f5abef0065fc1bb8e6ceef13fe489b7ae46ed0d55b5bad50fe3579860b1c1471d224b51b0f15f968278cb5f6a47a |
25 |
DIST mongodb-src-r4.0.19.tar.gz 50126414 BLAKE2B 2691e2a9c8833ff9a086b28fd137bc8e8f10d58570117657c7cc01edbf61568ae62f58440d72e8711de98b9fc6868c1095b4ee88eb7b0eb63ea45ce19e842edd SHA512 57032a009ea7e79de4cac496a2d1266b83b99cc45eb9f1169be2fcdca1ed2003a659ceedf9eafbd4aa7fc5b3b0513066a5d712af7666cee5a897b2a2d7dd30cb |
26 |
DIST mongodb-src-r4.2.8.tar.gz 61730247 BLAKE2B f1d98b8ac8f62c0c7aff100ef663bb20345de0e77e0ff420817db0843fe735b58af8075578a7f8d83cc9dc4e597c95ae09f89ce7a21cf8146ff15bcb11eba924 SHA512 163fce480762bd377d6c78b661bfe51fc883223a5309a68f9556e1bafb99e26e476d81dbe6de825d90469e835442be097be630ca9678e54b9d09091e0b5d67c4 |
27 |
|
28 |
diff --git a/dev-db/mongodb/mongodb-4.0.12.ebuild b/dev-db/mongodb/mongodb-4.0.12.ebuild |
29 |
deleted file mode 100644 |
30 |
index 36602d5bac7..00000000000 |
31 |
--- a/dev-db/mongodb/mongodb-4.0.12.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,167 +0,0 @@ |
34 |
-# Copyright 1999-2020 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
- |
39 |
-PYTHON_COMPAT=( python2_7 ) |
40 |
- |
41 |
-SCONS_MIN_VERSION="2.5.0" |
42 |
-CHECKREQS_DISK_BUILD="2400M" |
43 |
-CHECKREQS_DISK_USR="512M" |
44 |
-CHECKREQS_MEMORY="1024M" |
45 |
- |
46 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs user |
47 |
- |
48 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
49 |
- |
50 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
51 |
-HOMEPAGE="https://www.mongodb.com" |
52 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
53 |
- |
54 |
-LICENSE="Apache-2.0 SSPL-1" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="amd64" |
57 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
58 |
-RESTRICT="!test? ( test )" |
59 |
- |
60 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
61 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
62 |
- >=dev-libs/boost-1.60:=[threads(+)] |
63 |
- >=dev-libs/libpcre-8.41[cxx] |
64 |
- dev-libs/snowball-stemmer |
65 |
- net-libs/libpcap |
66 |
- >=sys-libs/zlib-1.2.11:= |
67 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
68 |
- mms-agent? ( app-admin/mms-agent ) |
69 |
- ssl? ( |
70 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
71 |
- libressl? ( dev-libs/libressl:0= ) |
72 |
- )" |
73 |
-DEPEND="${RDEPEND} |
74 |
- ${PYTHON_DEPS} |
75 |
- $(python_gen_any_dep ' |
76 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
77 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
78 |
- dev-python/typing[${PYTHON_USEDEP}] |
79 |
- ') |
80 |
- sys-libs/ncurses:0= |
81 |
- sys-libs/readline:0= |
82 |
- debug? ( dev-util/valgrind ) |
83 |
- test? ( |
84 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
85 |
- )" |
86 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
87 |
- |
88 |
-PATCHES=( |
89 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
90 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
91 |
- "${FILESDIR}/${PN}-4.0.12-boost-1.71-cxxabi-include.patch" |
92 |
-) |
93 |
- |
94 |
-S="${WORKDIR}/${MY_P}" |
95 |
- |
96 |
-pkg_pretend() { |
97 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
98 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
99 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
100 |
- ewarn "successively upgrade major releases until you have upgraded" |
101 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
102 |
- else |
103 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
104 |
- fi |
105 |
- fi |
106 |
-} |
107 |
- |
108 |
-pkg_setup() { |
109 |
- enewgroup mongodb |
110 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
111 |
- |
112 |
- python-any-r1_pkg_setup |
113 |
-} |
114 |
- |
115 |
-src_prepare() { |
116 |
- default |
117 |
- |
118 |
- # remove bundled libs |
119 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
120 |
- |
121 |
- # remove compass |
122 |
- rm -r src/mongo/installer/compass || die |
123 |
-} |
124 |
- |
125 |
-src_configure() { |
126 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
127 |
- # --use-system-icu fails tests |
128 |
- # --use-system-tcmalloc is strongly NOT recommended: |
129 |
- scons_opts=( |
130 |
- CC="$(tc-getCC)" |
131 |
- CXX="$(tc-getCXX)" |
132 |
- |
133 |
- --disable-warnings-as-errors |
134 |
- --use-system-boost |
135 |
- --use-system-pcre |
136 |
- --use-system-snappy |
137 |
- --use-system-stemmer |
138 |
- --use-system-yaml |
139 |
- --use-system-zlib |
140 |
- ) |
141 |
- |
142 |
- use debug && scons_opts+=( --dbg=on ) |
143 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
144 |
- use lto && scons_opts+=( --lto=on ) |
145 |
- use ssl && scons_opts+=( --ssl ) |
146 |
- |
147 |
- # respect mongoDB upstream's basic recommendations |
148 |
- # see bug #536688 and #526114 |
149 |
- if ! use debug; then |
150 |
- filter-flags '-m*' |
151 |
- filter-flags '-O?' |
152 |
- fi |
153 |
- |
154 |
- default |
155 |
-} |
156 |
- |
157 |
-src_compile() { |
158 |
- escons "${scons_opts[@]}" core tools |
159 |
-} |
160 |
- |
161 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
162 |
-src_test() { |
163 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
164 |
-} |
165 |
- |
166 |
-src_install() { |
167 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
168 |
- |
169 |
- doman debian/mongo*.1 |
170 |
- dodoc README docs/building.md |
171 |
- |
172 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
173 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
174 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
175 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
176 |
- |
177 |
- insinto /etc |
178 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
179 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
180 |
- |
181 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
182 |
- |
183 |
- insinto /etc/logrotate.d/ |
184 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
185 |
- |
186 |
- # see bug #526114 |
187 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
188 |
- |
189 |
- local x |
190 |
- for x in /var/{lib,log}/${PN}; do |
191 |
- diropts -m0750 -o mongodb -g mongodb |
192 |
- keepdir "${x}" |
193 |
- done |
194 |
-} |
195 |
- |
196 |
-pkg_postinst() { |
197 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
198 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
199 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
200 |
-} |