import©: keep the original access and modified timestamps#12367
import©: keep the original access and modified timestamps#12367TurboGit merged 1 commit intodarktable-org:masterfrom
Conversation
|
@phweyland : Have you tested on Windows? Just asking as the CI seems highly confused with Windows build at the moment and I'm not a Windows guy, so cannot test on my side. TIA. |
No, I cannot neither. |
|
Ok, so please if a Windows user can help here by testing this PR and/or a modified version of it if it does not compile it would be greatly appreciated. TIA. @gi-man : Maybe you can help? |
8d9a3e2 to
5ea47dc
Compare
|
The CI error seems to have gone ... |
|
HEAD is now at 5ea47dc |
What do you mean ? Is there an issue there ? Pascal, what I can do is to remove the WIN32 code and let someone with access to windows dev end the job ... |
|
I wasnt clear. It failed to build on the current UCRT environment/packages. I think utime.h is not available in the current library packages we use. @kmilos thoughts? |
5ea47dc to
a5d3920
Compare
|
I've removed the WIN32 part. It was (in case it could help): |
|
Unfortunately not near mydev machine for a while to check the UCRT status... |
|
@kmilos : I have assigned this to you for the UCRT possible missing package. TIA. |
It is available from mingw-w64-headers, which should be installed already as part of the toolchain. I wonder if some of the defined macros are creating some issue for the exported symbols though: https://github.com/mingw-w64/mingw-w64/blob/master/mingw-w64-headers/crt/sys/utime.h |
|
@phweyland It looks like on Windows we only have seconds precision and the first utime() call: https://man7.org/linux/man-pages/man2/utime.2.html so you'd need to create this So the Windows branch would be something like: struct utimbuf times;
times.actime = statbuf.st_atime;
times.modtime = statbuf.st_mtime;
utime(output, ×); // set origin file timestampsIt looks like you were just missing "address of" when you tried it above? |
a5d3920 to
168f994
Compare
|
@phweyland : Just to be sure there was no quirk on your side. Just after @kmilos suggestion you have pushed some changes but this does not have the EDIT: Some context, this is the last issue for 4.0.1 and so when fixed we can release a new version :) |
168f994 to
bcfefd2
Compare
Indeed! Sorry. I hope this is ok now. |
|
Still missing. |
Sorry again, I'd skipped your message, :( |
partially (on linux) fixes darktable-org#12355
bcfefd2 to
19254b6
Compare
|
Windows CI is green! @TurboGit |
TurboGit
left a comment
There was a problem hiding this comment.
Thanks for the cooperation here!
|
Thank you so much! |
|
@phweyland : This does not merge (conflicts) on darktable-4.0.1 branch. I'm proposing to also cherry-pick 9418b74 (variable MAKER & MODEL at import), ok for you? Otherwise we need to create a specific patch for 4.0.1 branch for this PR. What do you think? |
|
I'd test the nightly tomorrow before 4.0.1 tagging though 😉 |
That's ok for me, sure ! |
|
Done ! So 4.0.1 should be almost ready now. |
|
@WMAM Can you please confirm w/ the last nightly build? |
|
@kmilos Sorry for being late. We are on Pacific time, and I can barely see your message. Yes, I worked with that build last night and it worked perfectly. |
|
breaks osx build: git bisect bad src/control/jobs/control_jobs.c | 25 ++++++++++++++++++++----- |
partially fixes #12355
EDITED
The lazy one: on windows the code is still to be written
Replaces #12357