Skip to content

Commit ae916b4

Browse files
authored
Mono: fix DSM 7 compatibility (#5604)
* Fix DSM 7 compatibility * Exclude aarch64 on DSM 6.x (issue #3666)
1 parent 64ccad1 commit ae916b4

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

cross/mono/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ LICENSE = https://www.mono-project.com/docs/faq/licensing
1414
# Although qoriq can be compiled successfully it won't run as classic floating point unit not available
1515
# For details see: https://github.com/SynoCommunity/spksrc/issues/3470#issuecomment-469391052
1616
UNSUPPORTED_ARCHS = $(PPC_ARCHS)
17+
# Mono versions newer than 5.8.0 have an incompatibility with aarch64 on DSM 6.x (issue #3666)
18+
UNSUPPORTED_ARCHS_TCVERSION = aarch64-6.1
1719

1820
PRE_CONFIGURE_TARGET = mono_pre_configure
1921
GNU_CONFIGURE = 1

native/mono/patches/001-relocate-specialfolders.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
return ReadXdgUserDir (config, home, "XDG_VIDEOS_DIR", "Videos");
66
case SpecialFolder.CommonTemplates:
77
- return "/usr/share/templates";
8-
+ return "/var/packages/mono/target/var/templates";
8+
+ return "/var/packages/mono/var/templates";
99
case SpecialFolder.Fonts:
1010
if (Platform == PlatformID.MacOSX)
1111
return Path.Combine (home, "Library", "Fonts");
@@ -14,7 +14,7 @@
1414
// This is where data common to all users goes
1515
case SpecialFolder.CommonApplicationData:
1616
- return "/usr/share";
17-
+ return "/var/packages/mono/target/var";
17+
+ return "/var/packages/mono/var";
1818
default:
1919
throw new ArgumentException ("Invalid SpecialFolder");
2020
}
@@ -26,8 +26,8 @@
2626
{
2727
- case SpecialFolder.CommonApplicationData: return "/usr/share";
2828
- case SpecialFolder.CommonTemplates: return "/usr/share/templates";
29-
+ case SpecialFolder.CommonApplicationData: return "/var/packages/mono/target/var";
30-
+ case SpecialFolder.CommonTemplates: return "/var/packages/mono/target/var/templates";
29+
+ case SpecialFolder.CommonApplicationData: return "/var/packages/mono/var";
30+
+ case SpecialFolder.CommonTemplates: return "/var/packages/mono/var/templates";
3131
}
3232
if (IsMac)
3333
{

native/mono_58/patches/001-relocate-specialfolders.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
return ReadXdgUserDir (config, home, "XDG_VIDEOS_DIR", "Videos");
66
case SpecialFolder.CommonTemplates:
77
- return "/usr/share/templates";
8-
+ return "/var/packages/mono/target/var/templates";
8+
+ return "/var/packages/mono/var/templates";
99
case SpecialFolder.Fonts:
1010
if (Platform == PlatformID.MacOSX)
1111
return Path.Combine (home, "Library", "Fonts");
@@ -14,7 +14,7 @@
1414
// This is where data common to all users goes
1515
case SpecialFolder.CommonApplicationData:
1616
- return "/usr/share";
17-
+ return "/var/packages/mono/target/var";
17+
+ return "/var/packages/mono/var";
1818
default:
1919
throw new ArgumentException ("Invalid SpecialFolder");
2020
}
@@ -26,8 +26,8 @@
2626
{
2727
- case SpecialFolder.CommonApplicationData: return "/usr/share";
2828
- case SpecialFolder.CommonTemplates: return "/usr/share/templates";
29-
+ case SpecialFolder.CommonApplicationData: return "/var/packages/mono/target/var";
30-
+ case SpecialFolder.CommonTemplates: return "/var/packages/mono/target/var/templates";
29+
+ case SpecialFolder.CommonApplicationData: return "/var/packages/mono/var";
30+
+ case SpecialFolder.CommonTemplates: return "/var/packages/mono/var/templates";
3131
}
3232
if (IsMac)
3333
{

spk/mono/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SPK_NAME = mono
22
SPK_VERS = 5.20.1.34
3-
SPK_REV = 18
3+
SPK_REV = 19
44
SPK_ICON = src/mono.png
55

66
DEPENDS = cross/$(SPK_NAME)
@@ -10,12 +10,14 @@ REQUIRED_MIN_DSM = 5.0
1010
# Although qoriq can be compiled successfully it won't run as classic floating point unit not available
1111
# For details see: https://github.com/SynoCommunity/spksrc/issues/3470#issuecomment-469391052
1212
UNSUPPORTED_ARCHS = $(PPC_ARCHS)
13+
# Mono versions newer than 5.8.0 have an incompatibility with aarch64 on DSM 6.x (issue #3666)
14+
UNSUPPORTED_ARCHS_TCVERSION = aarch64-6.1
1315

1416
MAINTAINER = hgy59
1517
DESCRIPTION = Cross platform, open source .NET development framework.
1618
DISPLAY_NAME = Mono
1719
STARTABLE = no
18-
CHANGELOG = "1. Update to version 5.20.1.34<br/>2. Fix workaround for ARMv5 (88f628x archs)<br/>3. Remove static libraries."
20+
CHANGELOG = "Fix DSM 7 compatibility."
1921

2022
HOMEPAGE = https://mono-project.com
2123
LICENSE = https://www.mono-project.com/docs/faq/licensing

0 commit comments

Comments
 (0)