ODP: posix atime/ctime changes despite mtime being set

2023-08-01 Thread Piotr Łobacz
Hi Sergey, Paul, I have been discussing this issue with Richard from yocto and we now know what is happening. As I said before, the timestamps are wrong even before creation of packages, meaning: plobacz@latitude:/media/plobacz/9582beb9-8774-4d4d-976f-63a6f1c87c13/poky-contrib$ ls --full-time

--set-mtime-command (was Re: posix atime/ctime changes despite mtime being set)

2023-08-01 Thread Sergey Poznyakoff
Hi Paul, Here is a tentative implementation of the proposed --set-mtime-command option: [1]. Two new options are implemented: --set-mtime-command=COMMAND, which defines the shell command which outputs mtime for the archive member being added, and --set-mtime-format=FMT, which defines the format o

Re: posix atime/ctime changes despite mtime being set

2023-08-01 Thread Sergey Poznyakoff
Hi Piotr, > And this is happening because yocto is using this sstate-cache which > is packing the data into archive with another command, Sorry, I didn't quite get it: do you mean that it uses another archiver, or just gives another set of options to tar? Regards, Sergey

ODP: posix atime/ctime changes despite mtime being set

2023-08-01 Thread Piotr Łobacz
Hi Sergey, I do not know yet how is it happening is this sstate_cache created from previous builds or it uses another archiver, but what I do know is that tar which is in there already got wrong timestamps. I need to investigate it. BR Piotr Od: Sergey Poznyakoff

Fix 'make dist' for the pre-release HEAD

2023-08-01 Thread Pavel Raiskup
Hi, I am attaching the "version bump" commit which is needed to fix 'make dist' command, per Makefile.in (instantiated from Automake): distdir-am: $(DISTFILES) @case `sed 15q $(srcdir)/NEWS` in \ *"$(VERSION)"*) : ;; \ *) \ echo "NEWS not updated; not releasin

ODP: posix atime/ctime changes despite mtime being set

2023-08-01 Thread Piotr Łobacz
Hi Sergey again, do these tar commands in here https://git.yoctoproject.org/poky/tree/meta/classes-global/sstate.bbclass#n859 may somehow be removing timestamps? BR Piotr Od: bug-tar-bounces+p.lobacz=welotec@gnu.org w imieniu użytkownika Piotr Łobacz Wysłane: wtorek, 1 sierpnia 2023 16:

ODP: posix atime/ctime changes despite mtime being set

2023-08-01 Thread Piotr Łobacz
OK Sergey, by doing some more tests, I have finally confirmed it that these tar commands are removing milliseconds from the archive. By testing I mean that I have added in here https://git.yoctoproject.org/poky/tree/meta/classes-global/sstate.bbclass#n847 stupid check: echo "ble ble ble ${SSTAT

Re: posix atime/ctime changes despite mtime being set

2023-08-01 Thread Sergey Poznyakoff
Hi Piotr, > do these tar commands in here > https://git.yoctoproject.org/poky/tree/meta/classes-global/sstate.bbclass#n859 > may somehow be removing timestamps? Output archive format is not specified, therefore the default (gnu) is used. This format keeps timestamps with second precision. That