Hi, update to the latest release. Tested on i386/sparc/sparc64/mips64, see summary of regressions below, before and after the update.
I've created once patches to fix the testsuite for gcc-2.95. Unfortunately they do not apply anymore correctly. Not sure whether its worth the time to fix those? Comments? please test, since my machines are all before latest flag day. cheers, Sebastian i386: 3.0.8 === libffi Summary === # of expected passes 1365 # of unexpected failures 8 # of unsupported tests 15 *** Error code 1 3.0.9: === libffi Summary === # of expected passes 1600 # of unexpected failures 8 # of expected failures 10 # of unsupported tests 15 sparc64: with 3.0.8 === libffi Summary === # of expected passes 1365 # of unexpected failures 8 # of unsupported tests 15 with 3.0.9: === libffi Summary === # of expected passes 1600 # of unexpected failures 8 # of expected failures 10 # of unsupported tests 15 sparc: 3.0.8 (with my testsuite patches) === libffi Summary === # of expected passes 1365 # of unexpected failures 8 # of unsupported tests 15 3.0.9 (without my testsuite patches) === libffi Summary === # of expected passes 680 # of unexpected failures 333 # of expected failures 5 # of unsupported tests 15 mips64 3.0.8 === libffi Summary === # of expected passes 1232 # of unexpected failures 120 # of unsupported tests 15 3.0.9 === libffi Summary === # of expected passes 1442 # of unexpected failures 144 # of expected failures 10 # of unsupported tests 15
? libffi-patch Index: Makefile =================================================================== RCS file: /cvs/ports/devel/libffi/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- Makefile 23 Feb 2010 19:08:55 -0000 1.9 +++ Makefile 28 May 2010 13:05:23 -0000 @@ -6,9 +6,9 @@ COMMENT= Foreign Function Interface -DISTNAME= libffi-3.0.8 -PKGNAME= ${DISTNAME}p2 -SHARED_LIBS += ffi 0.0 # .5.9 +DISTNAME= libffi-3.0.9 +PKGNAME= ${DISTNAME} +SHARED_LIBS += ffi 1.0 # .5.9 CATEGORIES= devel MAINTAINER= Jasper Lievisse Adriaanse <jas...@openbsd.org> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/libffi/distinfo,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 distinfo --- distinfo 23 Sep 2009 20:55:46 -0000 1.1.1.1 +++ distinfo 28 May 2010 13:05:23 -0000 @@ -1,5 +1,5 @@ -MD5 (libffi-3.0.8.tar.gz) = GIpPef2sIxAES0S305GO+Q== -RMD160 (libffi-3.0.8.tar.gz) = QUT2Tnnr+VFhpq/VjOru+DcrXlc= -SHA1 (libffi-3.0.8.tar.gz) = zkTRDDnZo3R5yHd+IGysDzbEhxI= -SHA256 (libffi-3.0.8.tar.gz) = LHxbiKaPs2ImKIm6Je8l3CeGS3u/A1R6ija41WdWlAY= -SIZE (libffi-3.0.8.tar.gz) = 722834 +MD5 (libffi-3.0.9.tar.gz) = HzAKen+XXUBG9RwwIvpf8Q== +RMD160 (libffi-3.0.9.tar.gz) = Ef+a62L0++H+zwnm+YFKcr/ts3o= +SHA1 (libffi-3.0.9.tar.gz) = VuQfh3gOCdBtJ5aQ5T1OosNx6og= +SHA256 (libffi-3.0.9.tar.gz) = WJ0lFSMYvHgM2JGbFGcHk/SXHZg42rRu04wys+6SxFI= +SIZE (libffi-3.0.9.tar.gz) = 731719 Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/devel/libffi/patches/patch-configure,v retrieving revision 1.3 diff -u -r1.3 patch-configure --- patches/patch-configure 23 Feb 2010 19:08:55 -0000 1.3 +++ patches/patch-configure 28 May 2010 13:05:23 -0000 @@ -2,9 +2,9 @@ Enable libffi on hppa, mips64(el) and powerpc platforms. ---- configure.orig Fri Dec 19 17:12:45 2008 -+++ configure Sat Feb 20 00:37:30 2010 -@@ -20976,7 +20976,7 @@ case "$host" in +--- configure.orig Thu Dec 31 13:41:51 2009 ++++ configure Fri May 28 09:29:43 2010 +@@ -12167,7 +12167,7 @@ case "$host" in TARGET=FRV; TARGETDIR=frv ;; @@ -13,18 +13,18 @@ TARGET=PA_LINUX; TARGETDIR=pa ;; hppa*64-*-hpux*) -@@ -21017,8 +21017,9 @@ case "$host" in - mips-sgi-irix5.* | mips-sgi-irix6.*) +@@ -12215,6 +12215,10 @@ case "$host" in + HAVE_LONG_DOUBLE='defined(__mips64)' TARGET=MIPS; TARGETDIR=mips ;; -- mips*-*-linux*) -+ mips*-*-linux* | mips*-*-openbsd*) - TARGET=MIPS; TARGETDIR=mips ++ mips*-*-openbsd*) ++ TARGET=MIPS; TARGETDIR=mips + HAVE_LONG_DOUBLE='defined(__mips)' - ;; ++ ;; powerpc*-*-linux* | powerpc-*-sysv*) -@@ -21033,7 +21034,7 @@ case "$host" in + TARGET=POWERPC; TARGETDIR=powerpc +@@ -12228,7 +12232,7 @@ case "$host" in powerpc-*-aix* | rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc ;; Index: patches/patch-include_Makefile_in =================================================================== RCS file: /cvs/ports/devel/libffi/patches/patch-include_Makefile_in,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 patch-include_Makefile_in --- patches/patch-include_Makefile_in 23 Sep 2009 20:55:46 -0000 1.1.1.1 +++ patches/patch-include_Makefile_in 28 May 2010 13:05:23 -0000 @@ -2,14 +2,14 @@ Install headers into a standard directory. ---- include/Makefile.in.orig Sat Sep 19 15:03:06 2009 -+++ include/Makefile.in Sat Sep 19 15:03:49 2009 -@@ -185,7 +185,7 @@ top_srcdir = @top_srcdir@ +--- include/Makefile.in.orig Thu Dec 31 13:41:01 2009 ++++ include/Makefile.in Fri May 28 09:31:47 2010 +@@ -203,7 +203,7 @@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = foreign DISTCLEANFILES = ffitarget.h EXTRA_DIST = ffi.h.in ffi_common.h -includesdir = $(libdir)/@package_n...@-@PACKAGE_VERSION@/include +includesdir = $(includedir) - nodist_includes_HEADERS = ffi.h ffitarget.h + nodist_includes_HEADERS = ffi.h ffitarget.h all: all-am Index: patches/patch-src_mips_ffitarget_h =================================================================== RCS file: patches/patch-src_mips_ffitarget_h diff -N patches/patch-src_mips_ffitarget_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_mips_ffitarget_h 28 May 2010 13:05:23 -0000 @@ -0,0 +1,15 @@ +--- src/mips/ffitarget.h.orig Fri May 28 05:31:34 2010 ++++ src/mips/ffitarget.h Fri May 28 05:32:35 2010 +@@ -27,10 +27,12 @@ + #ifndef LIBFFI_TARGET_H + #define LIBFFI_TARGET_H + ++#ifndef __OpenBSD__ + #ifdef linux + # include <asm/sgidefs.h> + #else + # include <sgidefs.h> ++#endif + #endif + # ifndef _ABIN32 + # define _ABIN32 _MIPS_SIM_NABI32