Commit 262045c5 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian bootstrap jobs: use reproducible value for SOURCE_DATE_EPOCH



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 36fc2f22
...@@ -43,8 +43,16 @@ cleanup_unreproducible_file(){ ...@@ -43,8 +43,16 @@ cleanup_unreproducible_file(){
export TOOL="$1" export TOOL="$1"
export SUITE="$2" export SUITE="$2"
output_echo "About to bootstrap $SUITE using $TOOL version $(dpkg-query --showformat='${Version}' --show $TOOL)." output_echo "About to bootstrap $SUITE using $TOOL version $(dpkg-query --showformat='${Version}' --show $TOOL)."
export SOURCE_DATE_EPOCH="$(date +%s)"
output_echo "SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH" if [ "$SUITE" != "unstable" ] ; then
CODENAME=$SUITE
else
CODENAME=sid
fi
S_D_E_DATE="$(grep $CODENAME /usr/share/distro-info/debian.csv | awk -F',' '{print $4}')"
export SOURCE_DATE_EPOCH="$(date +%s -d $S_D_E_DATE)"
output_echo "SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH that is $S_D_E_DATE which is when $SUITE was created."
export BUILDDIR=$(mktemp --tmpdir=/srv/workspace/ -d -t ${TOOL}-${SUITE}.XXXXXXXX) export BUILDDIR=$(mktemp --tmpdir=/srv/workspace/ -d -t ${TOOL}-${SUITE}.XXXXXXXX)
export RESULTSDIR=$(mktemp --tmpdir=/srv/reproducible-results -d -t ${TOOL}-${SUITE}.XXXXXXXX) # accessible in schroots, used to compare results export RESULTSDIR=$(mktemp --tmpdir=/srv/reproducible-results -d -t ${TOOL}-${SUITE}.XXXXXXXX) # accessible in schroots, used to compare results
......
...@@ -382,7 +382,8 @@ if [ -f /etc/debian_version ] ; then ...@@ -382,7 +382,8 @@ if [ -f /etc/debian_version ] ; then
# needed for rebuilding Debian (using .buildinfo files) # needed for rebuilding Debian (using .buildinfo files)
osuosl173-amd64) DEBS="$DEBS libdpkg-perl libwww-mechanize-perl sbuild" osuosl173-amd64) DEBS="$DEBS libdpkg-perl libwww-mechanize-perl sbuild"
DEBS="$DEBS live-build" # needed for live-build DEBS="$DEBS live-build" # needed for live-build
DEBS="$DEBS cdebootstrap" ;; # needed for testing just that DEBS="$DEBS cdebootstrap" # needed for testing just that
DEBS="$DEBS distro-info" ;; # needed for setting S_D_E to a 'good' value
# needed for opensuse openbuildservice # needed for opensuse openbuildservice
osuosl174-amd64) DEBS="$DEBS osc obs-build qemu-kvm libarchive-tools libjson-perl libxml-simple-perl" ;; osuosl174-amd64) DEBS="$DEBS osc obs-build qemu-kvm libarchive-tools libjson-perl libxml-simple-perl" ;;
*) ;; *) ;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment