Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mongodb/
Date: Sun, 06 Feb 2022 00:31:15
Message-Id: 1644107441.2a9f6fcd42024201986cf92968a2fd14143e447e.sam@gentoo
1 commit: 2a9f6fcd42024201986cf92968a2fd14143e447e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 00:30:18 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 00:30:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a9f6fcd
7
8 dev-db/mongodb: fix pkg_setup for non-amd64 (e.g. arm64)
9
10 Closes: https://bugs.gentoo.org/832761
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-db/mongodb/mongodb-5.0.2-r1.ebuild | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-db/mongodb/mongodb-5.0.2-r1.ebuild b/dev-db/mongodb/mongodb-5.0.2-r1.ebuild
17 index 70c31271f576..f26b693c4f11 100644
18 --- a/dev-db/mongodb/mongodb-5.0.2-r1.ebuild
19 +++ b/dev-db/mongodb/mongodb-5.0.2-r1.ebuild
20 @@ -1,4 +1,4 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 +# Copyright 1999-2022 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 @@ -79,7 +79,7 @@ python_check_deps() {
27
28 pkg_pretend() {
29 # Bug 809692
30 - if ! use cpu_flags_x86_avx; then
31 + if use amd64 && ! use cpu_flags_x86_avx; then
32 eerror "MongoDB 5.0 requires use of the AVX instruction set"
33 eerror "https://docs.mongodb.com/v5.0/administration/production-notes/"
34 die "MongoDB requires AVX"