Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898178 - dev-libs/gmp-6.2.1-r5: mask cpudetection on non-x86 architectures
Summary: dev-libs/gmp-6.2.1-r5: mask cpudetection on non-x86 architectures
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-27 18:38 UTC by darkbasic
Modified: 2023-02-28 08:01 UTC (History)
0 users

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 darkbasic 2023-02-27 18:38:59 UTC
* Using generic C implementation on non-amd64/x86 with USE=cpudetection
 * --enable-fat is a no-op on alternative arches.
 * To obtain an optimized build, set USE=-cpudetection, but binpkgs should not then be made.

Shouldn't we mask it on non-x86 architectures?

Not sure about the other packages (https://packages.gentoo.org/useflags/cpudetection) but I guess it won't work on alternative arches as well. If so we should probably mask the use globally and unmask it only on x86/amd64.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-27 20:02:29 UTC
No, you can still do USE=cpudetection on !amd64/x86.

It's that you can't have fat "works on any machine, but optimimsed" binaries on !amd64/x86.
Comment 2 darkbasic 2023-02-28 08:00:50 UTC
But it still makes no sense to have an unoptimized binary by default, at least the use should be disabled on non-x86 and if your use case is distributing binaries you can always enable it.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-28 08:01:24 UTC
Then you get broken stages.