Skip to contentSkip to conversation

package/mono: bump to version 6.14.1

PATCH New Angelo Compagnucci 1 participant 2 messages Oct 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mono: bump to version 6.14.1

The patch removing mono and the related packages [1] wasn't accepted, so bump the package to the latest version instead.

Mono is now maintained by the Wine project, download it from the new upstream location.

Drop patch 0002, merged upstream.

LICENSE hash changed due to the "MIT X11 License" section being renamed to "MIT License", the license text is unchanged.

The corlib version is unchanged, so monolite does not need an update.

Release notes:
https://gitlab.winehq.org/mono/mono/-/releases/mono-6.14.1

[1] https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/

---
 .checkpackageignore                           |  1 -
 ...0002-Ongoing-work-on-the-cmake-build.patch | 34 -------------------
 package/mono/mono.hash                        |  4 +--
 package/mono/mono.mk                          |  4 +--
 4 files changed, 4 insertions(+), 39 deletions(-)
 delete mode 100644 package/mono/0002-Ongoing-work-on-the-cmake-build.patch
.checkpackageignore +0 -1
index a8c1baacbd..92da0a1858 100644
@@ -598,7 +598,6 @@ package/monit/0001-Do-not-force-building-a-statically-linked-binary.patch lib_pa
 package/mono-gtksharp3/0001-Fixes-MONO_PROFILE_ENTER_LEAVE-undeclared.patch lib_patch.Upstream
 package/mono-gtksharp3/0002-Mono-compilation-error-branch.patch lib_patch.Upstream
 package/mono/0001-Fix-linkage-with-a-system-libatomic_ops-shared-library.patch lib_patch.Upstream
-package/mono/0002-Ongoing-work-on-the-cmake-build.patch lib_patch.Upstream
 package/motion/S99motion Shellcheck lib_sysv.Indent lib_sysv.Variables
 package/mpir/0001-mpn-arm-udiv.asm-workaround-binutils-bug-14887.patch lib_patch.Upstream
 package/mraa/0001-include-Declare-gVERSION-global-as-extern.patch lib_patch.Upstream
package/mono/0002-Ongoing-work-on-the-cmake-build.patch deleted +0 -34
deleted file mode 100644
index afe618f193..0000000000
@@ -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/mono.hash +2 -2
index 1010f6d0ab..06a45e0fd1 100644
@@ -1,5 +1,5 @@
 # sha256 locally computed
-sha256  57366a6ab4f3b5ecf111d48548031615b3a100db87c679fc006e8c8a4efd9424  mono-6.12.0.182.tar.xz
-sha256  923c7053ad0d430cd9b0b69a0ccf3abb7170a1ce50ecbf01915b565a35823d10  LICENSE
+sha256  3024c97c0bc8cbcd611c401d5f994528704108ceb31f31b28dea4783004d0820  mono-6.14.1.tar.xz
+sha256  844242559dbdb96cb9cbe103b06c2bc8a349f19ad0b89d5c3cf830a8914333f6  LICENSE
 sha256  fc488f3ec9f36856bea8cce5cdde1449176341ef93a3962b691970f8981799f4  mcs/COPYING
 sha256  2c3c3ef532828bcd42bb3127349625a25291ff5ae7e6f8d42e0fe9b5be836a99  external/Newtonsoft.Json/Tools/7-zip/copying.txt
package/mono/mono.mk +2 -2
index aead85bac0..0c833fe9ba 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-MONO_VERSION = 6.12.0.182
-MONO_SITE = http://download.mono-project.com/sources/mono
+MONO_VERSION = 6.14.1
+MONO_SITE = https://dl.winehq.org/mono/sources/mono
 MONO_SOURCE = mono-$(MONO_VERSION).tar.xz
 MONO_SELINUX_MODULES = mono
 MONO_LICENSE = GPL-2.0 or MIT (compiler, tools), MIT (libs) or commercial
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/1 package/mono-btls: new package

On Linux, the BoringSSL based BTLS provider is the only TLS implementation of Mono: when it is disabled, as done so far, any TLS connection (HttpWebRequest, HttpClient, SslStream...) fails with "TLS Support not available".

The BTLS provider is a native library built with cmake from the mono sources, which bundle BoringSSL.

The BTLS provider looks for the trusted root certificates in the Mono machine certificate store, /usr/share/.mono/new-certs/Trust, as <subject-hash>.0 files: make it point to /etc/ssl/certs, which has this layout, and select ca-certificates.

---
 package/Config.in                     |  1 +
 package/mono/mono-btls/Config.in      | 16 +++++++++
 package/mono/mono-btls/mono-btls.hash |  1 +
 package/mono/mono-btls/mono-btls.mk   | 51 +++++++++++++++++++++++++++
 package/mono/mono.hash                |  1 +
 package/mono/mono.mk                  | 24 +++++++++++--
 6 files changed, 91 insertions(+), 3 deletions(-)
 create mode 100644 package/mono/mono-btls/Config.in
 create mode 120000 package/mono/mono-btls/mono-btls.hash
 create mode 100644 package/mono/mono-btls/mono-btls.mk
