-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-reproducible
should imply -mkfs-time $constant
#140
Comments
I completely agrees with @scgtrp in addition I would suggest that |
I was unaware of that, but having read it, I think I agree. You could accomplish the same thing with I'd propose something like "use the first available of |
How about defaulting |
That has heavy implications on everyone's build systems preserving mtimes and that no one packages directly from git. People who have been wary of using SOURCE_DATE_EPOCH directly have been historically adding their own project-specific environment variables that distributors can opt-in to. That's pretty simple to do. |
This has nothing to do with git or build systems. Creating a reproducible SquashFS filesystem requires stable source file mtimes in the first place, so there is no opportunity to confuse a build system. Using the newest timestamp from the source files would be a more intelligent default for |
I mean, many are using squashfs tooling inside a buildsystem to create redistributable app images. In fact entire snap format works like this. I did however understand from your comment I was thinking inside too small box. The -mkfs-time parameter indeed sounds like flexible enough mechanism and your default is reasonable as well. |
If I create the same image twice, with
-reproducible
, without changing the contents of the source directory:I would expect to get two identical output files. However, they are not:
The only difference between the two is the timestamp in the filesystem superblock, which is set to the current time even in
-reproducible
mode:It seems that
-reproducible
should, in addition to all the other things it keeps constant, replace the timestamp with a constant value (0? 0xFFFFFFFF?).(Also, happy whatever winter holiday(s) you celebrate! I feel weird submitting this today because of the "Merry Christmas! I got you a bug report!" thing but if I don't do it right now it'll slip my mind and never get done.)
The text was updated successfully, but these errors were encountered: