pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libffi libffi: updated to 3.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dbdc3dce9345
branches:  trunk
changeset: 423811:dbdc3dce9345
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Feb 26 19:15:44 2020 +0000

description:
libffi: updated to 3.3

libffi v3.3
* Add RISC-V support.
* New API in support of GO closures.
* Add IEEE754 binary128 long double support for 64-bit Power
* Default to Microsoft's 64-bit long double ABI with Visual C++.
* GNU compiler uses 80 bits (128 in memory) FFI_GNUW64 ABI.
* Add Windows on ARM64 (WOA) support.
* Add Windows 32-bit ARM support.
* Raw java (gcj) API deprecated.
* Add pre-built PDF documentation to source distribution.
* Many new test cases and bug fixes.

diffstat:

 devel/libffi/Makefile                                     |   23 +-
 devel/libffi/distinfo                                     |   26 +-
 devel/libffi/patches/patch-aa                             |  134 --------------
 devel/libffi/patches/patch-ac                             |   15 -
 devel/libffi/patches/patch-ad                             |   15 -
 devel/libffi/patches/patch-ae                             |   27 --
 devel/libffi/patches/patch-af                             |   39 ----
 devel/libffi/patches/patch-ag                             |   15 -
 devel/libffi/patches/patch-aj                             |   31 ---
 devel/libffi/patches/patch-configure                      |   35 +++
 devel/libffi/patches/patch-src_alpha_osf.S                |   26 --
 devel/libffi/patches/patch-src_arm_sysv.S                 |   89 ---------
 devel/libffi/patches/patch-src_closures.c                 |   94 ---------
 devel/libffi/patches/patch-src_m68k_ffi.c                 |   31 +++
 devel/libffi/patches/patch-src_mips_ffi.c                 |   39 ++++
 devel/libffi/patches/patch-src_mips_ffitarget.h           |   18 +
 devel/libffi/patches/patch-src_x86_win32.S                |   23 --
 devel/libffi/patches/patch-testsuite_libffi.call_float2.c |   15 +
 18 files changed, 157 insertions(+), 538 deletions(-)

diffs (truncated from 799 to 300 lines):

diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/Makefile
--- a/devel/libffi/Makefile     Wed Feb 26 18:14:48 2020 +0000
+++ b/devel/libffi/Makefile     Wed Feb 26 19:15:44 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2020/01/12 10:48:50 pho Exp $
+# $NetBSD: Makefile,v 1.35 2020/02/26 19:15:44 adam Exp $
 
-DISTNAME=      libffi-3.2.1
-PKGREVISION=   4
+DISTNAME=      libffi-3.3
 CATEGORIES=    devel
 MASTER_SITES=  ftp://sourceware.org/pub/libffi/
 
@@ -12,11 +11,14 @@
 
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
-USE_TOOLS+=            pkg-config
+USE_TOOLS+=            gmake pkg-config
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS=                --includedir=${PREFIX}/include
+CONFIGURE_ARGS+=       --disable-multi-os-directory
+CONFIGURE_ARGS+=       --includedir=${PREFIX}/include
 PKGCONFIG_OVERRIDE+=   libffi.pc.in
 INFO_FILES=            yes
+TEST_DEPENDS+=         dejagnu-[0-9]*:../../devel/dejagnu
+TEST_TARGET=           check
 
 .include "../../mk/compiler.mk"
 # The Compaq C frontend groks .s, but not .S. Assemble osf.S directly w/ as(1).
@@ -25,15 +27,8 @@
        cd ${WRKSRC} && ./libtool --mode=compile --tag=CC as -I. -Iinclude -o src/alpha/osf.lo -c src/alpha/osf.S
 .endif
 
-# Since we don't have "TEST_DEPENDS", we implement it as a hack:
 .include "../../mk/bsd.prefs.mk"
 
-.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
-TEST_TARGET=   check
-TEST_ENV=      # empty?
-BUILD_DEPENDS+=        dejagnu-[0-9]*:../../devel/dejagnu
-.endif
-
 # patch-aj uses m68k_sync_icache(2)
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-m68k)
 LIBS+=         -lm68k
