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:52:33 +0000 (11:52 +0100)
commitd157a76c67bcb821d3ec8dcd4312390ef129a95a
treebd2eebb740c5fb41939b9a04340526fb42cad4fc
parent559635dbb6983b4e95f167d0ac2d3a75af6d3102
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>
scripts/ipkg-build