On Tue, 2020-12-01 at 15:23 +0000, Ross Burton wrote: > To handle files being written to the rootfs outside of the package > manager, > clamp the mtimes to the epoch. > > Signed-off-by: Ross Burton <[email protected]> > --- > meta/classes/reproducible_build.bbclass | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/meta/classes/reproducible_build.bbclass > b/meta/classes/reproducible_build.bbclass > index 2f3bd90b073..28a25fb492d 100644 > --- a/meta/classes/reproducible_build.bbclass > +++ b/meta/classes/reproducible_build.bbclass > @@ -116,3 +116,6 @@ python () { > if d.getVar('BUILD_REPRODUCIBLE_BINARIES') == '1': > d.appendVarFlag("do_unpack", "postfuncs", " > create_source_date_epoch_stamp") > } > + > +# Clamp the mtimes of the tarball image filesystem type > +IMAGE_CMD_tar_append = " --clamp-mtime -- > mtime=@${SOURCE_DATE_EPOCH}" >
I'm not convinced this is correct as it could mess up the timestamps of stamps set in other recipes? It's also tar specific and should really be across all image types? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#145130): https://lists.openembedded.org/g/openembedded-core/message/145130 Mute This Topic: https://lists.openembedded.org/mt/78635762/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