@@ -45,8 +40,8 @@
 .endif
 
 # irix fixes from PR 48587
-.if !empty(OPSYS:MIRIX)
-USE_TOOLS+=            bash gmake
+.if ${OPSYS} == IRIX
+USE_TOOLS+=            bash
 MAKE_FLAGS+=           SHELL=${TOOLS_DIR}/bin/bash
 .endif
 
diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/distinfo
--- a/devel/libffi/distinfo     Wed Feb 26 18:14:48 2020 +0000
+++ b/devel/libffi/distinfo     Wed Feb 26 19:15:44 2020 +0000
@@ -1,18 +1,12 @@
-$NetBSD: distinfo,v 1.45 2017/09/05 15:08:42 joerg Exp $
+$NetBSD: distinfo,v 1.46 2020/02/26 19:15:44 adam Exp $
 
-SHA1 (libffi-3.2.1.tar.gz) = 280c265b789e041c02e5c97815793dfc283fb1e6
-RMD160 (libffi-3.2.1.tar.gz) = 9b546a3d002380bec3f00d86fc47d730abf51dfd
-SHA512 (libffi-3.2.1.tar.gz) = 980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483
-Size (libffi-3.2.1.tar.gz) = 940837 bytes
-SHA1 (patch-aa) = 5218c8d895f97c812b7ca8d07c55b82ebcdc87d4
-SHA1 (patch-ac) = 63fba2e9486b73485a4f633927f5041110c43239
-SHA1 (patch-ad) = db57395ff721d7b56edec8a3a64b4b529258341c
-SHA1 (patch-ae) = fdb84a49c15041826396e4d3a6dda2de719801c0
-SHA1 (patch-af) = bf64b4082f24947cd47aba0758c347e5ddac3d7e
-SHA1 (patch-ag) = ae6a89f6b2be00c52139be6dcd14d0ebfe85d8f7
-SHA1 (patch-aj) = 5179cfd150bc7de15eb1c5ee0a327016c2c32b3e
-SHA1 (patch-src_alpha_osf.S) = 50d564a1d88284f04f6896719fa3613e9b0be70b
-SHA1 (patch-src_arm_sysv.S) = 2c97e0d069a4df2e1f5b6604e54b2d02c92691e2
-SHA1 (patch-src_closures.c) = 72760ccd973c5f9b157f5db8da180861d748beb2
+SHA1 (libffi-3.3.tar.gz) = 8df6cb570c8d6596a67d1c0773bf00650154f7aa
+RMD160 (libffi-3.3.tar.gz) = 2cd43b66d792f1bad76df2e19a8411beacfcb8e0
+SHA512 (libffi-3.3.tar.gz) = 61513801a156f11420f541d325de697131846487122d6bdcf5491b18b4da788589f5c0bb07e88e396495d3be5830d74e9135595e2b8ddbfe95c448d8597fbd6f
+Size (libffi-3.3.tar.gz) = 1305466 bytes
+SHA1 (patch-configure) = 81f1f2bee39a40f2a34b3a6cea0b210d13037482
+SHA1 (patch-src_m68k_ffi.c) = 5179cfd150bc7de15eb1c5ee0a327016c2c32b3e
 SHA1 (patch-src_m88k_elfbsd.S) = 6572c7fa39c00096cb4a80bb88993ff1b4aaa8cc
