Repository navigation
Conversation
| curl_pflags="${curl_pflags} CYGWIN" | ||
| fi | ||
| case $host_os in | ||
| msys*) curl_pflags="${curl_pflags} MSYS";; |
There was a problem hiding this comment.
Where exactly is host_os set? Don't we want to keep this for backward compatibility with older toolchains? Or, probably alter the line to say CYGWIN instead of MSYS.
There was a problem hiding this comment.
autotools sets it automatically (via AC_CANONICAL_HOST) 1. This change only affects the displayed platform flags in buildinfo.txt; MSYS will no longer appear there (but that's only informational really). CYGWIN continues to appear if the host string contains either cygwin or msys (for backward compatibility):
Lines 604 to 607 in d1fc1c4
Footnotes
MAX_PID
MAX_PIDMAX_PID
MAX_PIDMAX_PID bump
This comment was marked as outdated.
This comment was marked as outdated.
|
Technically, both Cygwin and MSYS2 support double-quotes in filenames. Native Windows does not. (What Cygwin does behind the scenes is map characters that aren't allowed by Windows in filenames into the Unicode private use area: https://github.com/cygwin/cygwin/blob/main/winsup/cygwin/strfuncs.cc#L20. This is probably TMI) |
Hm, according to the commit message, this was targeted for MSYS, where Pushed a commit to let them run on MSYS and see if there is still |
|
That's because you are using MSYS to run native Windows binaries, and using the fact that it's MSYS to infer that. MSYS running MSYS binaries would work (and do: https://github.com/curl/curl/actions/runs/13447313327/job/37575384503?pr=16411) |
See PR thread.
Right! I'm updating the condition to exclude these tests for native Windows targets. That should be the same jobs as before this patch. I'm guessing we can revisit this once MSYS2 is also doing the Unicode mapping as Cygwin does? /cc @MarcelRaad |
|
MSYS2 already does. I think your change is the correct one, as long as cygwin or msys does not imply win32 (most build systems do not) |
MSYS/MSYS2 and Cygwin are the same platform. Adjust code where they were treated differently. - drop separate `MSYS` from buildinfo flags. Our code is using the `CYGWIN` variable and CMake (since v3.21) sets it also for `MSYS`. - fix test1158 and test1186 to exclude them for all Win32 targets, instead of just MSYS test envs. To align behavior between MSYS and Cygwin envs. Required for recent MSYS2 releases which reports itself as Cygwin, and no longer MSYS, which broke the previous exclusion logic. - follow Cygwin bumping its `MAX_PID` value, to avoid PID collisions. https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=363357c023ce01e936bdaedf0f479292a8fa4e0f Reported-by: Jeremy Drake Bug: curl#16217 (comment) Ref: https://www.msys2.org/news/#2025-02-14-moving-msys2-closer-to-cygwin Closes curl#16411
MSYS/MSYS2 and Cygwin are the same platform. Adjust code where they were
treated differently.
MSYSfrom buildinfo flags. Our code is using theCYGWINvariable and CMake (since v3.21) sets it also forMSYS.instead of just MSYS test envs. To align behavior between MSYS and
Cygwin envs. Required for recent MSYS2 releases which reports itself
as Cygwin, and no longer MSYS, which broke the previous exclusion
logic.
MAX_PIDvalue, to avoid PID collisions.https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=363357c023ce01e936bdaedf0f479292a8fa4e0f
Reported-by: Jeremy Drake
Bug: #16217 (comment)
Ref: https://www.msys2.org/news/#2025-02-14-moving-msys2-closer-to-cygwin
But, curl supports CMake older than 2021 (that seems like v3.21), and I wonderif we should do something like this to not break MSYS support with older versions:
https://cmake.org/cmake/help/latest/release/3.21.html
edit: I guess that's unnecessary, because CMake wouldn't recognize MSYS in those earlier versions anyway. It's also something that has been like this for a long time, without reported issues.