]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
image_types: make tar images more reproducible
authorDan McGregor <dan.mcgregor@usask.ca>
Thu, 19 Sep 2024 16:24:59 +0000 (10:24 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Sep 2024 14:56:27 +0000 (15:56 +0100)
commit24d85d626aaad7eee7ba064410b80947e4f2faea
treeb3c7c69147e10a589603e1963b3c6d6cb7f7e3fe
parent0259bc27842ddff8ffb83b6003cf4ec0273cafe1
image_types: make tar images more reproducible

Use tar-native from our build system. GNU tar changed its behaviour
starting with version 1.35. It no longer stores device numbers for
regular, non-device files. Since some supported host distributions
still use 1.34, rely on tar-native for consistency.

Strip atime and ctime from tar archives, they're not necessary and
can change from invocation to invocation. Eliminate them from the
tar output as suggested in the tar 1.35 documentation[1].

[1] https://www.gnu.org/software/tar/manual/html_node/Reproducibility.html

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/image_types.bbclass