From 69074fbee24ecfcaf304cfcb07cadf78b3ec2cda Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Mon, 14 Mar 2016 15:28:03 +0100 Subject: Use consistent mtime timestamps This patch adds consistent_timestamps.bbclass which is a hackish way of resembling reproducible build - byte-for-byte identical binary packages from a given source. Naturally this is not a complete solution, but it fixes the issue described below. Real solution for this should be done by the Yocto project itself. In OSTree each new update is checked out with all files and directories having mtime=0, this breaks fontconfig cache validity check (mtime embedded in the cache should match the containing directories mtime). Yocto generates this cache file in poky/meta/lib/oe/rootfs.py::create by calling self._run_intercepts() after all packages have been installed. These timestamps are nondeterministic as they depend on current system time. By using ROOTFS_POSTINSTALL_COMMAND hook we can ensure that these embedded time stamps have a known time, which is a basic property of reproducible build system. Change-Id: Ib2f130248f2e65db391d2b2f19ab5dac30a2cfb0 Task-number: QTEE-1081 Reviewed-by: Samuli Piippo --- recipes-qt/images/b2qt-automotive-qt5-image.bb | 1 + recipes-qt/images/b2qt-embedded-qt5-image.bb | 1 + 2 files changed, 2 insertions(+) (limited to 'recipes-qt') diff --git a/recipes-qt/images/b2qt-automotive-qt5-image.bb b/recipes-qt/images/b2qt-automotive-qt5-image.bb index 004c2e8..bbcb82d 100644 --- a/recipes-qt/images/b2qt-automotive-qt5-image.bb +++ b/recipes-qt/images/b2qt-automotive-qt5-image.bb @@ -36,6 +36,7 @@ IMAGE_FEATURES += "\ inherit core-image inherit bootfs-image +inherit consistent_timestamps MACHINE_EXTRA_INSTALL_QT ?= "" diff --git a/recipes-qt/images/b2qt-embedded-qt5-image.bb b/recipes-qt/images/b2qt-embedded-qt5-image.bb index 2909e38..6f82a8b 100644 --- a/recipes-qt/images/b2qt-embedded-qt5-image.bb +++ b/recipes-qt/images/b2qt-embedded-qt5-image.bb @@ -36,6 +36,7 @@ IMAGE_FEATURES += "\ inherit core-image inherit bootfs-image +inherit consistent_timestamps MACHINE_EXTRA_INSTALL_QT ?= "" -- cgit v1.2.3-54-g00ecf