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
Please add a way for clients to set the creation date/time in profile headers #71
Comments
|
This goes against this field purpose, which is to create always unique profiles. If you really need that, please consider to access the header directly, this is the reason the header structure is available in lcms2.h API. |
|
do you maybe have changed your mind on this? I'd be glad to explain furthe…! |
|
This is very simple actually: cmsICCHeader h; fread(&h, sizeof(cmsICCHeader), 1, stream); |
|
@mm2 Correct me if I'm wrong, but I think that would require a recalculation of the profile ID MD5? So the full workflow would be
Am I right? That seems like quite a lot of work to replace a simple |
|
Can we please have a |
|
I second @mm2. Generally it should not be easy to fake time stamps. Cheating on that would burden new opportunities of irritation to many end users, for a little gain of convenience of few developers. (That does not question the usefulness of reproducible builds. That goal could be achieved inside the affected projects?) |
|
@mm2 @beku, Right, faking time stamps must not be done by littlecms by itself, but it doesn't justify by itself that it shouldn't be proposed as part of the API, as well as many other functions which may create irritation to many end users (like changing/spoofing profile name, but it is part of the API right?). |
Hi, this is Debian bug 814883, https://bugs.debian.org/814883
Debian is trying to move to reproducible builds (https://wiki.debian.org/ReproducibleBuilds), that is the ability to reproduce byte-identical packages.
lcms is currently always using the current time to set the creation time in profile headers. The attached patch adds a function cmsSetHeaderCreationDateTime() that allows clients to set an explicit creation date/time.
add_set_header_creation_date_time.patch.txt
The text was updated successfully, but these errors were encountered: