Skip to content

Commit

Permalink
reproducibility: timestamp on generated files; remove random & time e…
Browse files Browse the repository at this point in the history
…nv vars
  • Loading branch information
Timothy Kenno Handojo authored and timkenhan committed Jun 25, 2024
1 parent cbc9135 commit 7bfbb2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/misc-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ __dyn_package() {
echo -n "${BUILD_ID}" > "${PORTAGE_BUILDDIR}"/build-info/BUILD_ID
fi

if [[ "${BUILD_TIME}" == "ebuild" ]]; then
find ${D} -exec touch -h -r ${EBUILD} {} \;
fi

if [[ "${BINPKG_FORMAT}" == "xpak" ]]; then
local tar_options=""

Expand Down
2 changes: 1 addition & 1 deletion bin/phase-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ __filter_readonly_variables() {
local bash_misc_vars="BASH BASH_.* COLUMNS COMP_WORDBREAKS HISTCMD
HISTFILE HOSTNAME HOSTTYPE IFS LINENO MACHTYPE OLDPWD
OPTERR OPTIND OSTYPE POSIXLY_CORRECT PS4 PWD RANDOM
SECONDS SHLVL _"
SECONDS SHLVL _ SRANDOM EPOCHREALTIME EPOCHSECONDS"
local filtered_sandbox_vars="SANDBOX_ACTIVE SANDBOX_BASHRC
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
SANDBOX_LOG SANDBOX_ON"
Expand Down

0 comments on commit 7bfbb2a

Please sign in to comment.