Bug 175781 - [patch] devel/libffi broken on powerpc
Summary: [patch] devel/libffi broken on powerpc
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-02 16:50 UTC by Andreas Tobler
Modified: 2013-02-03 18:30 UTC (History)
0 users

See Also:


Attachments
file.diff (434 bytes, patch)
2013-02-02 16:50 UTC, Andreas Tobler
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Tobler freebsd_committer 2013-02-02 16:50:00 UTC
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.
Comment 1 dfilter service freebsd_committer 2013-02-03 18:20:51 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"
Comment 2 Raphael Kubo da Costa freebsd_committer 2013-02-03 18:20:56 UTC
State Changed
From-To: open->closed

Committed. Thanks!