Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832761 - dev-db/mongodb-5.0.2-r1 has a ~arm64 keyword and works fine on ARM64 for me, but the "cpu_flags_x86_avx" requirement prevents installation on this architecture
Summary: dev-db/mongodb-5.0.2-r1 has a ~arm64 keyword and works fine on ARM64 for me, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-05 17:53 UTC by Ryan Tsien
Modified: 2022-02-10 11:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Tsien 2022-02-05 17:53:19 UTC
I tried to install dev-db/mongodb-5.0.2-r1 on my ARM64 vps, which hosted on Oracle cloud, at 2021-1-31. (I didn't do any extra work other than copy the ebuild and remove the cpu_flags_x86_avx requirement)

It runs and works well so far (no error, no invalid op code which reported in https://bugs.gentoo.org/809692).

So I think this requirement is not necessary and can be removed safely?

The CPU_FLAGS_ARM which determined by cpuid2cpuflags are "edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2".

Reproducible: Always
Comment 2 Ryan Tsien 2022-02-05 18:05:22 UTC
I misread the mentioned bug, the "cpu_flags_x86_avx" is necessary for AMD64 arch, but it prevent the installation of mongodb on ARM64 arch.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 00:30:40 UTC
Thanks!
Comment 4 Larry the Git Cow gentoo-dev 2022-02-06 00:31:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a9f6fcd42024201986cf92968a2fd14143e447e

commit 2a9f6fcd42024201986cf92968a2fd14143e447e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-06 00:30:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-06 00:30:41 +0000

    dev-db/mongodb: fix pkg_setup for non-amd64 (e.g. arm64)
    
    Closes: https://bugs.gentoo.org/832761
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/mongodb/mongodb-5.0.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-02-10 11:45:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f3178c560b125ba28e9f43a56f9bfe3bec2667

commit 81f3178c560b125ba28e9f43a56f9bfe3bec2667
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-10 11:44:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-10 11:44:32 +0000

    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@gentoo.org>

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