Paul I know this is the only difference, but posix format is forced to be used 
always by the format variable and it still differs…

I have run another test to write this $build_time variable to see if it differs 
as well...

Will takk to you later as it will finish.

BR
Piotr
________________________________
Od: Użytkownik [email protected] 
<[email protected]> w imieniu użytkownika Piotr 
Łobacz <[email protected]>
Wysłano: poniedziałek, lipca 31, 2023 5:25 PM
Do: Paul Eggert <[email protected]>; Sergey Poznyakoff <[email protected]>
DW: [email protected] <[email protected]>
Temat: Re: posix atime/ctime changes despite mtime being set

In addition.

Wysyłane z aplikacji Outlook dla systemu iOS<https://aka.ms/o0ukef>
________________________________
Od: Paul Eggert <[email protected]>
Wysłane: Monday, July 31, 2023 5:24:15 PM
Do: Sergey Poznyakoff <[email protected]>
DW: [email protected] <[email protected]>; Piotr Łobacz <[email protected]>
Temat: Re: posix atime/ctime changes despite mtime being set

On 2023-07-31 07:54, Sergey Poznyakoff wrote:
> is this used in addition to --mtime --clamp-mtime options or instead
> of them?

What I see at
<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fautobuilder.yocto.io%2Fpub%2Frepro-fail%2Foe-reproducible-20230724-5av30jl8%2Fpackages%2Fdiff-html%2F&data=05%7C01%7Cp.lobacz%40welotec.com%7Ce7365c913aac4c4db60708db91da34a2%7C25111a7f1d5a4c51a4ca7f8e44011b39%7C0%7C0%7C638264138602869595%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DIH86KjiW2YzDeugprWnLFwHCc8Pdkz%2B%2FE8GAU33vtk%3D&reserved=0<https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20230724-5av30jl8/packages/diff-html/>>
are differences like the following. One archive has this:


-rw-r--r--···0········0········0·····8418·2016-02-09·06:19:51.000000·./usr/src/debug/avahi/0.8-r0/avahi-autoipd/iface-linux.c

whereas the other one has this:


-rw-r--r--···0········0········0·····8418·2016-02-09·06:19:51.127711·./usr/src/debug/avahi/0.8-r0/avahi-autoipd/iface-linux.c

That is, the only difference is in the subseconds part of the timestamp,
where the first archive says ".000000" whereas the second one says
".127711". This can happen if one generates two tarballs, one with the
default gnu format or the use tar format (both of which lack subsecond
resolution) and the other with posix format (which has subseconds).

To fix this sort of thing with current tar, it's a hassle: one must set
each source file's timestamp to an integer multiple of seconds, in
addition to the --mtime="$SOURCE_EPOCH" --clamp-mtime business. It might
be helpful to add to GNU Tar an option (--timestamp-resolution=1, say,
or perhaps it should be a --pax-option suboption), that causes 'tar' to
generate only the stated timestamp resolution.

Reply via email to