Closed hhorak closed 3 months ago
GNU make by default doesn't check for symbolic link timestamps (see option
-L
that would help).
We can make the output nicer, always executing the LN but not printing it to stdout to not confuse people. I'd suggest to do some "check" that the symlink points to where it should point to (read the link manually, and compare) and regenerate it only when needed.
We can force make -L
execution, but that has drawbacks, per docs:
'-L'
'--check-symlink-times'
On systems that support symbolic links, this option causes 'make'
to consider the timestamps on any symbolic links in addition to the
timestamp on the file referenced by those links. When this option
is provided, the most recent timestamp among the file and the
symbolic links is taken as the modification time for this target
file.
We can backup each symlink by some other file (dot-file) in some working directory, and do the symlink creation only if the file itself has outdated timestamp.
The distgen was completely rewritten and we solve it by the latest updates. Also containers that use dist-gen
had a test whether source are generated properly.
No issue were discovered in the meantime.
This is quite suspicious, that calling distgen few times in a row results in different output every time. I smell timestamps on files might be the cause here.