From patchwork Sat Sep 19 21:15:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 519779 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3AD5F1401DE for ; Sun, 20 Sep 2015 07:15:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b=H128cHEg; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C8FC9A2FE9; Sat, 19 Sep 2015 21:15:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TbaVnTLwCY1X; Sat, 19 Sep 2015 21:15:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 04928A2FDC; Sat, 19 Sep 2015 21:15:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EBB641CEE16 for ; Sat, 19 Sep 2015 21:15:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E5B298B54D for ; Sat, 19 Sep 2015 21:15:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vagnKDrtark7 for ; Sat, 19 Sep 2015 21:15:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id D0DD28AFF2 for ; Sat, 19 Sep 2015 21:15:20 +0000 (UTC) Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id F3ABA20A83 for ; Sat, 19 Sep 2015 23:15:17 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3nJPv94bF0z5vN4 for ; Sat, 19 Sep 2015 23:15:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded.rocks (Postfix) with ESMTP id 967BDEE0C64; Sat, 19 Sep 2015 23:15:16 +0200 (CEST) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1442697304; x=1443302105; bh=KBZ7k9PysfFPHDRAz4rZAyLvXj0x24NzhpJWOPtWxuo=; b=H128cHEg6oYP 9vgtUps2nfqAt6fjN5oAN9G1jBR36zFgXCb+2Smzb3QwZ58LXR21jlppiANtHOUJ /ueJOySVekC9thdymya1j99b510RuT2tsxARNWw4Wn8lsffeiph4ZQ7ZLVp0mial 35tH+LmOOc1wVjBc4hYpTaOV5EWjPcY9L4Tdtl1kY1Q7cDz9q3qdbd+sys0Yi1v2 0lvd5Gvl79STwFZJIWXOal9h3cD5yzjkHck99NAqwTrCYwU/a8MLlBQwZnZKK5Gy m2vJoXYBlzWaVgffi6NzhPcG+9TkYrdM3XlJTNLEPvP/TUEEUOxwkzqoTGHFtU5c c8woYZeSGw== X-Virus-Scanned: Debian amavisd-new at mail.embedded.rocks Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 1nKbBg8V5pDJ; Sat, 19 Sep 2015 23:15:04 +0200 (CEST) Received: from nzxt.fritz.box (xd9ba69b3.dyn.telefonica.de [217.186.105.179]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Sat, 19 Sep 2015 23:15:04 +0200 (CEST) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Sat, 19 Sep 2015 23:15:01 +0200 Message-Id: <1442697301-15881-1-git-send-email-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.5.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libffi: bump to version 3.2.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Also: - unfuzz patches #1 and #2 - remove applied patches upstream Signed-off-by: Jörg Krause --- .../0001-Fix-installation-location-of-libffi.patch | 17 +++++--- ...0002-Fix-use-of-compact-eh-frames-on-MIPS.patch | 26 ++++++++++-- package/libffi/0003-fix-typo.patch | 41 ------------------- ...Add-missing-GNU-stack-markings-in-win32.S.patch | 36 ----------------- .../libffi/0005-Fix-paths-in-libffi.pc.in.patch | 46 ---------------------- package/libffi/libffi.hash | 2 +- package/libffi/libffi.mk | 2 +- 7 files changed, 35 insertions(+), 135 deletions(-) delete mode 100644 package/libffi/0003-fix-typo.patch delete mode 100644 package/libffi/0004-Add-missing-GNU-stack-markings-in-win32.S.patch delete mode 100644 package/libffi/0005-Fix-paths-in-libffi.pc.in.patch diff --git a/package/libffi/0001-Fix-installation-location-of-libffi.patch b/package/libffi/0001-Fix-installation-location-of-libffi.patch index 56e08f7..0d8d6ae 100644 --- a/package/libffi/0001-Fix-installation-location-of-libffi.patch +++ b/package/libffi/0001-Fix-installation-location-of-libffi.patch @@ -1,7 +1,10 @@ -From 102c02de867bfe831b5366c89d66bcf170db962e Mon Sep 17 00:00:00 2001 +From 580f46a7bc6e9fea3a2227b5268cc3aed1d60e3b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 7 Feb 2013 22:26:56 +0100 -Subject: [PATCH] Fix installation location of libffi +Subject: [PATCH] Fix installation location of libffi +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit The libffi is currently declared as toolexeclib_LTLIBRARIES. In many cases, toolexeclib libraries will be installed in /usr/lib, so it @@ -28,15 +31,17 @@ the more standard lib_LTLIBRARIES, which ensures that the libffi library is always installed in /usr/lib. Signed-off-by: Thomas Petazzoni +[unfuzz for 3.2.1] +Signed-off-by: Jörg Krause --- - Makefile.am | 2 +- + Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am -index 6f669ca..b60bcc1 100644 +index 0e40451..309474c 100644 --- a/Makefile.am +++ b/Makefile.am -@@ -93,7 +93,7 @@ FLAGS_TO_PASS = $(AM_MAKEFLAGS) +@@ -104,7 +104,7 @@ FLAGS_TO_PASS = $(AM_MAKEFLAGS) MAKEOVERRIDES= @@ -46,5 +51,5 @@ index 6f669ca..b60bcc1 100644 libffi_la_SOURCES = src/prep_cif.c src/types.c \ -- -1.7.9.5 +2.5.3 diff --git a/package/libffi/0002-Fix-use-of-compact-eh-frames-on-MIPS.patch b/package/libffi/0002-Fix-use-of-compact-eh-frames-on-MIPS.patch index 15d1c96..4b031fe 100644 --- a/package/libffi/0002-Fix-use-of-compact-eh-frames-on-MIPS.patch +++ b/package/libffi/0002-Fix-use-of-compact-eh-frames-on-MIPS.patch @@ -1,3 +1,11 @@ +From 31b6b6bc14197cd4183bdbd311fddeb36b5ae100 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= +Date: Sat, 19 Sep 2015 22:53:29 +0200 +Subject: [PATCH] Fix use of compact eh frames on MIPS +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + Newer MIPS toolchains use a different (compact) eh_frame format. libffi don't like them, so we have to switch to the older format. @@ -5,10 +13,17 @@ This patch add -mno-compact-eh to CFLAGS when compiling for Mips and compiler support it. Signed-off-by: Jérôme Pouiller +[unfuzz for 3.2.1] +Signed-off-by: Jörg Krause +--- + configure.ac | 10 ++++++++++ + 1 file changed, 10 insertions(+) ---- a/configure.ac 2013-08-08 14:53:11.884267155 +0200 -+++ b/configure.ac 2013-08-08 14:54:14.437493244 +0200 -@@ -430,6 +430,16 @@ +diff --git a/configure.ac b/configure.ac +index a7bf5ee..36cd0d4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -469,6 +469,16 @@ esac AM_CONDITIONAL(FFI_EXEC_TRAMPOLINE_TABLE, test x$FFI_EXEC_TRAMPOLINE_TABLE = x1) AC_SUBST(FFI_EXEC_TRAMPOLINE_TABLE) @@ -23,5 +38,8 @@ Signed-off-by: Jérôme Pouiller +fi + if test x$TARGET = xX86_64; then - AC_CACHE_CHECK([assembler supports unwind section type], + AC_CACHE_CHECK([toolchain supports unwind section type], libffi_cv_as_x86_64_unwind_section_type, [ +-- +2.5.3 + diff --git a/package/libffi/0003-fix-typo.patch b/package/libffi/0003-fix-typo.patch deleted file mode 100644 index f20804b..0000000 --- a/package/libffi/0003-fix-typo.patch +++ /dev/null @@ -1,41 +0,0 @@ -From cbc5a3c0200aa6c2cf8d6798d69a21501557c83f Mon Sep 17 00:00:00 2001 -From: Ryan Hill -Date: Sat, 31 May 2014 08:26:34 -0400 -Subject: [PATCH 05/10] Fix typo - -This patch was borrowed from upstream, commit -cbc5a3c0200aa6c2cf8d6798d69a21501557c83f, and will be part of the next -3.1.1 release. - -Signed-off-by: Thomas Petazzoni ---- - include/ffi.h.in | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/include/ffi.h.in b/include/ffi.h.in -index 93c776f..70c6179 100644 ---- a/include/ffi.h.in -+++ b/include/ffi.h.in -@@ -1,5 +1,5 @@ - /* -----------------------------------------------------------------*-C-*- -- libffi @VERSION@ - Copyright (c) 2011 Anthony Green -+ libffi @VERSION@ - Copyright (c) 2011, 2014 Anthony Green - - Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc. - - Permission is hereby granted, free of charge, to any person -@@ -221,10 +221,10 @@ typedef struct { - #endif - } ffi_cif; - --#if HAVE_LONG_DOUBLE_VARIANT -+#if @HAVE_LONG_DOUBLE_VARIANT@ - /* Used to adjust size/alignment of ffi types. */ - void ffi_prep_types (ffi_abi abi); --# endif -+#endif - - /* Used internally, but overridden by some architectures */ - ffi_status ffi_prep_cif_core(ffi_cif *cif, --- -2.0.0 - diff --git a/package/libffi/0004-Add-missing-GNU-stack-markings-in-win32.S.patch b/package/libffi/0004-Add-missing-GNU-stack-markings-in-win32.S.patch deleted file mode 100644 index 6097287..0000000 --- a/package/libffi/0004-Add-missing-GNU-stack-markings-in-win32.S.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 978c9540154d320525488db1b7049277122f736d Mon Sep 17 00:00:00 2001 -From: Samuli Suominen -Date: Sat, 31 May 2014 08:53:10 -0400 -Subject: [PATCH 06/10] Add missing GNU stack markings in win32.S - -This patch was borrowed from upstream, commit -978c9540154d320525488db1b7049277122f736d, and will be part of the next -3.1.1 release. - -Signed-off-by: Thomas Petazzoni ---- - src/x86/win32.S | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/src/x86/win32.S b/src/x86/win32.S -index daf0e79..e42baf2 100644 ---- a/src/x86/win32.S -+++ b/src/x86/win32.S -@@ -1,5 +1,6 @@ - /* ----------------------------------------------------------------------- -- win32.S - Copyright (c) 1996, 1998, 2001, 2002, 2009 Red Hat, Inc. -+ win32.S - Copyright (c) 2014 Anthony Green -+ Copyright (c) 1996, 1998, 2001, 2002, 2009 Red Hat, Inc. - Copyright (c) 2001 John Beniton - Copyright (c) 2002 Ranjit Mathew - Copyright (c) 2009 Daniel Witte -@@ -1304,3 +1305,6 @@ L_ffi_closure_SYSV_inner$stub: - - #endif /* !_MSC_VER */ - -+#if defined __ELF__ && defined __linux__ -+ .section .note.GNU-stack,"",@progbits -+#endif --- -2.0.0 - diff --git a/package/libffi/0005-Fix-paths-in-libffi.pc.in.patch b/package/libffi/0005-Fix-paths-in-libffi.pc.in.patch deleted file mode 100644 index fd110a6..0000000 --- a/package/libffi/0005-Fix-paths-in-libffi.pc.in.patch +++ /dev/null @@ -1,46 +0,0 @@ -From ad0d1d239afc7ad09203847793dcc020856d1035 Mon Sep 17 00:00:00 2001 -From: Samuli Suominen -Date: Thu, 12 Jun 2014 06:30:21 -0400 -Subject: [PATCH 09/10] Fix paths in libffi.pc.in - -This patch was borrowed from upstream, commit -ad0d1d239afc7ad09203847793dcc020856d1035, and will be part of the next -3.1.1 release. - -Signed-off-by: Thomas Petazzoni ---- - configure.ac | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 4f7fe3f..bbc1a9d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -590,11 +590,11 @@ AC_ARG_ENABLE(purify-safety, - if test "x$GCC" = "xyes"; then - if test -n "$with_cross_host" && - test x"$with_cross_host" != x"no"; then -- toolexecdir='$(exec_prefix)/$(target_alias)' -- toolexeclibdir='$(toolexecdir)/lib' -+ toolexecdir="${exec_prefix}"/'$(target_alias)' -+ toolexeclibdir="${toolexecdir}"/lib - else -- toolexecdir='$(libdir)/gcc-lib/$(target_alias)' -- toolexeclibdir='$(libdir)' -+ toolexecdir="${libdir}"/gcc-lib/'$(target_alias)' -+ toolexeclibdir="${libdir}" - fi - multi_os_directory=`$CC $CFLAGS -print-multi-os-directory` - case $multi_os_directory in -@@ -603,7 +603,7 @@ if test "x$GCC" = "xyes"; then - esac - AC_SUBST(toolexecdir) - else -- toolexeclibdir='$(libdir)' -+ toolexeclibdir="${libdir}" - fi - AC_SUBST(toolexeclibdir) - --- -2.0.0 - diff --git a/package/libffi/libffi.hash b/package/libffi/libffi.hash index 4c25fd3..63a9203 100644 --- a/package/libffi/libffi.hash +++ b/package/libffi/libffi.hash @@ -1,2 +1,2 @@ # From ftp://sourceware.org/pub/libffi/sha512.sum -sha512 8994973d75facf5ad928c270e17b1a56e24d1543af75b93731a0048e747df27e4190a736b6dc2dca7d43de1d7e88891220304802c10fcccdcebee9c9ffd3d1b9 libffi-3.1.tar.gz +sha512 980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483 libffi-3.2.1.tar.gz diff --git a/package/libffi/libffi.mk b/package/libffi/libffi.mk index 5644c1e..8f0f72d 100644 --- a/package/libffi/libffi.mk +++ b/package/libffi/libffi.mk @@ -4,7 +4,7 @@ # ################################################################################ -LIBFFI_VERSION = 3.1 +LIBFFI_VERSION = 3.2.1 LIBFFI_SITE = ftp://sourceware.org/pub/libffi LIBFFI_LICENSE = MIT LIBFFI_LICENSE_FILES = LICENSE