]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rootfs-postcommands.bbclass: make opkg status reproducible
authorJonas Gorski <jonas.gorski@bisdn.de>
Thu, 26 Sep 2024 15:41:35 +0000 (17:41 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 22 Oct 2024 19:08:39 +0000 (12:08 -0700)
commit80b279f18230208c6cc258ddf6a6e6dd3f8c9d79
tree2b14636e9ee83c75142c8d5db801f9e004584946
parent0accc87026a135246ba33ee92ebe215cdd0a5959
rootfs-postcommands.bbclass: make opkg status reproducible

opkg stores the current time as Installed-Time in its status file when
installing packages to the rootfs. Make this reproducible by replacing
Installed-Time with ${REPRODUCIBLE_TIMESTAMP_ROOTFS}, which then also
matches the files' datestamps.

Based on OpenWrt's approach for the issue [1].

[1] https://github.com/openwrt/openwrt/blob/main/include/rootfs.mk#L103

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 61a9b1b1cb618ce90ba7886036f41263075c07df)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/rootfs-postcommands.bbclass