summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-02-04 16:22:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-04 23:39:03 +0000
commitd3753dd6c34a381b0fdd0d69d3a8408101c34de5 (patch)
tree03ec7ccfecac6253de78cb2337ccb98b722b4546
parentc72614b8c38535539c0a01896dc03f638422cfc0 (diff)
downloadpoky-d3753dd6c34a381b0fdd0d69d3a8408101c34de5.tar.gz
libffi: ensure sysroot paths are not in libffi.pc
Remove a previous patch and solve the problem in a different way, as the same root cause was causing the absolute sysroot path to appear in libffi.pc. (From OE-Core rev: 9ffc1757a1578832463d29f558914c3b489a3782) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-gnome/libffi/libffi/fix-libffi.la-location.patch18
-rw-r--r--meta/recipes-gnome/libffi/libffi/not-win32.patch22
-rw-r--r--meta/recipes-gnome/libffi/libffi_3.2.1.bb2
3 files changed, 23 insertions, 19 deletions
diff --git a/meta/recipes-gnome/libffi/libffi/fix-libffi.la-location.patch b/meta/recipes-gnome/libffi/libffi/fix-libffi.la-location.patch
deleted file mode 100644
index 775bffc662..0000000000
--- a/meta/recipes-gnome/libffi/libffi/fix-libffi.la-location.patch
+++ /dev/null
@@ -1,18 +0,0 @@
1
2Upstream-Status: Inappropriate
3
4Signed-off-by: Saul Wold <sgw@linux.intel.com>
5
6Index: libffi-3.0.13/Makefile.am
7===================================================================
8--- libffi-3.0.13.orig/Makefile.am
9+++ libffi-3.0.13/Makefile.am
10@@ -98,7 +98,7 @@ FLAGS_TO_PASS = $(AM_MAKEFLAGS)
11
12 MAKEOVERRIDES=
13
14-toolexeclib_LTLIBRARIES = libffi.la
15+lib_LTLIBRARIES = libffi.la
16 noinst_LTLIBRARIES = libffi_convenience.la
17
18 libffi_la_SOURCES = src/prep_cif.c src/types.c \
diff --git a/meta/recipes-gnome/libffi/libffi/not-win32.patch b/meta/recipes-gnome/libffi/libffi/not-win32.patch
new file mode 100644
index 0000000000..1e90125edd
--- /dev/null
+++ b/meta/recipes-gnome/libffi/libffi/not-win32.patch
@@ -0,0 +1,22 @@
1libffi's configure assumes that cross-compiled builds are complicated and
2introduces convoluted path manipulation involving gcc search paths to the
3install paths, resulting in paths like -L/usr/lib/../lib/ appearing in
4libffi.pc. When pkg-config is then used to obtain the linker flags for libffi
5it can't tell that this path is on the default search path and returns
6$SYSROOT/usr/lib/../lib which then gets written all over the target sysroot.
7This then means the sstate can't be shared and triggers QA errors.
8
9As this block is generally pointless, disable it.
10
11Upstream-Status: Inappropriate
12Signed-off-by: Ross Burton <ross.burton@intel.com>
13
14--- a/configure.ac~ 2014-11-12 11:56:51.000000000 +0000
15+++ b/configure.ac 2016-02-04 14:02:53.765710532 +0000
16@@ -593,5 +593,5 @@
17 # These variables are only ever used when we cross-build to X86_WIN32.
18 # And we only support this with GCC, so...
19-if test "x$GCC" = "xyes"; then
20+if false; then
21 if test -n "$with_cross_host" &&
22 test x"$with_cross_host" != x"no"; then \ No newline at end of file
diff --git a/meta/recipes-gnome/libffi/libffi_3.2.1.bb b/meta/recipes-gnome/libffi/libffi_3.2.1.bb
index fd916caf7e..72e25fb9d5 100644
--- a/meta/recipes-gnome/libffi/libffi_3.2.1.bb
+++ b/meta/recipes-gnome/libffi/libffi_3.2.1.bb
@@ -10,7 +10,7 @@ LICENSE = "MIT"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b" 10LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b"
11 11
12SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \ 12SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \
13 file://fix-libffi.la-location.patch \ 13 file://not-win32.patch \
14 file://0001-mips-Use-compiler-internal-define-for-linux.patch \ 14 file://0001-mips-Use-compiler-internal-define-for-linux.patch \
15 " 15 "
16 16