From d258243cb7bd9919c81f33a21273b867d3d81283 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 26 Oct 2018 22:33:30 +0100 Subject: ptxd_make_world_init: reset SOURCE_DATE_EPOCH for local-src packages If a temporary symlink in local_src/ is used to provide the source code for a package, then reset SOURCE_DATE_EPOCH to the current date/time. Such symlinks are used during development only and built-in timestamps can be used to determine that the correct version of a binary is used. Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_make_world_common.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/lib/ptxd_make_world_common.sh') diff --git a/scripts/lib/ptxd_make_world_common.sh b/scripts/lib/ptxd_make_world_common.sh index 4f6514078..a61e9c910 100644 --- a/scripts/lib/ptxd_make_world_common.sh +++ b/scripts/lib/ptxd_make_world_common.sh @@ -252,6 +252,8 @@ ptxd_make_world_init() { if [ -d "$(readlink -f "${wip_sources}")" ]; then pkg_url="file://${wip_sources}" unset pkg_src + # always use a new timestamp for wip builds + SOURCE_DATE_EPOCH="$(echo $(date "+%s"))" fi unset wip_sources -- cgit v1.2.3