[Buildroot] [PATCH v3] fs/tar: explicitly set extended header values to ensure binary reproducibility

Peter Korsgaard peter at korsgaard.com
Wed Jul 31 21:54:23 UTC 2019


>>>>> "Atharva" == Atharva Lele <itsatharva at gmail.com> writes:

 > Since we use --xattrs-include='*' to include all extended attributes,
 > tar creates a PAX formatted archive. The archive metadata captures atime
 > and ctime of files. To fix this, GNU recommends that we pass this added
 > argument to tar to create binary reproducible packages. Setting of mtime
 > is handled in fs/common.mk using touch on all files.

 > Diffoscope output pre-change: https://gitlab.com/snippets/1871111
 > Diffoscope output after change is blank i.e. binary reproducibile rootfs
 > is created.

 > GNU Recommendation: https://www.gnu.org/software/tar/manual/tar.html#SEC147

 > Signed-off-by: Atharva Lele <itsatharva at gmail.com>
 > Reviewed-by: Matt Weber <matthew.weber at rockwellcollins.com>

Committed to 2019.02.x and 2019.05.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list