Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align useflags of heavyweight packages in early image build with profile #183

Open
jonesmz opened this issue Jan 13, 2023 · 0 comments
Open

Comments

@jonesmz
Copy link
Contributor

jonesmz commented Jan 13, 2023

Our genpi64 profile sets some useflags on gcc and other heavyweight packages that are different from the default from upstream gentoo.

Because our image build starts with a recent stage3, and then does

update portage
install ccache
update world
emerge --emptytree system
emerge --emptytree world # to ensure that transitive rebuilds from system, such as compiler updates, force non-system packages to be rebuilt with the right settings
set profile
emerge --update --newuse world

We can POTENTIALLY see gcc recompiled 3 times with different outcome.

If we set the limited list of use flags on the update world / emptytree system / emptytree world, like pgo, that result in gcc being different, then we can reduce the number of places where gcc gets recompiled, and see it instead just be installed from binpkg.

Really this just amounts to adding "USE=pgo" to the front of the emerge commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant