mbox series

[0/4] Granular timestamps in packages

Message ID 20200814001724.2539178-1-mail@aparcar.org
Headers show
Series Granular timestamps in packages | expand

Message

Paul Spooren Aug. 14, 2020, 12:17 a.m. UTC
Based on Jo's IRC statement below[1] I reworked the get_source_date_epoch
script to create reproducible builds even if the SDK is updated.

<jow> aparcar: I investigated that pacakge reproducibility issue a
	little bit
<jow> the problem is twofold
<jow> 1) ipkg-bild uses SOURCE_DATE_EPOCH which - in the
	case of SDK - is hardcoded to the SDK build time

This should fix part 1. HG is untested and I'd prefer to just remove it
from the script, it doesn't seem to be used anywhere anyway.

<jow> 2) depending on toolchain version etc. building
	the same package sources might generate different binaries (this
	seems to be the lesser problem atm)

Part 2 will be tackled in some later patches.

[1]: http://logs.nslu2-linux.org/livelogs/openwrt-devel/openwrt-devel.20200807.txt

Paul Spooren (4):
  build: Fix Shellcheck for get_source_date_epoch.sh
  build: get_source_date_epoch allow external repos
  build: store granular timestamps in packages
  build: store SourceDateEpoch in manifest

 include/package-ipkg.mk          |  2 ++
 package/Makefile                 |  2 +-
 scripts/get_source_date_epoch.sh | 16 ++++++++--------
 scripts/ipkg-build               | 12 +++---------
 4 files changed, 14 insertions(+), 18 deletions(-)