From bdab13eb60b5c2cd49e98b35b4e79206a683d74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 1 Jul 2021 21:59:05 +0100 Subject: [PATCH] libffi 3.3 --- SHA256SUMS.sources | 1 + parts.rst | 6 ++++++ sysc.py | 3 +++ sysc/libffi-3.3/checksums | 2 ++ sysc/libffi-3.3/libffi-3.3.sh | 19 +++++++++++++++++++ sysc/run2.sh | 2 ++ 6 files changed, 33 insertions(+) create mode 100644 sysc/libffi-3.3/checksums create mode 100755 sysc/libffi-3.3/libffi-3.3.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index ad30fb6..f928ed9 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -55,6 +55,7 @@ a32032bab36208509466654df12f507600dfe0313feebbcd218c32a70bf72a16 grep-2.4.tar.g 1ca41818a23c9c59ef1d5e1d00c0d5eaa2285d931c0fb059637d7c0cc02ad967 gzip-1.2.4.tar.gz 9f233d8b78e4351fe9dd2d50d83958a0e5af36f54e9818521458a08e058691ba heirloom-devtools-070527.tar.bz2 a4adadf76b496a6bc50795702253ecfcb6f0d159b68038f31a5362009340bca2 help2man-1.36.4.tar.gz +72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056 libffi-3.3.tar.gz 8e8ce6175d435e7df8c9bbb0e5fd5357691cdc28c1a2d00fdd9b47b7643bec3a libtool-1.4.tar.gz c4e63399b12f5858d11c44cea8e92f21cd564f8548e488dadc84046b424c80fc libtool-2.2.4.tar.bz2 eb8fb2c3e4b6e2d336608377050892b54c3c983b646c561836550863003c05d7 libunistring-0.9.10.tar.xz diff --git a/parts.rst b/parts.rst index 2bf2ea0..43af7a3 100644 --- a/parts.rst +++ b/parts.rst @@ -785,3 +785,9 @@ libunistring 0.9.10 Library for manipulating Unicode and C strings according to Unicode standard. This is a dependency of GNU Guile. + +libffi 3.3 +========== + +The libffi library provides a portable, high level programming interface to various +calling conventions. diff --git a/sysc.py b/sysc.py index 6e0ce62..a9bb0ca 100755 --- a/sysc.py +++ b/sysc.py @@ -192,3 +192,6 @@ class SysC(SysGeneral): # libunistring 0.9.10 self.get_file(["https://mirrors.kernel.org/gnu/libunistring/libunistring-0.9.10.tar.xz", "https://git.savannah.gnu.org/cgit/gnulib.git/snapshot/gnulib-52a06cb3.tar.gz"]) + + # libffi 3.3 + self.get_file("https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz") diff --git a/sysc/libffi-3.3/checksums b/sysc/libffi-3.3/checksums new file mode 100644 index 0000000..c030d35 --- /dev/null +++ b/sysc/libffi-3.3/checksums @@ -0,0 +1,2 @@ +7075d6d73018f2fb476becae14c3e99e048693c35171be2e720d0908c587c804 /usr/lib/musl/libffi.a +9820e2ba08793d65590abb65d6308332653cc3e318848f350a29321c96b3c21f /usr/lib/musl/libffi.la diff --git a/sysc/libffi-3.3/libffi-3.3.sh b/sysc/libffi-3.3/libffi-3.3.sh new file mode 100755 index 0000000..a8e79b3 --- /dev/null +++ b/sysc/libffi-3.3/libffi-3.3.sh @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + find . -name '*.info*' -delete + + autoreconf-2.69 -fi +} + +src_configure() { + ./configure \ + --prefix="${PREFIX}" \ + --libdir="${PREFIX}/lib/musl" \ + --build=i386-unknown-linux-musl \ + --disable-shared \ + --with-gcc-arch=generic \ + --enable-pax_emutramp +} diff --git a/sysc/run2.sh b/sysc/run2.sh index 2a5296a..7ca9714 100755 --- a/sysc/run2.sh +++ b/sysc/run2.sh @@ -70,6 +70,8 @@ build gperf-3.1 build libunistring-0.9.10 +build libffi-3.3 + if [ "$FORCE_TIMESTAMPS" = True ] ; then echo 'Forcing all files timestamps to be 0 unix time.' canonicalise_all_files_timestamp