Skip to content
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

NEWS: Moving MSYS(2) closer to Cygwin #362

Merged
merged 2 commits into from
Feb 14, 2025
Merged

Conversation

lazka
Copy link
Member

@lazka lazka commented Feb 13, 2025

No description provided.

@lazka lazka force-pushed the news-closer-cygwin branch from 59f7718 to 4520961 Compare February 13, 2025 20:39
Copy link
Contributor

@GitMensch GitMensch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I only wished that I would have known this earlier :-)

As a "bonus": it would be interesting to know how "good old msys/mingw" are different to MSYS2 (tripplet, variables, and C/C++ definition) - because "yes" - some programs still need to/want to keep that in mind (msys/mingw is the only option for ancient Windows versions and is much smaller overall [and obviously: outdated])

@lazka
Copy link
Member Author

lazka commented Feb 14, 2025

As a "bonus": it would be interesting to know how "good old msys/mingw" are different to MSYS2

I've never used old MSYS, so that would require some archeology ;)

@lazka lazka marked this pull request as ready for review February 14, 2025 13:50
The next planned steps for this transition are currently:

* Change the default host triplet from "x86_64-pc-msys" to "x86_64-pc-cygwin"
* Change the runtime to be a superset of Cygwin in more places, e.g. make the CYGWIN env var work as a fallback if MSYS is not set. The goal is to make the Cygwin documentation mostly applicable to MSYS2 as well.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no env vars CYGWIN or MSYS set (at least not with my some month old MSYS2 install, neither in msys nor in mingw32 shells, nor in cygwin shell [most up to date]) either. Cygwin removes the OS variable, which is not done by any MSYS shells.

Copy link
Member Author

@lazka lazka Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not set by default, but it's used to configure cygwin behaviour: https://cygwin.com/cygwin-ug-net/using-cygwinenv.html (and is called MSYS in MSYS2, with some extra options)

What's OS?

@GitMensch
Copy link
Contributor

Checked old MSYS/MinGW: does not set MINGW_CHOST/MSYSTEM_CARCH env vars.

OSTYPE is shown as "msys" (but not seen in env, where it isn't seen with MSYS2 or CYGWIN either, but they set msys/cygwin).
MSYSTEM=MINGW32 (while it depends on the environment in MSYS2)

autotools config.guess returns i686-pc-mingw32 (MSYS/MINGW32), x86_64-pc-msys/x86_64-pc-mingw32/... (depending on the arch for MSYS2, not yet updated) and x86_64-pc-cygwin for cygwin

@lazka
Copy link
Member Author

lazka commented Feb 14, 2025

OSTYPE is shown as "msys" (but not seen in env, where it isn't seen with MSYS2 or CYGWIN either, but they set msys/cygwin).

OSTYPE is a bash thing and is defined at build time from what I know.

@lazka lazka merged commit 715d5a0 into msys2:main Feb 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants