Skip to content

Commit a0b9d04

Browse files
author
Raul E Rangel
committed
save-build-env: Strip out non-reproducible variables
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]>
1 parent e35c9b0 commit a0b9d04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: bin/save-ebuild-env.sh

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ __save_ebuild_env() {
3030
# identical, so strip them from the binpkg. It's also not needed
3131
# for installing / removing a package.
3232
unset MAKEOPTS NINJAOPTS
33+
34+
# These variables are constantly changing. Strip them so we
35+
# don't introduce non-reproducible data into the binpkg.
36+
unset EPOCHREALTIME EPOCHSECONDS SRANDOM
3337
fi
3438

3539
# misc variables inherited from the calling environment

0 commit comments

Comments
 (0)