From: Stefan Schantl Date: Mon, 5 Sep 2016 12:27:22 +0000 (+0200) Subject: libffi: Update to 3.2.1 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fipfire-3.x.git;a=commitdiff_plain;h=95ea13fd8f26d6e217ec1658e267ea2987b7bc91 libffi: Update to 3.2.1 This is an update to the latest stable version of libffi. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- diff --git a/libffi/libffi.nm b/libffi/libffi.nm index db6ba4f2f..699061111 100644 --- a/libffi/libffi.nm +++ b/libffi/libffi.nm @@ -4,7 +4,7 @@ ############################################################################### name = libffi -version = 3.0.13 +version = 3.2.1 release = 1 groups = System/Libraries @@ -13,13 +13,25 @@ license = BSD summary = A portable foreign function interface library. description - The libffi library provides a portable, high level programming \ - interface to various calling conventions. This allows a programmer to \ + The libffi library provides a portable, high level programming + interface to various calling conventions. This allows a programmer to call any function specified by a call interface description at run time. end source_dl = ftp://sourceware.org/pub/libffi/ +build + prepare_cmds + # Fix include directories. + sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \ + -i include/Makefile.in + + sed -e '/^includedir/ s/=.*$/=@includedir@/' \ + -e 's/^Cflags: -I${includedir}/Cflags:/' \ + -i libffi.pc.in + end +end + packages package %{name} diff --git a/libffi/patches/libffi-3.0.13-fix-include-path.patch b/libffi/patches/libffi-3.0.13-fix-include-path.patch deleted file mode 100644 index 4502333a7..000000000 --- a/libffi/patches/libffi-3.0.13-fix-include-path.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -up libffi-3.0.13/include/Makefile.am.fixpath libffi-3.0.13/include/Makefile.am ---- libffi-3.0.13/include/Makefile.am.fixpath 2013-05-25 22:11:25.983889342 -0400 -+++ libffi-3.0.13/include/Makefile.am 2013-05-25 22:12:12.337890037 -0400 -@@ -5,5 +5,5 @@ 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 -diff -up libffi-3.0.13/include/Makefile.in.fixpath libffi-3.0.13/include/Makefile.in ---- libffi-3.0.13/include/Makefile.in.fixpath 2013-05-25 22:12:56.259890696 -0400 -+++ libffi-3.0.13/include/Makefile.in 2013-05-25 22:13:12.101890934 -0400 -@@ -250,7 +250,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 -up libffi-3.0.13/libffi.pc.in.fixpath libffi-3.0.13/libffi.pc.in ---- libffi-3.0.13/libffi.pc.in.fixpath 2013-05-25 22:14:21.037891968 -0400 -+++ libffi-3.0.13/libffi.pc.in 2013-05-25 22:14:31.652892128 -0400 -@@ -1,7 +1,7 @@ - prefix=@prefix@ - exec_prefix=@exec_prefix@ - libdir=@libdir@ --includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include -+includedir=@includedir@ - - Name: @PACKAGE_NAME@ - Description: Library supporting Foreign Function Interfaces