-
Notifications
You must be signed in to change notification settings - Fork 256
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
save-build-env: Strip out MAKEOPTS #1311
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable. Thanks!
I suppose this might help with https://bugs.gentoo.org/736794 too. |
The change has been updated to also exclude NINJAOPTS, EPOCHREALTIME, EPOCHSECONDS, and SRANDOM. |
MAKEOPTS and NINJAOPTS contains a host specific value. If the same package is built on a host with different core counts, the binpkgs will have different hashes. This change drops MAKEOPTS after src_install so that it's not included in final environment.gz. This change also adds them to the special_env_vars.py so that we always have the most up to date version of these variables. Bug: https://bugs.gentoo.org/914441 Bug: https://bugs.gentoo.org/736794 Signed-off-by: Raul E Rangel <[email protected]>
Bash provides access to the time and a random data via variables. We don't want to persist these values when generating a binpkg. Bug: https://bugs.gentoo.org/914441 Signed-off-by: Raul E Rangel <[email protected]>
Anything blocking this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything blocking this?
I think it's fine. @sam what do you think?
MAKEOPTS contains a host specific value. If the same package is built on a host with different core counts, the binpkgs will have different hashes. This change drops MAKEOPTS after src_install so that it's not included in final environment.gz.
Bug: https://bugs.gentoo.org/914441
I'm pulling this patch into chromiumos here: https://chromium-review.googlesource.com/c/chromiumos/bazel/+/5356724