]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
libffi: Update to 3.0.13.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2013 12:43:18 +0000 (12:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Jul 2013 12:43:18 +0000 (12:43 +0000)
Create compat package because of soname bump.

compat-libffi/compat-libffi.nm [new file with mode: 0644]
libffi/libffi.nm
libffi/patches/libffi-3.0.13-fix-include-path.patch [new file with mode: 0644]

diff --git a/compat-libffi/compat-libffi.nm b/compat-libffi/compat-libffi.nm
new file mode 100644 (file)
index 0000000..6b1df29
--- /dev/null
@@ -0,0 +1,48 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = compat-libffi
+version    = 3.0.10
+release    = 1
+thisapp    = libffi-%{version}
+
+groups     = System/Libraries
+url        = http://sourceware.org/libffi
+license    = BSD
+summary    = A portable foreign function interface library.
+
+description
+       This package is for compatability to old versions only, and provides no
+       Development libraries.
+
+       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
+       install_cmds
+               # Remove all development files, because nothing
+               # should link against this.
+               rm -rvf %{BUILDROOT}%{libdir}/pkgconfig
+               rm -rvf %{BUILDROOT}%{libdir}/libffi-%{version}
+               rm -rvf %{BUILDROOT}%{libdir}/*.so
+               rm -rvf %{BUILDROOT}%{mandir}
+       end
+end
+
+packages
+       package %{name}
+               obsoletes
+                       libffi <= %{thisver}
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index 284af95b64feb8d4dd7c616f5a7881c3a2f148f1..db6ba4f2f5bf064957a47e26eb6db84ea10eb6d8 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = libffi
-version    = 3.0.9
+version    = 3.0.13
 release    = 1
 
 groups     = System/Libraries
@@ -18,11 +18,10 @@ description
        call any function specified by a call interface description at run time.
 end
 
-source_dl  =
+source_dl  = ftp://sourceware.org/pub/libffi/
 
 packages
        package %{name}
-       end
 
        package %{name}-devel
                template DEVEL
diff --git a/libffi/patches/libffi-3.0.13-fix-include-path.patch b/libffi/patches/libffi-3.0.13-fix-include-path.patch
new file mode 100644 (file)
index 0000000..4502333
--- /dev/null
@@ -0,0 +1,34 @@
+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