script: ipkg-build: honour $SOURCE_DATE_EPOCH
authorJo-Philipp Wich <jo@mein.io>
Thu, 8 Nov 2018 10:52:33 +0000 (11:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 8 Nov 2018 10:55:45 +0000 (11:55 +0100)
commit55d078b249427380fe9cc3684f7657ccc2b1405c
treeef3d5e19e23692c26554209b2e82356ea6b698fb
parent2e54de4e54d8a6b4180c69da53f2eb6e80e575ea
script: ipkg-build: honour $SOURCE_DATE_EPOCH

When the SOURCE_DATE_EPOCH environment variable is set, use it to
override the timestamps of .ipk archive contents.

This ensures that .ipk archives built in environments without SCM
metadata (mainly the SDK) are reproducible between different runs.

Ref: https://github.com/openwrt/packages/issues/6954
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d157a76c67bcb821d3ec8dcd4312390ef129a95a)
scripts/ipkg-build