freebsd-ports/lang/mono/files/patch-mono_eglib_gfile-posix.c
Mark Felder 8593616010 Update Mono to 5.10.1.47
This brings a more modern Mono release to the ports tree. After
discussions with others in the Mono community I targeted the mono
5.10.1.47 release which is the latest release in the "Visual Studio"
release channel. This is considered to be the most stable and widely
tested, which makes it a good candidate for us. We may upgrade to 5.12
after additional testing or introduce another Mono package for users who
require testing against a newer release; this has yet to be determined.

- Build from official release tarballs
- Now include BoringSSL per upstream guidelines [1]
- Remove ACCEPTANCE_TESTS, not being updated by upstream
- No long require glib; Mono includes their own replacement
- USES=display:tests required for some tests
- Remove broken for armv6, armv7: file now available [2]
- Mark as LLD safe as mono changed how it handles TLS [3]

Changelog:	http://www.mono-project.com/docs/about-mono/releases/5.10.0/

PR:		222271 [1]
PR:		221236 [2]
PR:		218885 [3]
PR:		211367
Approved by:	dbn
Differential Revision:	https://reviews.freebsd.org/D15780
2018-06-16 15:56:41 +00:00

11 lines
341 B
C

--- mono/eglib/gfile-posix.c.orig 2018-01-10 08:03:25 UTC
+++ mono/eglib/gfile-posix.c
@@ -161,7 +161,7 @@ g_get_current_dir (void)
do {
buffer = g_realloc (buffer, s);
r = getcwd (buffer, s);
- fail = (r == NULL && errno == ERANGE);
+ fail = (r == NULL && (errno == ERANGE || errno == 0));
if (fail) {
s <<= 1;
}