[go: up one dir, main page]

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

Drop --root-deps and --root-deps=rdeps emerge options #2442

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Conversation

chewi
Copy link
Contributor
@chewi chewi commented Nov 12, 2024

Drop --root-deps(=rdeps) emerge options

--root-deps used to install build dependencies to ROOT instead of /. --root-deps=rdeps used to drop all build dependencies entirely. These never made much sense, so both options were rendered ineffective from EAPI 7. The number of ebuilds with older EAPIs has since dwindled to nothing.

Portage 3.0.66 (included in this PR) has made --root-deps now install build dependencies to ROOT as well as / because this can actually be useful and doesn't cause breakage.

However, it does make us more prone to cyclic dependencies when initially populating the board roots. There is no reason for us to use this option though because its main purpose is to ensure the target environment has everything it needs to rebuild itself. Given that the option didn't do anything recently, we evidently don't even require this for the developer container.

How to use

This mostly concerns the build process covered by CI, but you can also check the developer container.

Testing done

The Jenkins run was successful.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

chewi and others added 3 commits November 12, 2024 22:08
This option became ineffective with EAPI 7 and all trace of older EAPIs
has now gone.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This option used to install build dependencies to ROOT instead of /.
This never made much sense, so the option was rendered ineffective from
EAPI 7. The number of ebuilds with older EAPIs has since dwindled to
nothing.

A recent Portage change has made this option now install build
dependencies to ROOT as well as / because this can actually be useful
and doesn't cause breakage.

However, it does make us more prone to cyclic dependencies when
initially populating the board roots. There is no reason for us to use
this option though because its main purpose is to ensure the target
environment has everything it needs to rebuild itself. Given that the
option didn't do anything recently, we evidently don't even require this
for the developer container.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
It's from Gentoo commit ba2693dfc0f0f5535e6371c4e4d19806109537c9.
@chewi chewi requested a review from krnowak November 12, 2024 22:16
@chewi chewi self-assigned this Nov 12, 2024
@chewi chewi merged commit d18a373 into main Nov 13, 2024
1 check was waiting
@chewi chewi deleted the chewi/root-deps branch November 13, 2024 09:19
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

Successfully merging this pull request may close these issues.

2 participants