From 58c9bf971f34cfdadd1ff0cd75b9d9dbcc6fa64e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 12 Nov 2018 08:54:52 +0100 Subject: [PATCH] set SOURCE_DATE_EPOCH to current time to rebuild a version, the rebuilder can set this time manually --- prepare-root.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/prepare-root.sh b/prepare-root.sh index f978f31..3c1f236 100755 --- a/prepare-root.sh +++ b/prepare-root.sh @@ -149,6 +149,7 @@ BASEOUTDIR=$(realpath ${BASEOUTDIR:-"$CURDIR"}) CRT=${CRT:-${NAME}.crt} REPOSD=${REPOSD:-/etc/yum.repos.d} STATEDIR=${STATEDIR:-"${BASEDIR}/${NAME}"} +export SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-$(date -u +'%s')} readonly OLD_SELINUX=$(getenforce) @@ -304,12 +305,6 @@ if [[ $CHECK_UPDATE ]]; then exit $RET fi -# ------------------------------------------------------------------------------ -# Record timestamp of last built package date -export SOURCE_DATE_EPOCH=$( - chroot "$sysroot" bash -c 'rpm -qa --qf "%{BUILDTIME}\n"' | sort -nr | head -1 -) - chroot "$sysroot" /usr/bin/systemd-sysusers for i in passwd shadow group gshadow subuid subgid; do