Set SOURCE_DATE_EPOCH to 1610550434.

This should help with determinism/reproducibility.
This commit is contained in:
parazyd 2021-01-13 16:07:58 +01:00
parent 7eb4f57883
commit 580fecb67c
No known key found for this signature in database
GPG Key ID: 6B636BF0493EE747
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ bootstrap_complete_base()
export LANG=C
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
export SOURCE_DATE_EPOCH=1610550434
bootstrap_cpio_stage3="$R/tmp/bootstrap-${os}-${arch}-stage3.cpio.gz"
bootstrap_cpio_stage4="$R/tmp/bootstrap-${os}-${arch}-stage4.cpio.gz"

View File

@ -204,6 +204,7 @@ chroot-script()
sudo sed -i "$_path/$_script" \
-e 's@^#!/bin/sh@&\nexport DEBIAN_FRONTEND=noninteractive@' \
-e 's@^#!/bin/sh@&\nexport SOURCE_DATE_EPOCH=1610550434@' \
-e 's@^#!/bin/sh@&\nexport LC_ALL=C@' \
-e 's@^#!/bin/sh@&\nexport LANG=C@' \
-e 's@^#!/bin/sh@&\nset -x ; exec 2>/'$_script'.log@'