From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 31 19:40:05 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CFC9C39A for ; Thu, 31 Oct 2013 19:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 96ADF2C0F for ; Thu, 31 Oct 2013 19:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9VJe5pJ065447 for ; Thu, 31 Oct 2013 19:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9VJe5il065446; Thu, 31 Oct 2013 19:40:05 GMT (envelope-from gnats) Resent-Date: Thu, 31 Oct 2013 19:40:05 GMT Resent-Message-Id: <201310311940.r9VJe5il065446@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthieu Volat Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A9539FBE for ; Thu, 31 Oct 2013 19:31:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 974152BA1 for ; Thu, 31 Oct 2013 19:31:07 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9VJV6eU047117 for ; Thu, 31 Oct 2013 19:31:06 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9VJV6O2047114; Thu, 31 Oct 2013 19:31:06 GMT (envelope-from nobody) Message-Id: <201310311931.r9VJV6O2047114@oldred.freebsd.org> Date: Thu, 31 Oct 2013 19:31:06 GMT From: Matthieu Volat To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/183536: [patch] fontconfig on armv6 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 19:40:05 -0000 >Number: 183536 >Category: ports >Synopsis: [patch] fontconfig on armv6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 31 19:40:05 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthieu Volat >Release: 10-BETA1 >Organization: >Environment: >Description: x11-fonts/fontconfig was reported to segfault a while ago when built with clang on the arm architecture. at the time, the proposed workaround was to build it with gcc, but this is not working anymore on freebsd 10 : lang/gcc is not buildable yet on the arm platform. I've investigated the real problem, this is a segfault when calling the random() function in the FcRandom() function, located in src/fccompat.c >How-To-Repeat: => build fontconfig on arm target with freebsd 10 >Fix: Here's another, not perfect but working, fix : --- src/fccompat.c.orig 2013-10-31 19:16:42.000000000 +0000 +++ src/fccompat.c 2013-10-31 19:15:57.000000000 +0000 @@ -182,7 +182,7 @@ } random_r(&fcrandbuf, &result); -#elif HAVE_RANDOM +#elif HAVE_RANDOM && !defined(__arm__) static char statebuf[256]; char *state; static FcBool initialized = FcFalse; When applied, USE_GCC can be removed and fontconfig segfault is not obversable anymore. >Release-Note: >Audit-Trail: >Unformatted: