summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_common.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-26 22:33:30 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-11-10 08:50:47 +0100
commitd258243cb7bd9919c81f33a21273b867d3d81283 (patch)
tree7b2784e128ab46b1e921f964ee0302fabcd25a67 /scripts/lib/ptxd_make_world_common.sh
parent45a3e4672c04ef535e7e0085f2c4ef56bcff3f3b (diff)
downloadptxdist-d258243cb7bd9919c81f33a21273b867d3d81283.tar.gz
ptxdist-d258243cb7bd9919c81f33a21273b867d3d81283.tar.xz
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 <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_common.sh')
-rw-r--r--scripts/lib/ptxd_make_world_common.sh2
1 files changed, 2 insertions, 0 deletions
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