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/
Date: Mon, 23 Aug 2021 15:41:11
Message-Id: 1629733229.bf8e03756852ba2705bf5259b590edaca8d271ad.ultrabug@gentoo
1 commit: bf8e03756852ba2705bf5259b590edaca8d271ad
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 23 14:42:44 2021 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 23 15:40:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf8e0375
7
8 dev-db/mongodb: require AVX for mongodb-5.0
9
10 Closes: https://bugs.gentoo.org/809692
11
12 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/22079
14 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
15
16 dev-db/mongodb/mongodb-5.0.2.ebuild | 10 +++++++++-
17 1 file changed, 9 insertions(+), 1 deletion(-)
18
19 diff --git a/dev-db/mongodb/mongodb-5.0.2.ebuild b/dev-db/mongodb/mongodb-5.0.2.ebuild
20 index 03eb379258b..a2ee4340b7f 100644
21 --- a/dev-db/mongodb/mongodb-5.0.2.ebuild
22 +++ b/dev-db/mongodb/mongodb-5.0.2.ebuild
23 @@ -21,7 +21,8 @@ SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
24 LICENSE="Apache-2.0 SSPL-1"
25 SLOT="0"
26 KEYWORDS="~amd64 ~arm64 -riscv"
27 -IUSE="debug kerberos lto mongosh ssl +tools"
28 +CPU_FLAGS="cpu_flags_x86_avx"
29 +IUSE="debug kerberos lto mongosh ssl +tools ${CPU_FLAGS}"
30
31 # https://github.com/mongodb/mongo/wiki/Test-The-Mongodb-Server
32 # resmoke needs python packages not yet present in Gentoo
33 @@ -77,6 +78,13 @@ python_check_deps() {
34 }
35
36 pkg_pretend() {
37 + # Bug 809692
38 + if ! use cpu_flags_x86_avx; then
39 + eerror "MongoDB 5.0 requires use of the AVX instruction set"
40 + eerror "https://docs.mongodb.com/v5.0/administration/production-notes/"
41 + die "MongoDB requires AVX"
42 + fi
43 +
44 if [[ -n ${REPLACING_VERSIONS} ]]; then
45 if ver_test "$REPLACING_VERSIONS" -lt 4.4; then
46 ewarn "To upgrade from a version earlier than the 4.4-series, you must"