On Fri, 2021-02-05 at 13:14 +0100, Martin Jansa wrote: > On Sat, Jan 30, 2021 at 7:02 PM Richard Purdie < > richard.pur...@linuxfoundation.org> wrote: > > The tar output seems to vary depending on the version of tar used > > and distro > > configuration. Be explict about the output format to avoid this and > > be > > determinstic. > > > > Is it the tar format selection which isn't deterministic or something > else when the format isn't set to gnu?
Different versions of tar seemed to be picking different output formats, I therefore picked one. I looked at which output format reproducible builds were recommending. > I'm asking because gnu format isn't compatible with --xattrs used > e.g. here: > > https://github.com/advancedtelematic/meta-updater/blob/d3a832f66e8802cb45536ff278d5c77f946d341d/classes/image_types_ostree.bbclass#L16 > causing do_image_tar failing with: > > | tar: --xattrs can be used only on POSIX archives > | Try 'tar --help' or 'tar --usage' for more information. > > I've already tested that --format=posix here would fix meta-updater, > but not sure if it's still as deterministic as --format=gnu. Do you > remember which distros were producing different output? I think it was centos7 differing to ubuntu 18.04 Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147693): https://lists.openembedded.org/g/openembedded-core/message/147693 Mute This Topic: https://lists.openembedded.org/mt/80240566/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-