-SHA1 (patch-src_x86_win32.S) = 8a41cbc7237d6a171605a66e91d8d92a57181569
+SHA1 (patch-src_mips_ffi.c) = 7353f68f73917af6bff0b90393ac3404ea54fb99
+SHA1 (patch-src_mips_ffitarget.h) = 7fe62634803ccb5a168e76d597409c9af809c448
+SHA1 (patch-testsuite_libffi.call_float2.c) = 2a42a428b0cc55065968c7f0748026da12b70b9d
diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/patches/patch-aa
--- a/devel/libffi/patches/patch-aa     Wed Feb 26 18:14:48 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,134 +0,0 @@
-$NetBSD: patch-aa,v 1.24 2016/01/25 17:56:39 jperkin Exp $
-
-Add more platforms to list which don't support writeable and executable heap.
-Other various platform changes.
-
---- configure.orig     2014-11-12 11:59:57.000000000 +0000
-+++ configure
-@@ -654,6 +654,8 @@ VAX_FALSE
- VAX_TRUE
- TILE_FALSE
- TILE_TRUE
-+VAX_FALSE
-+VAX_TRUE
- PA64_HPUX_FALSE
- PA64_HPUX_TRUE
- PA_HPUX_FALSE
-@@ -17120,7 +17122,7 @@ case "$host" in
-       TARGET=FRV; TARGETDIR=frv
-       ;;
- 
--  hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
-+  hppa*-*-linux* | hppa*-*-netbsd* | parisc*-*-linux* | hppa*-*-openbsd*)
-       TARGET=PA_LINUX; TARGETDIR=pa
-       ;;
-   hppa*64-*-hpux*)
-@@ -17218,10 +17220,10 @@ case "$host" in
-       TARGET=METAG; TARGETDIR=metag
-       ;;
- 
--  mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
-+  mips*-sgi-irix5.* | mips*-sgi-irix6.* | mips*-*-rtems*)
-       TARGET=MIPS; TARGETDIR=mips
-       ;;
--  mips*-*linux* | mips*-*-openbsd*)
-+  mips*-*linux* | mips*-*-netbsd* | mips*-*-openbsd*)
-       # Support 128-bit long double for NewABI.
-       HAVE_LONG_DOUBLE='defined(__mips64)'
-       TARGET=MIPS; TARGETDIR=mips
-@@ -17251,7 +17253,7 @@ case "$host" in
-   powerpc-*-aix* | rs6000-*-aix*)
-       TARGET=POWERPC_AIX; TARGETDIR=powerpc
-       ;;
--  powerpc-*-freebsd* | powerpc-*-openbsd*)
-+  powerpc-*-freebsd* | powerpc-*-netbsd* | powerpc-*-openbsd*)
-       TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
-       HAVE_LONG_DOUBLE_VARIANT=1
-       ;;
-@@ -17266,7 +17268,7 @@ case "$host" in
-       TARGET=S390; TARGETDIR=s390
-       ;;
- 
--  sh-*-* | sh[34]*-*-*)
-+  sh-*-* | shle-*-* | sh[34]*-*-*)
-       TARGET=SH; TARGETDIR=sh
-       ;;
-   sh64-*-* | sh5*-*-*)
-@@ -17285,6 +17287,10 @@ case "$host" in
-       TARGET=VAX; TARGETDIR=vax
-       ;;
- 
-+  vax-*-*)
-+      TARGET=VAX; TARGETDIR=vax
-+      ;;
-+
-   xtensa*-*)
-       TARGET=XTENSA; TARGETDIR=xtensa
-       ;;
-@@ -17610,6 +17616,14 @@ else
-   VAX_FALSE=
- fi
- 
-+ if test x$TARGET = xVAX; then
-+  VAX_TRUE=
-+  VAX_FALSE='#'
-+else
-+  VAX_TRUE='#'
-+  VAX_FALSE=
-+fi
-+
-  if test x$TARGET = xXTENSA; then
-   XTENSA_TRUE=
-   XTENSA_FALSE='#'
-@@ -18530,7 +18544,7 @@ case "$target" in
- $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
- 
-      ;;
--     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
-+     *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris*)
- 
- $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
- 
-@@ -18725,11 +18739,6 @@ if test "x$GCC" = "xyes"; then
-     toolexecdir="${libdir}"/gcc-lib/'$(target_alias)'
-     toolexeclibdir="${libdir}"
-   fi
--  multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
--  case $multi_os_directory in
--    .) ;; # Avoid trailing /.
--    ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
--  esac
- 
- else
-   toolexeclibdir="${libdir}"
-@@ -19052,6 +19061,10 @@ if test -z "${VAX_TRUE}" && test -z "${V
-   as_fn_error $? "conditional \"VAX\" was never defined.
- Usually this means the macro was only invoked conditionally." "$LINENO" 5
- fi
-+if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
-+  as_fn_error $? "conditional \"VAX\" was never defined.
-+Usually this means the macro was only invoked conditionally." "$LINENO" 5
-+fi
- if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
-   as_fn_error $? "conditional \"XTENSA\" was never defined.
- Usually this means the macro was only invoked conditionally." "$LINENO" 5
-@@ -20749,13 +20762,13 @@ s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-a
- /-all-all/d
- a\\
-       @ HOST="\$(HOST)\" \\\\\\
--      ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
--      ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
--      ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
--      ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
--      ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
-+      ; test ".\$\$HOST" = "." && HOST="$x sh $ax_enable_builddir_auxdir/config.guess $x" \\\\\\
-+      ; BUILD="$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x" \\\\\\
-+      ; use="$x basename "\$\@" -all $x"; n="$x echo \$\$BUILD | wc -w $x" \\\\\\
-+      ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test \$\$n = "0" ; then : \\\\\\
-+      ; BUILD="$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x" ; fi \\\\\\
-       ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
--      ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
-+      ; test "\$\$use" = "\$\@" && BUILD="$x echo "\$\$BUILD" | tail -1 $x" \\\\\\
-       ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
-       ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
- /dist-all *:/a\\
diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/patches/patch-ac
--- a/devel/libffi/patches/patch-ac     Wed Feb 26 18:14:48 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ac,v 1.3 2016/01/25 17:56:39 jperkin Exp $
-
-Install header files in backwards compatible way.
-
---- include/Makefile.in.orig   2014-11-12 11:59:58.000000000 +0000
-+++ include/Makefile.in
-@@ -314,7 +314,7 @@ top_srcdir = @top_srcdir@
- AUTOMAKE_OPTIONS = foreign
- DISTCLEANFILES = ffitarget.h
- EXTRA_DIST = ffi.h.in ffi_common.h
--includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
-+includesdir = $(includedir)
- nodist_includes_HEADERS = ffi.h ffitarget.h
- all: all-am
- 
diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/patches/patch-ad
--- a/devel/libffi/patches/patch-ad     Wed Feb 26 18:14:48 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2016/01/25 17:56:39 jperkin Exp $
-
-Install header files in backwards compatible way.
-
---- libffi.pc.in.orig  2014-11-08 12:47:24.000000000 +0000
-+++ libffi.pc.in
-@@ -2,7 +2,7 @@ prefix=@prefix@
- exec_prefix=@exec_prefix@
- libdir=@libdir@
- toolexeclibdir=@toolexeclibdir@
--includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
-+includedir=@includedir@
- 
- Name: @PACKAGE_NAME@
- Description: Library supporting Foreign Function Interfaces
diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/patches/patch-ae
--- a/devel/libffi/patches/patch-ae     Wed Feb 26 18:14:48 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-$NetBSD: patch-ae,v 1.8 2016/11/03 11:40:28 maya Exp $
-
-Make a minimal adjustment to support the various NetBSD mips ports.
-
---- src/mips/ffitarget.h.orig  2014-11-08 12:47:24.000000000 +0000
-+++ src/mips/ffitarget.h
-@@ -32,7 +32,7 @@
- #error "Please do not include ffitarget.h directly into your source.  Use ffi.h instead."
- #endif
- 
--#ifdef linux
-+#if defined(linux)
- # include <asm/sgidefs.h>
- #elif defined(__rtems__)
- /*
-@@ -41,8 +41,10 @@
- #define _MIPS_SIM_ABI32               1
- #define _MIPS_SIM_NABI32      2
- #define _MIPS_SIM_ABI64               3
--#elif !defined(__OpenBSD__)
-+#elif defined(__sgi)
- # include <sgidefs.h>
-+#else
-+# include <sys/cdefs.h>
- #endif
- 
- #  ifndef _ABIN32
diff -r 23c1d281e1ac -r dbdc3dce9345 devel/libffi/patches/patch-af
--- a/devel/libffi/patches/patch-af     Wed Feb 26 18:14:48 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@



Home | Main Index | Thread Index | Old Index