deleted file mode 100644
@@ -1,34 +0,0 @@
-From dc67387ff4383bbf0f77ea6a45779983ca525baf Mon Sep 17 00:00:00 2001
-From: Ross Burton <ross.burton@intel.com>
-Date: Thu, 4 Feb 2016 16:22:50 +0000
-Subject: [PATCH] libffi: ensure sysroot paths are not in libffi.pc
-
-libffi's configure assumes that cross-compiled builds are complicated and
-introduces convoluted path manipulation involving gcc search paths to the
-install paths, resulting in paths like -L/usr/lib/../lib/ appearing in
-libffi.pc. When pkg-config is then used to obtain the linker flags for libffi
-it can't tell that this path is on the default search path and returns
-$SYSROOT/usr/lib/../lib which then gets written all over the target sysroot.
-This then means the sstate can't be shared and triggers QA errors.
-
-As this block is generally pointless, disable it.
-
-Upstream-Status: Inappropriate
-Signed-off-by: Ross Burton <ross.burton@intel.com>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 2237b05..658b4ae 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -449,7 +449,7 @@ done
-
- # These variables are only ever used when we cross-build to X86_WIN32.
- # And we only support this with GCC, so...
--if test "x$GCC" = "xyes"; then
-+if false; then
- if test -n "$with_cross_host" &&
- test x"$with_cross_host" != x"no"; then
- toolexecdir='${exec_prefix}'/'$(target_alias)'
@@ -10,9 +10,7 @@ A layer must exist above `libffi' that handles type conversions for values passe
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5e9a8df556846bb3d1edec0d968a2311"
-SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BPN}-${PV}.tar.gz \
- file://not-win32.patch \
- "
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[sha256sum] = "a699fda2b090c4b46cb79cf60c4dacfce480eb05742c0de66acf3af174a47f92"
EXTRA_OECONF = "--disable-builddir"
The patch has been redundant since the libffi 3.8.1 upgrade as upstream now skips this adjustment when `--libdir` is explicitly passed, which `autotools.bbclass` always does. [1] Built target, native, nativesdk, musl and lib32 multilib variants for qemux86-64/x86/arm/arm64/riscv64; libffi.pc is identical with and without the patch. [1] https://github.com/libffi/libffi/commit/d8127bda2811496d5606c56c5ea73b3c2e695fc1 https://github.com/libffi/libffi/pull/1044 Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- Note: Change can be applicable on 3.8.1 as well but as I sent upgrade using that as base .../libffi/libffi/not-win32.patch | 34 ------------------- meta/recipes-support/libffi/libffi_3.8.2.bb | 4 +-- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 meta/recipes-support/libffi/libffi/not-win32.patch