package/mono: remove mono and related packages
PATCH 1/1 package/mono: remove mono and related packages
Microsoft maintains a modern fork of Mono runtime in the dotnet/runtime repo and has been progressively moving workloads to that fork. That work is now complete, and we recommend that active Mono users and maintainers of Mono-based app frameworks migrate to .NET which includes work from this fork.
---
To the maintainers: while applying this patch, please apply also this patch from Giulio
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Config.in.legacy | 12 ++++ DEVELOPERS | 3 - package/Config.in | 6 -- ...-MONO_PROFILE_ENTER_LEAVE-undeclared.patch | 28 -------- .../0002-Mono-compilation-error-branch.patch | 25 ------- package/mono-gtksharp3/Config.in | 8 --- package/mono-gtksharp3/mono-gtksharp3.hash | 5 -- package/mono-gtksharp3/mono-gtksharp3.mk | 17 ----- ...-system-libatomic_ops-shared-library.patch | 52 -------------- ...0002-Ongoing-work-on-the-cmake-build.patch | 34 ---------- package/mono/Config.in | 29 -------- package/mono/mono.hash | 5 -- package/mono/mono.mk | 67 ------------------- package/monolite/monolite.hash | 2 - package/monolite/monolite.mk | 17 ----- 15 files changed, 12 insertions(+), 298 deletions(-) delete mode 100644 package/mono-gtksharp3/0001-Fixes-MONO_PROFILE_ENTER_LEAVE-undeclared.patch delete mode 100644 package/mono-gtksharp3/0002-Mono-compilation-error-branch.patch delete mode 100644 package/mono-gtksharp3/Config.in delete mode 100644 package/mono-gtksharp3/mono-gtksharp3.hash delete mode 100644 package/mono-gtksharp3/mono-gtksharp3.mk delete mode 100644 package/mono/0001-Fix-linkage-with-a-system-libatomic_ops-shared-library.patch delete mode 100644 package/mono/0002-Ongoing-work-on-the-cmake-build.patch delete mode 100644 package/mono/Config.in delete mode 100644 package/mono/mono.hash delete mode 100644 package/mono/mono.mk delete mode 100644 package/monolite/monolite.hash delete mode 100644 package/monolite/monolite.mk
Config.in.legacy +12 -0
@@ -205,6 +205,18 @@ config BR2_PACKAGE_ALSA_LIB_ALISP help Support for alisp was removed from alsa-lib v1.12.14. +config BR2_PACKAGE_MONO + bool "Mono has been removed" + select BR2_LEGACY + help + Support for mono was deprecated upstream. + +config BR2_PACKAGE_MONO_GTKSHARP3 + bool "Mono GTK#3 has been removed" + select BR2_LEGACY + help + Support for Mono was deprecated upstream. + comment "Legacy options removed in 2025.05" config BR2_GCC_VERSION_12_X
DEVELOPERS +0 -3
@@ -223,9 +223,6 @@ F: package/libb64/ F: package/libdill/ F: package/mender/ F: package/mender-artifact/ -F: package/mono/ -F: package/mono-gtksharp3/ -F: package/monolite/ F: package/openjpeg/ F: package/python-can/ F: package/python-minimalmodbus/
package/Config.in +0 -6
@@ -816,12 +816,6 @@ endmenu endif source "package/micropython/Config.in" source "package/moarvm/Config.in" - source "package/mono/Config.in" -if BR2_PACKAGE_MONO -menu "Mono libraries/modules" - source "package/mono-gtksharp3/Config.in" -endmenu -endif source "package/nodejs/Config.in" source "package/octave/Config.in" source "package/openjdk/Config.in"
package/mono-gtksharp3/0001-Fixes-MONO_PROFILE_ENTER_LEAVE-undeclared.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From c1b9bd4214b78dc426bc6e6a07c23a8ab4ab50ea Mon Sep 17 00:00:00 2001 -From: Jordi Mas <[email protected]> -Date: Tue, 12 Mar 2019 12:24:19 +0100 -Subject: [PATCH] Fixes MONO_PROFILE_ENTER_LEAVE undeclared when compiling with - newer versions of Mono (#266) - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieved from: -https://github.com/mono/gtk-sharp/commit/c1b9bd4214b78dc426bc6e6a07c23a8ab4ab50ea] ---- - gtk/gui-thread-check/profiler/gui-thread-check.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/gtk/gui-thread-check/profiler/gui-thread-check.c b/gtk/gui-thread-check/profiler/gui-thread-check.c -index 11838e3b0..9f45fe6b2 100644 ---- a/gtk/gui-thread-check/profiler/gui-thread-check.c -+++ b/gtk/gui-thread-check/profiler/gui-thread-check.c -@@ -86,6 +86,10 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method) - } - } - -+#ifndef MONO_PROFILE_ENTER_LEAVE -+#define MONO_PROFILE_ENTER_LEAVE (1 << 12) -+#endif -+ - void - mono_profiler_startup (const char *desc) - {
package/mono-gtksharp3/0002-Mono-compilation-error-branch.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From fe18352a4bc9f0cf3b6cf63b8cc03c5d6e41863b Mon Sep 17 00:00:00 2001 -From: plprevost <[email protected]> -Date: Wed, 12 May 2021 16:46:16 +0200 -Subject: [PATCH] refs issue:#298 Fix mono compilation errors - -[Retrieved from: -https://github.com/mono/gtk-sharp/pull/299/commits/fe18352a4bc9f0cf3b6cf63b8cc03c5d6e41863b] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - sample/test/TestRange.cs | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/sample/test/TestRange.cs b/sample/test/TestRange.cs -index 82fb81105..8727c9a77 100644 ---- a/sample/test/TestRange.cs -+++ b/sample/test/TestRange.cs -@@ -8,7 +8,7 @@ - - using System; - --using Gtk; -+using Gtk; using Range = Gtk.Range; - - namespace WidgetViewer { -
package/mono-gtksharp3/Config.in deleted +0 -8
@@ -1,8 +0,0 @@ -config BR2_PACKAGE_MONO_GTKSHARP3 - bool "gtk# 3" - depends on BR2_PACKAGE_LIBGTK3 - help - Gtk# is a .NET language binding for the GTK+ toolkit. - This package provides version 3 of the bindings. - - http://www.mono-project.com/docs/gui/gtksharp/
package/mono-gtksharp3/mono-gtksharp3.hash deleted +0 -5
@@ -1,5 +0,0 @@ -# sha256 from https://download.gnome.org/sources/gtk-sharp/2.99/gtk-sharp-2.99.3.sha256sum -sha256 6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2 gtk-sharp-2.99.3.tar.xz - -# Locally computed -sha256 4b96eca92e6964e89c2faf6a810c9a0214daf6be651fa848fdfbb8cef80c04b1 COPYING
package/mono-gtksharp3/mono-gtksharp3.mk deleted +0 -17
@@ -1,17 +0,0 @@ -################################################################################ -# -# gtksharp3 -# -################################################################################ - -MONO_GTKSHARP3_VERSION_MAJOR = 2.99 -MONO_GTKSHARP3_VERSION = $(MONO_GTKSHARP3_VERSION_MAJOR).3 -MONO_GTKSHARP3_SITE = https://download.gnome.org/sources/gtk-sharp/$(MONO_GTKSHARP3_VERSION_MAJOR) -MONO_GTKSHARP3_SOURCE = gtk-sharp-$(MONO_GTKSHARP3_VERSION).tar.xz -MONO_GTKSHARP3_LICENSE = LGPL-2.0, MIT (cairo) -MONO_GTKSHARP3_LICENSE_FILES = COPYING -MONO_GTKSHARP3_INSTALL_STAGING = YES -MONO_GTKSHARP3_DEPENDENCIES = mono libgtk3 -MONO_GTKSHARP3_CONF_OPTS += CSC=$(HOST_DIR)/bin/mcs - -$(eval $(autotools-package))
package/mono/0001-Fix-linkage-with-a-system-libatomic_ops-shared-library.patch deleted +0 -52
52 lines not on this page · raw message
package/mono/0002-Ongoing-work-on-the-cmake-build.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From 17650f7e0f571287bb14bb9b4fbde7b91d842bb4 Mon Sep 17 00:00:00 2001 -From: monojenkins <[email protected]> -Date: Thu, 24 Sep 2020 12:17:34 -0400 -Subject: [PATCH] Ongoing work on the cmake build. (#20428) - -* Fix some warnings. -* Avoid creating netcore/config.make. -* Fix CPU_COUNT test. -* Add missing source file. - -Co-authored-by: vargaz <[email protected]> - -[Retrieved (and updated to keep only update of icall.c) from: -https://github.com/mono/mono/commit/17650f7e0f571287bb14bb9b4fbde7b91d842bb4] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - mono/metadata/CMakeLists.txt | 1 + - mono/metadata/icall.c | 2 +- - mono/mini/CMakeLists.txt | 5 +++++ - 3 files changed, 7 insertions(+), 1 deletion(-) - -diff --git a/mono/metadata/icall.c b/mono/metadata/icall.c -index fa991bc72e57..f2c003ac1ff1 100644 ---- a/mono/metadata/icall.c -+++ b/mono/metadata/icall.c -@@ -9605,7 +9605,7 @@ mono_create_icall_signatures (void) - int n; - while ((n = sig->param_count)) { - --sig->param_count; // remove ret -- gsize_a *types = (gsize*)(sig + 1); -+ gsize_a *types = (gsize_a*)(sig + 1); - for (int i = 0; i < n; ++i) { - gsize index = *types++; - g_assert (index < G_N_ELEMENTS (lookup));
package/mono/Config.in deleted +0 -29
@@ -1,29 +0,0 @@ -config BR2_PACKAGE_HOST_MONO_ARCH_SUPPORTS - bool - default y if BR2_HOSTARCH = "x86_64" - default y if BR2_HOSTARCH = "x86" - -config BR2_PACKAGE_MONO_ARCH_SUPPORTS - bool - default y if (BR2_aarch64 || BR2_arm || BR2_armeb || \ - BR2_i386 || BR2_powerpc || BR2_x86_64) - depends on BR2_PACKAGE_HOST_MONO_ARCH_SUPPORTS - depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS - -config BR2_PACKAGE_MONO - bool "mono" - depends on BR2_PACKAGE_MONO_ARCH_SUPPORTS - depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_getattr_np() - depends on !BR2_STATIC_LIBS - select BR2_PACKAGE_LIBATOMIC_OPS - help - An open source, cross-platform, implementation of C# - and the CLR that is binary compatible with Microsoft.NET. - - http://download.mono-project.com/sources/mono/ - -comment "mono needs a toolchain w/ C++, NPTL, dynamic library" - depends on BR2_PACKAGE_MONO_ARCH_SUPPORTS - depends on !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
package/mono/mono.hash deleted +0 -5
@@ -1,5 +0,0 @@ -# sha256 locally computed -sha256 57366a6ab4f3b5ecf111d48548031615b3a100db87c679fc006e8c8a4efd9424 mono-6.12.0.182.tar.xz -sha256 923c7053ad0d430cd9b0b69a0ccf3abb7170a1ce50ecbf01915b565a35823d10 LICENSE -sha256 fc488f3ec9f36856bea8cce5cdde1449176341ef93a3962b691970f8981799f4 mcs/COPYING -sha256 2c3c3ef532828bcd42bb3127349625a25291ff5ae7e6f8d42e0fe9b5be836a99 external/Newtonsoft.Json/Tools/7-zip/copying.txt
package/mono/mono.mk deleted +0 -67
67 lines not on this page · raw message
package/monolite/monolite.hash deleted +0 -2
@@ -1,2 +0,0 @@ -# sha256 locally computed -sha256 0ac314f75ca2bc4455785f12ceb50da89b6dac90162f9f46afbbb988a8752d4b monolite-linux-1A5E0066-58DC-428A-B21C-0AD6CDAE2789-latest.tar.gz
package/monolite/monolite.mk deleted +0 -17
@@ -1,17 +0,0 @@ -################################################################################ -# -# monolite -# -################################################################################ - -MONOLITE_VERSION = 1A5E0066-58DC-428A-B21C-0AD6CDAE2789 -MONOLITE_SITE = http://download.mono-project.com/monolite -MONOLITE_SOURCE = monolite-linux-$(MONOLITE_VERSION)-latest.tar.gz -MONOLITE_LICENSE = LGPL-2.0 or commercial - -define HOST_MONOLITE_INSTALL_CMDS - mkdir -p $(HOST_DIR)/lib/monolite-linux/$(MONOLITE_VERSION) - cp -r $(@D)/* $(HOST_DIR)/lib/monolite-linux/$(MONOLITE_VERSION) -endef - -$(eval $(host-generic-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Angelo,
Quoted 6 lines · On Mon, 18 Aug 2025 16:05:18 +0200 Angelo Compagnucci…
Microsoft maintains a modern fork of Mono runtime in the dotnet/runtime repo and has been progressively moving workloads to that fork. That work is now complete, and we recommend that active Mono users and maintainers of Mono-based app frameworks migrate to .NET which includes work from this fork.
Signed-off-by Angelo Compagnucci <[email protected]>
Thanks for this patch. But do we have the Buildroot packages for .NET, which would replace these Mono packages?
Or should I read your patch as "This mono stuff is no longer maintained, and if anyone wants to use .NET with Buildroot, they should package .NET instead of using this unmaintained mono stuff" ?
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Il lun 18 ago 2025, 18:33 Thomas Petazzoni <[email protected]> ha scritto:
Quoted 12 lines
Hello Angelo,
Quoted 1 line · On Mon, 18 Aug 2025 16:05:18 +0200 Angelo Compagnucci…
Microsoft maintains a modern fork of Mono runtime in the dotnet/runtime
repo and
Quoted 1 line
has been progressively moving workloads to that fork. That work is now
complete,
Quoted 3 lines
and we recommend that active Mono users and maintainers of Mono-based app frameworks migrate to .NET which includes work from this fork.
Quoted 9 lines
Quoted 1 line
Signed-off-by Angelo Compagnucci <[email protected]>Thanks for this patch. But do we have the Buildroot packages for .NET, which would replace these Mono packages?
Or should I read your patch as "This mono stuff is no longer maintained, and if anyone wants to use .NET with Buildroot, they should package .NET instead of using this unmaintained mono stuff" ?
I added the note about the .NET Giulio's patch exactly for that reason.
Technically speaking, while having an infra in builroot to build .NET packages, it's not strictly required: mono can cross compile and produce a self contained executable to deploy on the target without any third party tool.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Angelo,
Quoted 9 lines · On Tue, 19 Aug 2025 08:12:55 +0200 Angelo Compagnucci…
Quoted 7 lines
Thanks for this patch. But do we have the Buildroot packages for .NET, which would replace these Mono packages?
Or should I read your patch as "This mono stuff is no longer maintained, and if anyone wants to use .NET with Buildroot, they should package .NET instead of using this unmaintained mono stuff" ?
I added the note about the .NET Giulio's patch exactly for that reason.
Sorry but I don't understand your answer. You don't really answer my questions, and I don't understand which "note about the .NET Giulio's patch" you're referring to.
Could you clarify?
Quoted 4 lines
Technically speaking, while having an infra in builroot to build .NET packages, it's not strictly required: mono can cross compile and produce a self contained executable to deploy on the target without any third party tool.
Perhaps, but it would still make sense to have the necessary tools packaged so that the entire build process can be integrated in Buildroot, and be reproducible, as opposed to have to separately and manually download the .NET "stuff", build your application, copy it to the rootfs, etc.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Thomas
Quoted 13 lines · Thomas Petazzoni via buildroot
Hello Angelo,
Quoted 8 lines · On Tue, 19 Aug 2025 08:12:55 +0200 Angelo Compagnucci…
Quoted 7 lines
Thanks for this patch. But do we have the Buildroot packages for .NET, which would replace these Mono packages?
Or should I read your patch as "This mono stuff is no longer maintained, and if anyone wants to use .NET with Buildroot, they should package .NET instead of using this unmaintained mono stuff" ?
Quoted 8 lines
Quoted 1 line
I added the note about the .NET Giulio's patch exactly for that reason.
Sorry but I don't understand your answer. You don't really answer my questions, and I don't understand which "note about the .NET Giulio's patch" you're referring to.
Could you clarify?
I think that he refers to this note in this commit
To the maintainers: while applying this patch, please apply also this patch from
Giulio
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I suspect that you have seen it but anyway...
Michael
Quoted 24 lines
Quoted 2 lines
Technically speaking, while having an infra in builroot to build .NET packages, it's not strictly required: mono can cross compile and produce
a
Quoted 2 lines
self contained executable to deploy on the target without any third party tool.
Perhaps, but it would still make sense to have the necessary tools packaged so that the entire build process can be integrated in Buildroot, and be reproducible, as opposed to have to separately and manually download the .NET "stuff", build your application, copy it to the rootfs, etc.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list [email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 11 lines
Michael Nazzareno Trimarchi Co-Founder & Chief Executive Officer M. +39 347 913 2170 [email protected] __________________________________ Amarula Solutions BV Joop Geesinkweg 125, 1114 AB, Amsterdam, NL T. +31 (0)85 111 9172 [email protected] www.amarulasolutions.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot