msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.27k stars 1.21k forks source link

Add mingw-w64-mono-dotnet #20547

Open ghost opened 6 months ago

ghost commented 6 months ago

Package name

mingw-w64-mono-dotnet

Brief description of package

Mono is an alternative .NET runtime

URL for package's homepage

https://github.com/dotnet/runtime/tree/main/src/mono

Provide a basic test case to validate the package's functionality.

This version of Mono supports .NET Core. The original version of Mono only supports .NET Framework.

https://github.com/dotnet/runtime/discussions/99038

MINGW environments where you need the package

Are you willing to submit a PR?

No

Kreijstal commented 6 months ago

yeah you still need to do a big refactor or rewrite it from scratch

Kreijstal commented 6 months ago

https://news.ycombinator.com/item?id=12626268

ghost commented 6 months ago

https://news.ycombinator.com/item?id=12626268

This information is outdated. dotnet has really improved its portability.

https://github.com/sec/dotnet-core-freebsd-source-build

https://github.com/Thefrank/dotnet-freebsd-crossbuild

https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/freebsd-requirements.md

Kreijstal commented 6 months ago

https://news.ycombinator.com/item?id=12626268

This information is outdated. dotnet has really improved its portability.

https://github.com/sec/dotnet-core-freebsd-source-build

https://github.com/Thefrank/dotnet-freebsd-crossbuild

https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/freebsd-requirements.md

you need working sdk on all of them, which we don't have..?

Kreijstal commented 6 months ago

maybe someone can translate the C# code to java or C++

ghost commented 6 months ago

https://news.ycombinator.com/item?id=12626268

This information is outdated. dotnet has really improved its portability. https://github.com/sec/dotnet-core-freebsd-source-build https://github.com/Thefrank/dotnet-freebsd-crossbuild https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/freebsd-requirements.md

you need working sdk on all of them, which we don't have..?

Who stop you from downloading a working sdk from Microsoft? Remember, you are on Windows. It will be much much easier than for people on FreeBSD. Not only dotnet needs a bootstrap sdk, Java JDK/JRE needs a bootstrap sdk, too. You have to accept the fact that they are designed this way.

ghost commented 6 months ago

maybe someone can translate the C# code to java or C++

This is a very unrealistic idea.

Kreijstal commented 6 months ago

https://news.ycombinator.com/item?id=12626268

This information is outdated. dotnet has really improved its portability. https://github.com/sec/dotnet-core-freebsd-source-build https://github.com/Thefrank/dotnet-freebsd-crossbuild https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/freebsd-requirements.md

you need working sdk on all of them, which we don't have..?

Who stop you from downloading a working sdk from Microsoft? Remember, you are on Windows. It will be much much easier than for people on FreeBSD. Not only dotnet needs a bootstrap sdk, Java JDK/JRE needs a bootstrap sdk, too. You have to accept the fact that they are designed this way.

I mean you could just use dotnet with msvc at that point

ghost commented 6 months ago

Please get back to the topic. This thread is about mono. If you need a bootstrap dotnet sdk to compile the C# source, you can download from Microsoft. What we have to deal with is building the C++ code.

ghost commented 6 months ago

Please have a look at this CMake build script to know what I'm talking about:

https://github.com/dotnet/runtime/blob/main/src/mono/CMakeLists.txt

ghost commented 6 months ago

If you need a bootstrap dotnet sdk to compile the C# source, you can download from Microsoft. What we have to deal with is building the C++ code.

Btw, this is still true with the full dotnet on https://github.com/msys2/MINGW-packages/issues/20075

Kreijstal commented 6 months ago

maybe someone can translate the C# code to java or C++

This is a very unrealistic idea.

don't be so negative, it just takes a lot of work, but I still don't see how you are going to bootstrap it without rewriting half of it.

ghost commented 6 months ago

maybe someone can translate the C# code to java or C++

This is a very unrealistic idea.

don't be so negative, it just takes a lot of work, but I still don't see how you are going to bootstrap it without rewriting half of it.

Why is it too hard to get you to understand? You use an existing sdk to bootstrap it. You don't have to rewrite it into other languages, and you can't anyway.

Kreijstal commented 6 months ago

maybe someone can translate the C# code to java or C++

This is a very unrealistic idea.

don't be so negative, it just takes a lot of work, but I still don't see how you are going to bootstrap it without rewriting half of it.

Why is it too hard to get you to understand? You use an existing sdk to bootstrap it. You don't have to rewrite it into other languages, and you can't anyway.

we should stick to small subsets of the runtime, this should be easier to port and grow from there