package/Config.in +1 -0
index 796c4f1ad6..ab8996f7d3 100644
@@ -815,6 +815,7 @@ endif
 	source "package/mono/Config.in"
 if BR2_PACKAGE_MONO
 menu "Mono libraries/modules"
+	source "package/mono/mono-btls/Config.in"
 	source "package/mono-gtksharp3/Config.in"
 endmenu
 endif
package/mono/mono-btls/Config.in new file +16 -0
new file mode 100644
index 0000000000..7f69e4d9b1
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_MONO_BTLS
+	bool "mono-btls"
+	default y
+	select BR2_PACKAGE_CA_CERTIFICATES # runtime
+	help
+	  BoringSSL based TLS provider for Mono (libmono-btls-shared).
+
+	  On Linux, this is the only TLS implementation available in
+	  Mono: without it, any TLS connection (HttpWebRequest,
+	  HttpClient, SslStream...) fails with "TLS Support not
+	  available".
+
+	  The trusted root certificates are taken from the
+	  ca-certificates package.
+
+	  https://gitlab.winehq.org/mono/mono/-/tree/main/mono/btls
package/mono/mono-btls/mono-btls.hash new file +1 -0
new file mode 120000
index 0000000000..70c863deb9
@@ -0,0 +1 @@
+../mono.hash
\ No newline at end of file
package/mono/mono-btls/mono-btls.mk new file +51 -0

51 lines not on this page · raw message

package/mono/mono.hash +1 -0
index 06a45e0fd1..d01dc3f998 100644
@@ -3,3 +3,4 @@ sha256  3024c97c0bc8cbcd611c401d5f994528704108ceb31f31b28dea4783004d0820  mono-6
 sha256  844242559dbdb96cb9cbe103b06c2bc8a349f19ad0b89d5c3cf830a8914333f6  LICENSE
 sha256  fc488f3ec9f36856bea8cce5cdde1449176341ef93a3962b691970f8981799f4  mcs/COPYING
 sha256  2c3c3ef532828bcd42bb3127349625a25291ff5ae7e6f8d42e0fe9b5be836a99  external/Newtonsoft.Json/Tools/7-zip/copying.txt
+sha256  2404801e55fe82c3b5b258c5328facbc25c823f07e7ef3fbd69160c888b02288  external/boringssl/LICENSE
package/mono/mono.mk +21 -3
index 0c833fe9ba..c71b346f08 100644
@@ -23,12 +23,22 @@ MONO_COMMON_CONF_OPTS = --with-mcs-docs=no \
 	--with-ikvm-native=no \
 	--enable-minimal=profiler,debug \
 	--enable-static \
-	--disable-btls \
 	--disable-system-aot
 
 # Disable managed code (mcs folder) from building
 MONO_CONF_OPTS = $(MONO_COMMON_CONF_OPTS) --disable-mcs-build
 
+# The BTLS native library (the BoringSSL based TLS provider) is built
+# by the mono-btls package, the runtime only needs to know that it is
+# available. configure needs cmake as soon as BTLS is enabled.
+ifeq ($(BR2_PACKAGE_MONO_BTLS),y)
+MONO_CONF_OPTS += --enable-btls --disable-btls-lib
+MONO_CONF_ENV += CMAKE=$(BR2_CMAKE)
+MONO_DEPENDENCIES += $(BR2_CMAKE_HOST_DEPENDENCY)
+else
+MONO_CONF_OPTS += --disable-btls
+endif
+
 # The libraries have been built by the host-mono build. Since they are
 # architecture-independent, we simply copy them to the target.
 define MONO_INSTALL_LIBS
@@ -49,12 +59,18 @@ MONO_DEPENDENCIES += \
 
 ## Mono managed
 
-HOST_MONO_CONF_OPTS = $(MONO_COMMON_CONF_OPTS) --disable-libraries
+# Always build the managed libraries with the BTLS provider, it is only
+# used when the runtime is built with BTLS support. The host does not
+# need the BTLS native library itself.
+HOST_MONO_CONF_OPTS = $(MONO_COMMON_CONF_OPTS) --disable-libraries \
+	--enable-btls --disable-btls-lib
+HOST_MONO_CONF_ENV = CMAKE=$(BR2_CMAKE)
 
 # ensure monolite is used
 HOST_MONO_MAKE_OPTS += EXTERNAL_MCS=false
 
-HOST_MONO_DEPENDENCIES = host-monolite host-gettext host-python3
+HOST_MONO_DEPENDENCIES = host-monolite host-gettext host-python3 \
+	$(BR2_CMAKE_HOST_DEPENDENCY)
 
 define HOST_MONO_SETUP_MONOLITE
 	rm -rf $(@D)/mcs/class/lib/monolite
@@ -65,3 +81,5 @@ HOST_MONO_POST_CONFIGURE_HOOKS += HOST_MONO_SETUP_MONOLITE
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
+
+include $(sort $(wildcard package/mono/*/*.mk))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot