Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haikuports/haikuports
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8cbac8a8a8a0
Choose a base ref
...
head repository: haikuports/haikuports
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 46a864c9eeab
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Aug 16, 2021

  1. libffi: bump version

    diversys committed Aug 16, 2021
    2
    Copy the full SHA
    46a864c View commit details
Showing with 19 additions and 20 deletions.
  1. +7 −8 dev-libs/libffi/{libffi-3.2.1.recipe → libffi-3.4.2.recipe}
  2. +12 −12 dev-libs/libffi/patches/{libffi-3.2.1.patchset → libffi-3.4.2.patchset}
Original file line number Diff line number Diff line change
@@ -4,28 +4,28 @@ user a C programming language interface used to call natively compiled \
functions. Libffi is typically used as a bridging technology between compiled \
and interpreted language implementations. It can also be used to implement \
plugins."
HOMEPAGE="http://sourceware.org/libffi"
COPYRIGHT="1996-2013 Anthony Green, Red Hat, Inc and others."
HOMEPAGE="https://sourceware.org/libffi"
COPYRIGHT="1996-2021 Anthony Green, Red Hat, Inc and others."
LICENSE="MIT"
REVISION="6"
SOURCE_URI="ftp://sourceware.org/pub/libffi/libffi-$portVersion.tar.gz"
CHECKSUM_SHA256="d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37"
REVISION="1"
SOURCE_URI="https://github.com/libffi/libffi/releases/download/v$portVersion/libffi-$portVersion.tar.gz"
CHECKSUM_SHA256="540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620"
PATCHES="libffi-$portVersion.patchset"

ARCHITECTURES="!x86_gcc2 x86 x86_64 sparc m68k"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"

PROVIDES="
libffi$secondaryArchSuffix = $portVersion compat >= 3
lib:libffi$secondaryArchSuffix = 6.0.4 compat >= 6
lib:libffi$secondaryArchSuffix = 8.0.1 compat >= 8
"
REQUIRES="
haiku$secondaryArchSuffix
"

PROVIDES_devel="
libffi${secondaryArchSuffix}_devel = $portVersion
devel:libffi$secondaryArchSuffix = 6.0.4 compat >= 6
devel:libffi$secondaryArchSuffix = 8.0.1 compat >= 8
"
REQUIRES_devel="
libffi$secondaryArchSuffix == $portVersion base
@@ -52,7 +52,6 @@ INSTALL()

rm $libDir/libffi.la
mkdir -p $includeDir
mv -f $libDir/libffi-$portVersion/include/*.h* $includeDir
rm -rf $libDir/libffi-$portVersion

prepareInstalledDevelLibs libffi
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
From 7346bc44a1d1f47b38d556b0cc291fc948725042 Mon Sep 17 00:00:00 2001
From f32feb728fef969265603f6476ebc2bb05d5b74f Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 21 Sep 2014 18:59:06 +0200
Date: Mon, 16 Aug 2021 09:28:50 +0300
Subject: gcc2 fix.


diff --git a/include/ffi_common.h b/include/ffi_common.h
index 650ca69..02a1913 100644
index 2bd31b0..d9e1997 100644
--- a/include/ffi_common.h
+++ b/include/ffi_common.h
@@ -115,7 +115,7 @@ typedef signed int SINT64 __attribute__((__mode__(__DI__)));
@@ -165,7 +165,7 @@ typedef signed int SINT64 __attribute__((__mode__(__DI__)));

typedef float FLOAT32;

@@ -18,31 +18,31 @@ index 650ca69..02a1913 100644
#endif
#define LIKELY(x) __builtin_expect(!!(x),1)
--
1.8.3.4
2.30.2


From 46ac95d3636b845de417cc97c426b98c89d9ea54 Mon Sep 17 00:00:00 2001
From 3fb7941ca3d21a00ae902d67b8e1b545980bb616 Mon Sep 17 00:00:00 2001
From: Michael Lotz <mmlr@mlotz.ch>
Date: Fri, 12 Jun 2020 13:14:57 +0000
Date: Mon, 16 Aug 2021 09:29:06 +0300
Subject: Mark Haiku as needing PROT_WRITE | PROTO_EXEC for allocations.

It uses the heap as a fallback, but its areas are marked non-executable
in Haiku so function calls into there will segfault with a permission
denied error.

diff --git a/configure b/configure
index c6da467..d856e1a 100755
index 94e149c..c66f2aa 100755
--- a/configure
+++ b/configure
@@ -18530,7 +18530,7 @@ case "$target" in
@@ -18658,7 +18658,7 @@ case "$target" in
$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h

;;
- *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
+ *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-*-haiku*)
- *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
+ *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android* | *-*-haiku*)

$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h

--
2.26.0
2.30.2