Skip to contentSkip to conversation

libffi: bump to version 3.3-rc0

PATCH New Fabrice Fontaine 2 participants 2 messages Nov 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libffi: bump to version 3.3-rc0

- Update site to github (for the time being, as 3.3-rc0 is a release candidate, it is not published on the official ftp)
- Update third patch
- Remove fourth and fifth patches (already in version)
- Remove uneeded hooks, as public headers are now installed in the standard path since
https://github.com/libffi/libffi/commit/982b89c01aca99c7bc229914fc1521f96930919b
- New risc-v support:
https://github.com/libffi/libffi/commit/3840d49aaa831d649b1597518a2903dfed0d57f3

Fixes:
- http://autobuild.buildroot.org/results/3edf66362ea5a83291f19373e4b6f2e5cce98d7b

---
 ...-hardfloat-in-the-MIPS-assembly-code.patch |  5 +-
 ...004-m68k-support-ISA-A-Coldfire-CPUs.patch | 77 -------------------
 ...005-mips-use-__linux__-and-not-linux.patch | 37 ---------
 package/libffi/libffi.hash                    |  4 +-
 package/libffi/libffi.mk                      | 26 +------
 5 files changed, 8 insertions(+), 141 deletions(-)
 delete mode 100644 package/libffi/0004-m68k-support-ISA-A-Coldfire-CPUs.patch
 delete mode 100644 package/libffi/0005-mips-use-__linux__-and-not-linux.patch
package/libffi/0003-libffi-enable-hardfloat-in-the-MIPS-assembly-code.patch +4 -1
index 776990df65..168972a871 100644
@@ -7,6 +7,8 @@ This way it will be possible to build it for soft-float. This is only a
 temporary fix. The package needs to be fixed properly.
 
 Signed-off-by: Vicente Olivert Riera <[email protected]>
+[Update for 3.3-rc0]
+Signed-off-by: Fabrice Fontaine <[email protected]>
 ---
  src/mips/n32.S | 1 +
  src/mips/o32.S | 1 +
@@ -17,9 +19,10 @@ index c6985d3..dc842d5 100644
 --- a/src/mips/n32.S
 +++ b/src/mips/n32.S
 @@ -44,6 +44,7 @@
- 	.abicalls
  #endif
+ #if !defined(__mips_isa_rev) || (__mips_isa_rev<6)
  	.set mips4
+ #endif
 +	.set hardfloat
  	.text
  	.align	2
package/libffi/0004-m68k-support-ISA-A-Coldfire-CPUs.patch deleted +0 -77

77 lines not on this page · raw message

