commit:     81f3178c560b125ba28e9f43a56f9bfe3bec2667
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 10 11:44:32 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 10 11:44:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f3178c

dev-db/mongodb: forward-port arm64 pkg_setup fix

Lost in 5.0.5 bump (think PR was made before I'd made the fix to earlier
version).

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

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

diff --git a/dev-db/mongodb/mongodb-5.0.5.ebuild 
b/dev-db/mongodb/mongodb-5.0.5.ebuild
index f6dae451de27..a91bd48ba168 100644
--- a/dev-db/mongodb/mongodb-5.0.5.ebuild
+++ b/dev-db/mongodb/mongodb-5.0.5.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
@@ -78,7 +78,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