environment/build: overwrite __DATE__, __TIME__, and __TIMESTAMP__ macros.

This commit overwrites timestamps that depend on timestamps with the
commit date of a package.
This commit is contained in:
Enno Boland 2016-02-29 08:46:40 +01:00
parent a34576cac3
commit 3c04642877
6 changed files with 25 additions and 20 deletions

View file

@ -198,6 +198,7 @@ chroot_handler() {
action="$arg $action"
env -i PATH="/usr/bin:/usr/sbin:$PATH" SHELL=/bin/sh \
HOME=/tmp IN_CHROOT=1 LC_COLLATE=C LANG=en_US.UTF-8 \
XBPS_COMMIT_TIMESTAMP="$XBPS_COMMIT_TIMESTAMP" \
$XBPS_COMMONDIR/chroot-style/${XBPS_CHROOT_CMD:=uunshare}.sh \
$XBPS_MASTERDIR $XBPS_DISTDIR "$XBPS_HOSTDIR" "$XBPS_CHROOT_CMD_ARGS" \
/void-packages/xbps-src $action $pkg