package/libffi/0005-mips-use-__linux__-and-not-linux.patch deleted +0 -37
deleted file mode 100644
index a48f3d3b6d..0000000000
@@ -1,37 +0,0 @@
-From 1f43e5edfd91bee80e518432b80db01f1bf226e3 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <[email protected]>
-Date: Sun, 22 Oct 2017 15:02:11 +0200
-Subject: [PATCH] mips: use __linux__ and not linux
-
-The "linux" symbol is not POSIX compliant [1], and therefore not
-defined when building with -std=c99. Due to this, the linux
-conditional block doesn't get used on Linux when building Python 3.x
-(which is built with -std=c99). To fix this, we use the POSIX
-compliant __linux__ symbol, which is defined when -std=c99 is used.
-
-This fixes the build of Python 3.x on MIPS/musl configuration, as it
-makes sures that <asm/sgidefs.h> gets included and not <sgidefs.h>.
-
-[1] https://sourceforge.net/p/predef/wiki/OperatingSystems/
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
----
- src/mips/ffitarget.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/mips/ffitarget.h b/src/mips/ffitarget.h
-index 717d659..6faa358 100644
---- a/src/mips/ffitarget.h
-+++ b/src/mips/ffitarget.h
-@@ -32,7 +32,7 @@
- #error "Please do not include ffitarget.h directly into your source.  Use ffi.h instead."
- #endif
- 
--#ifdef linux
-+#ifdef __linux__
- # include <asm/sgidefs.h>
- #elif defined(__rtems__)
- /*
--- 
-2.13.6
-
package/libffi/libffi.hash +2 -2
index 0153f7e37e..97deb988e6 100644
@@ -1,4 +1,4 @@
-# From ftp://sourceware.org/pub/libffi/sha512.sum
-sha512	980ca30a8d76f963fca722432b1fe5af77d7a4e4d2eac5144fbc5374d4c596609a293440573f4294207e1bdd9fda80ad1e1cafb2ffb543df5a275bc3bd546483  libffi-3.2.1.tar.gz
+# Locally calculated
+sha256	db41cfb9ec8052fcd116a94c12237303c4447af4844d50e4fea7163661e31743  libffi-v3.3-rc0.tar.gz
 # License files, locally calculated
 sha256	0f4d7a0bfb83c37465d42dc305f124189196cc0cc2cc8d6f8461103682aebbc5  LICENSE
package/libffi/libffi.mk +2 -24
index 32e01e9cd1..b21d12cbd4 100644
@@ -4,34 +4,12 @@
 #
 ################################################################################
 
-LIBFFI_VERSION = 3.2.1
-LIBFFI_SITE = ftp://sourceware.org/pub/libffi
+LIBFFI_VERSION = v3.3-rc0
+LIBFFI_SITE = $(call github,libffi,libffi,$(LIBFFI_VERSION))
 LIBFFI_LICENSE = MIT
 LIBFFI_LICENSE_FILES = LICENSE
 LIBFFI_INSTALL_STAGING = YES
 LIBFFI_AUTORECONF = YES
 
-# Move the headers to the usual location, and adjust the .pc file
-# accordingly.
-define LIBFFI_MOVE_HEADERS
-	mv $(1)/lib/libffi-$(LIBFFI_VERSION)/include/*.h $(1)/include/
-	$(SED) '/^includedir.*/d' -e '/^Cflags:.*/d' \
-		$(1)/lib/pkgconfig/libffi.pc
-	rm -rf $(1)/lib/libffi-*
-endef
-
-LIBFFI_MOVE_STAGING_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(STAGING_DIR)/usr)
-LIBFFI_POST_INSTALL_STAGING_HOOKS += LIBFFI_MOVE_STAGING_HEADERS
-
-HOST_LIBFFI_MOVE_HOST_HEADERS = $(call LIBFFI_MOVE_HEADERS,$(HOST_DIR))
-HOST_LIBFFI_POST_INSTALL_HOOKS += HOST_LIBFFI_MOVE_HOST_HEADERS
-
-# Remove headers that are not at the usual location from the target
-define LIBFFI_REMOVE_TARGET_HEADERS
-	$(RM) -rf $(TARGET_DIR)/usr/lib/libffi-$(LIBFFI_VERSION)
-endef
-
-LIBFFI_POST_INSTALL_TARGET_HOOKS += LIBFFI_REMOVE_TARGET_HEADERS
-
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 libffi: bump to version 3.3-rc0

Hello,

Quoted 14 lines · Fabrice Fontaine

- Update site to github (for the time being, as 3.3-rc0 is a release candidate, it is not published on the official ftp)
- Update third patch
- Remove fourth and fifth patches (already in version)
- Remove uneeded hooks, as public headers are now installed in the standard path since
https://github.com/libffi/libffi/commit/982b89c01aca99c7bc229914fc1521f96930919b
- New risc-v support:
https://github.com/libffi/libffi/commit/3840d49aaa831d649b1597518a2903dfed0d57f3

Fixes:
- http://autobuild.buildroot.org/results/3edf66362ea5a83291f19373e4b6f2e5cce98d7b

Quoted 9 lines
---
 ...-hardfloat-in-the-MIPS-assembly-code.patch |  5 +-
 ...004-m68k-support-ISA-A-Coldfire-CPUs.patch | 77 -------------------
 ...005-mips-use-__linux__-and-not-linux.patch | 37 ---------
 package/libffi/libffi.hash                    |  4 +-
 package/libffi/libffi.mk                      | 26 +------
 5 files changed, 8 insertions(+), 141 deletions(-)
 delete mode 100644 package/libffi/0004-m68k-support-ISA-A-Coldfire-CPUs.patch
 delete mode 100644 package/libffi/0005-mips-use-__linux__-and-not-linux.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com