Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939038 - bootstrap-prefix.sh: automatic CPU_FLAGS handling may be undesired
Summary: bootstrap-prefix.sh: automatic CPU_FLAGS handling may be undesired
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-04 09:57 UTC by Jannik Glückert
Modified: 2024-09-05 11:47 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 Jannik Glückert 2024-09-04 09:57:13 UTC
The commit https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3f1be2af12937c77c962bb864a8254ffebedc15b automatically adds CPU_FLAGS from cpuid2cpuflags to all packages.

This breaks the "build for one uArch, deploy for another uArch" scenario which we were using prefix for.
It's also at odds with the "keep it fairly reasonable (no -march or whatever)" comment in the `configure_cflags` function.
Perhaps this should be opt-in via the interactive prompt and/or an env var?
Comment 1 Fabian Groffen gentoo-dev 2024-09-05 11:38:55 UTC
Yeah, I might have gone overboard with this one.  (In reality I found there's little to no packages using these flags anyway.)
Comment 2 Larry the Git Cow gentoo-dev 2024-09-05 11:47:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=caac940fe3594a7f48900de9a2aca0dbf21bc798

commit caac940fe3594a7f48900de9a2aca0dbf21bc798
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-09-05 11:46:25 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-09-05 11:46:25 +0000

    scripts/bootstrap-prefix: remove automatic CPU_FLAGS_* setting
    
    It doesn't do much, and turns the Prefix from generic to specific to the
    running machine, which is an undesirable side-effect.
    
    Closes: https://bugs.gentoo.org/939038
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 41 -----------------------------------------
 1 file changed, 41 deletions(-)