1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Undiagnosed ARMv6 core dump occurs when using GCC with fontconfig.

Avoid this crash and resore compiles via CLANG.

PR:		183536
Submitted by:	mazhe@alkumuna.eu
Reviewed by:	kwm
This commit is contained in:
Sean Bruno 2014-09-03 14:57:53 +00:00
parent 05460b8867
commit c547f4a0f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367209
2 changed files with 15 additions and 5 deletions

View File

@ -43,11 +43,6 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
# work around fc-cache crash on arm platform
.if ${ARCH} == arm || ${ARCH} == armv6
USE_GCC= any
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}

View File

@ -0,0 +1,15 @@
There is an undiagnosed ARMv6 core dump in this code
as discovered in FreeBSD Bug 183536 when using clang.
Removing this code from ARM builds resolves it.
--- src/fccompat.c.orig 2013-10-11 03:10:18 UTC
+++ src/fccompat.c
@@ -178,7 +178,7 @@
}
random_r(&fcrandbuf, &result);
-#elif HAVE_RANDOM
+#elif HAVE_RANDOM && !defined(__arm__)
static char statebuf[256];
char *state;
static FcBool initialized = FcFalse;