commit:     2a9f6fcd42024201986cf92968a2fd14143e447e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  6 00:30:18 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb  6 00:30:41 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a9f6fcd

dev-db/mongodb: fix pkg_setup for non-amd64 (e.g. arm64)

Closes: https://bugs.gentoo.org/832761
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-db/mongodb/mongodb-5.0.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-db/mongodb/mongodb-5.0.2-r1.ebuild 
b/dev-db/mongodb/mongodb-5.0.2-r1.ebuild
index 70c31271f576..f26b693c4f11 100644
--- a/dev-db/mongodb/mongodb-5.0.2-r1.ebuild
+++ b/dev-db/mongodb/mongodb-5.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -79,7 +79,7 @@ python_check_deps() {
 
 pkg_pretend() {
        # Bug 809692
-       if ! use cpu_flags_x86_avx; then
+       if use amd64 && ! use cpu_flags_x86_avx; then
                eerror "MongoDB 5.0 requires use of the AVX instruction set"
                eerror 
"https://docs.mongodb.com/v5.0/administration/production-notes/";
                die "MongoDB requires AVX"

Reply via email to