Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Rewrite mtime of files in packages to the distfile's mtime
@ 2022-12-07 21:10 paper42
  2022-12-12  6:51 ` paper42
  2023-03-13  1:58 ` github-actions
  0 siblings, 2 replies; 3+ messages in thread
From: paper42 @ 2022-12-07 21:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1081 bytes --]

New issue by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/40963

Description:
Previously in 2016, mtime was always set to the date of the last commit in the package: 16050ad3f292306b0421ee6133b174db3f1b227d
Then in 2018 this mtime was changed to always be set to the date of HEAD because getting the time of the last package change from history was taking too long: a4a229cf6428ecca04d50369d010e028414590e5

This approach doesn't really work well for reproducibility because when HEAD moves, even that commit is unrelated, the whole package gets different timestamps which results in a seemingly random difference when someone merged an old commit to master. This way the mtime can also go backwards on user's systems which can be confusing.

I propose to change this mtime to the mtime of the first distfile and encourage packagers to make sure the first distfile is from the main project if there is more than one. That way the files in the resulting package have a predictable mtime that is also the date of the upstream release.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-13  1:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 21:10 [ISSUE] Rewrite mtime of files in packages to the distfile's mtime paper42
2022-12-12  6:51 ` paper42
2023-03-13  1:58 ` github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).