From nobody@FreeBSD.org  Sat Feb  2 16:40:25 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 7D5B9751
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  2 Feb 2013 16:40:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 662B4A7F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  2 Feb 2013 16:40:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r12GePAU010149
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 2 Feb 2013 16:40:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r12GePxa010148;
	Sat, 2 Feb 2013 16:40:25 GMT
	(envelope-from nobody)
Message-Id: <201302021640.r12GePxa010148@red.freebsd.org>
Date: Sat, 2 Feb 2013 16:40:25 GMT
From: Andreas Tobler <andreast@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: patch: libffi broken on powerpc
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175781
>Category:       ports
>Synopsis:       [patch] devel/libffi broken on powerpc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 02 16:50:00 UTC 2013
>Closed-Date:    Sun Feb 03 18:20:57 UTC 2013
>Last-Modified:  Sun Feb  3 18:30:00 UTC 2013
>Originator:     Andreas Tobler
>Release:        CURRRENT
>Organization:
None
>Environment:
>Description:
the libffi package 3.0.11 fails during compilation due to a upstream bug.

Until this is fixed use the below.

I'll take care that the upstream libffi gets fixed asap.
>How-To-Repeat:

>Fix:
--- src/powerpc/ffi.c.orig      2013-02-02 17:22:50.000000000 +0100
+++ src/powerpc/ffi.c   2013-02-02 15:30:37.000000000 +0100
@@ -664,9 +664,11 @@
   switch (type)
     {
 #ifndef __NO_FPRS__
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
     case FFI_TYPE_LONGDOUBLE:
       flags |= FLAG_RETURNS_128BITS;
       /* Fall through.  */
+#endif
     case FFI_TYPE_DOUBLE:
       flags |= FLAG_RETURNS_64BITS;
       /* Fall through.  */

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rakuco 
State-Changed-When: Sun Feb 3 18:20:56 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175781 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/175781: commit references a PR
Date: Sun,  3 Feb 2013 18:20:51 +0000 (UTC)

 Author: rakuco
 Date: Sun Feb  3 18:20:38 2013
 New Revision: 311477
 URL: http://svnweb.freebsd.org/changeset/ports/311477
 
 Log:
   Fix the build on PowerPC.
   
   andreast@ said he will upstream his patch ASAP.
   
   PR:		ports/175781
   Submitted by:	andreast
 
 Added:
   head/devel/libffi/files/patch-src__powerpc_ffi.c   (contents, props changed)
 
 Added: head/devel/libffi/files/patch-src__powerpc_ffi.c
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/libffi/files/patch-src__powerpc_ffi.c	Sun Feb  3 18:20:38 2013	(r311477)
 @@ -0,0 +1,14 @@
 +--- src/powerpc/ffi.c.orig      2013-02-02 17:22:50.000000000 +0100
 ++++ src/powerpc/ffi.c   2013-02-02 15:30:37.000000000 +0100
 +@@ -664,9 +664,11 @@
 +   switch (type)
 +     {
 + #ifndef __NO_FPRS__
 ++#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
 +     case FFI_TYPE_LONGDOUBLE:
 +       flags |= FLAG_RETURNS_128BITS;
 +       /* Fall through.  */
 ++#endif
 +     case FFI_TYPE_DOUBLE:
 +       flags |= FLAG_RETURNS_64BITS;
 +       /* Fall through.  */
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
