Skip to content

Commit

Permalink
[Mono] Update to latest stable release 5.4.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tt075 authored and ymartin59 committed Dec 4, 2017
1 parent 076c3f4 commit 572069a
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 14 deletions.
13 changes: 9 additions & 4 deletions cross/mono/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PKG_NAME = mono
PKG_VERS_MAJOR = 4.6.2
PKG_VERS_MINOR = 7
PKG_VERS_MAJOR = 5.4.1
PKG_VERS_MINOR = 6
PKG_VERS = $(PKG_VERS_MAJOR).$(PKG_VERS_MINOR)
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://download.mono-project.com/sources/$(PKG_NAME)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS_MAJOR)
PKG_DIST_SITE = https://download.mono-project.com/sources/mono
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = native/$(PKG_NAME)

Expand All @@ -17,4 +17,9 @@ REQUIRED_DSM = 5.0
UNSUPPORTED_ARCHS = $(PPC_ARCHES)
GNU_CONFIGURE = 1

# force building with BTLS
# needed for platforms compiling with gcc < 4.8
# patches/001-add-boringssl-alignas-support.patch adds the necessary compatibility
CONFIGURE_ARGS = --enable-btls

include ../../mk/spksrc.cross-cc.mk
5 changes: 4 additions & 1 deletion cross/mono/PLIST
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
bin:bin/al
bin:bin/al2
bin:bin/csc
bin:bin/csi
bin:bin/gacutil
bin:bin/gacutil2
bin:bin/ilasm
Expand All @@ -26,6 +28,7 @@ bin:bin/mono-gdb.py
bin:bin/mono-heapviz
bin:bin/monop
bin:bin/monop2
bin:bin/mono-package-runtime
bin:bin/mono-service
bin:bin/mono-service2
bin:bin/mono-sgen
Expand All @@ -35,7 +38,6 @@ bin:bin/mprof-report
bin:bin/nunit-console
bin:bin/nunit-console2
bin:bin/nunit-console4
bin:bin/pedump
bin:bin/peverify
bin:bin/resgen
bin:bin/resgen2
Expand Down Expand Up @@ -66,6 +68,7 @@ lib:lib/libmono-2.0.so.1.0.0
lnk:lib/libmonoboehm-2.0.so
lnk:lib/libmonoboehm-2.0.so.1
lib:lib/libmonoboehm-2.0.so.1.0.0
lib:lib/libmono-btls-shared.so
lib:lib/libMonoPosixHelper.so
lnk:lib/libmono-profiler-aot.so
lnk:lib/libmono-profiler-aot.so.0
Expand Down
6 changes: 3 additions & 3 deletions cross/mono/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mono-4.6.2.7.tar.bz2 SHA1 9a1b8852c90fa193db13fb21132659b50e8f2c58
mono-4.6.2.7.tar.bz2 SHA256 b69ead7db7590277630685f3fcad84a5ac2f83e40563f0dc8cf139b10cbe6b31
mono-4.6.2.7.tar.bz2 MD5 37ab9cfeaf0ef9e1d44ab0d6f3461511
mono-5.4.1.6.tar.bz2 SHA1 c55f52e377c6057346bddcf37879862645f6fdc3
mono-5.4.1.6.tar.bz2 SHA256 bdfda0fe9ad5ce20bb2cf9e9bf28fed40f324141297479824e1f65d97da565df
mono-5.4.1.6.tar.bz2 MD5 05114ed0a2cff26565e4d03de4966034
14 changes: 14 additions & 0 deletions cross/mono/patches/001-add-boringssl-alignas-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- external/boringssl/crypto/internal.h.orig 2017-11-30 12:17:41.844390358 +0000
+++ external/boringssl/crypto/internal.h 2017-11-30 12:17:48.627723651 +0000
@@ -117,7 +117,11 @@
#define alignas(x) __declspec(align(x))
#define alignof __alignof
#endif
+#elif defined __GNUC__ && __STDC_VERSION <= 199901L
+// add support for alignas() for GCC versions below 4.8 (no C11 support)
+#define alignas(x) __attribute__ ((aligned (x)))
#else
+// available with the C11 standard
#include <stdalign.h>
#endif

6 changes: 3 additions & 3 deletions native/mono/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PKG_NAME = mono
PKG_VERS_MAJOR = 4.6.2
PKG_VERS_MINOR = 7
PKG_VERS_MAJOR = 5.4.1
PKG_VERS_MINOR = 6
PKG_VERS = $(PKG_VERS_MAJOR).$(PKG_VERS_MINOR)
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://download.mono-project.com/sources/$(PKG_NAME)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS_MAJOR)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

Expand Down
13 changes: 10 additions & 3 deletions spk/mono/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = mono
SPK_VERS = 4.6.2.7
SPK_REV = 8
SPK_VERS = 5.4.1.6
SPK_REV = 9
SPK_ICON = src/mono.png
BETA = 1

Expand All @@ -10,7 +10,7 @@ MAINTAINER = SynoCommunity
DESCRIPTION = Cross platform, open source .NET development framework
DISPLAY_NAME = Mono
STARTABLE = no
CHANGELOG = "Update to 4.6.2.7"
CHANGELOG = "Update to 5.4.1.6 (Release)"

HOMEPAGE = http://mono-project.com
LICENSE = http://www.mono-project.com/docs/faq/licensing
Expand All @@ -21,6 +21,7 @@ SSS_SCRIPT = src/dsm-control.sh
INSTALL_PREFIX = /usr/local/$(SPK_NAME)

POST_STRIP_TARGET = mono_extra_install
PRE_COPY_TARGET = mono_pre_copy

BUSYBOX_CONFIG = usrmng
ENV += BUSYBOX_CONFIG="$(BUSYBOX_CONFIG)"
Expand All @@ -37,3 +38,9 @@ mono_extra_install:
cp -nR $(MONO_NATIVE_INSTALL)/usr/local/etc/mono $(STAGING_DIR)/etc/
install -m 755 -d $(STAGING_DIR)/bin
cp -nR $(MONO_NATIVE_INSTALL)/usr/local/bin $(STAGING_DIR)/

.PHONY: mono_pre_copy
mono_pre_copy: $(INSTALL_PLIST)
# remove boehm GC references from PLIST if it isn't available on the platform (e.g. rtd1296)
test -f $(INSTALL_DIR)$(INSTALL_PREFIX)/bin/mono-boehm || sed -i -e '/:bin\/mono-boehm/d' -e '/:lib\/libmonoboehm/d' $(INSTALL_PLIST)

6 changes: 6 additions & 0 deletions spk/mono/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ postinst ()
# Correct the files ownership
chown -R ${USER}:root ${SYNOPKG_PKGDEST}

# Sync certificate
/var/packages/mono/target/bin/cert-sync /etc/ssl/certs/ca-certificates.crt > /dev/null

exit 0
}

Expand All @@ -45,5 +48,8 @@ preupgrade ()

postupgrade ()
{
# Sync certificate
/var/packages/mono/target/bin/cert-sync /etc/ssl/certs/ca-certificates.crt > /dev/null

exit 0
}

0 comments on commit 572069a

Please sign in to comment.