summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-06-01 03:53:03 +0000
committerryoon <ryoon@pkgsrc.org>2014-06-01 03:53:03 +0000
commit055ce1b2b26eab01f69c1efa746c5dc0ebb4eac7 (patch)
tree59617622e205f8f812805141b0082b9180c825b8
parent8bb5dbdd1f18f7391c7ebed21c36f3d7cec5ea1a (diff)
downloadpkgsrc-055ce1b2b26eab01f69c1efa746c5dc0ebb4eac7.tar.gz
Fix build under OpenBSD 5.5
A patch from upstream, https://github.com/atgreen/libffi/commit/76d19d004e36e99d261ee78261e2f52cea5e4ab1#diff-e2d5a00791bce9a01f99bc6fd613a39d
-rw-r--r--devel/libffi/distinfo4
-rw-r--r--devel/libffi/patches/patch-aa52
2 files changed, 49 insertions, 7 deletions
diff --git a/devel/libffi/distinfo b/devel/libffi/distinfo
index 4a88c169231..456ab9cf2e1 100644
--- a/devel/libffi/distinfo
+++ b/devel/libffi/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.32 2014/05/21 01:36:22 joerg Exp $
+$NetBSD: distinfo,v 1.33 2014/06/01 03:53:03 ryoon Exp $
SHA1 (libffi-3.0.13.tar.gz) = f5230890dc0be42fb5c58fbf793da253155de106
RMD160 (libffi-3.0.13.tar.gz) = 03f0627c0fcc800d38636258a2fab2d6bb8b6625
Size (libffi-3.0.13.tar.gz) = 845747 bytes
SHA1 (patch-Makefile.am) = 01109a0d5708835162a2d007a26decac5bb0bbac
-SHA1 (patch-aa) = 7b88ce9a55e6c0bc6e588909e1c14e4d7c79d60a
+SHA1 (patch-aa) = 79cc45c6051705bde3f3229aca4e0fa49ff149b9
SHA1 (patch-ac) = f3c6324f4334d23e684b4eca25173a13be5d37eb
SHA1 (patch-ad) = 8901a00abe25422e3e35f321a5fb89311185fc0b
SHA1 (patch-ae) = 3d8cd3bcd834876f6e60ae519dca8c0b0ba0d4d1
diff --git a/devel/libffi/patches/patch-aa b/devel/libffi/patches/patch-aa
index 0b0e17bd51a..5ea53e4404a 100644
--- a/devel/libffi/patches/patch-aa
+++ b/devel/libffi/patches/patch-aa
@@ -1,6 +1,9 @@
-$NetBSD: patch-aa,v 1.19 2014/02/11 07:21:28 dholland Exp $
+$NetBSD: patch-aa,v 1.20 2014/06/01 03:53:03 ryoon Exp $
---- configure.orig 2014-02-11 07:10:47.000000000 +0000
+* unwind: from https://github.com/atgreen/libffi/commit/76d19d004e36e99d261ee78261e2f52cea5e4ab1#diff-e2d5a00791bce9a01f99bc6fd613a39d
+ Fix build under OpenBSD 5.5
+
+--- configure.orig 2013-03-17 22:36:19.000000000 +0000
+++ configure
@@ -651,6 +651,8 @@ XTENSA_FALSE
XTENSA_TRUE
@@ -86,7 +89,46 @@ $NetBSD: patch-aa,v 1.19 2014/02/11 07:21:28 dholland Exp $
$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
-@@ -14840,11 +14854,6 @@ if test "x$GCC" = "xyes"; then
+@@ -14678,16 +14692,32 @@ fi
+
+
+ if test x$TARGET = xX86_64; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
+-$as_echo_n "checking assembler supports unwind section type... " >&6; }
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
++$as_echo_n "checking toolchain supports unwind section type... " >&6; }
+ if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+
+- libffi_cv_as_x86_64_unwind_section_type=yes
+- echo '.section .eh_frame,"a",@unwind' > conftest.s
+- if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
+- libffi_cv_as_x86_64_unwind_section_type=no
++ cat > conftest1.s << EOF
++.text
++.globl foo
++foo:
++jmp bar
++.section .eh_frame,"a",@unwind
++bar:
++EOF
++
++ cat > conftest2.c << EOF
++extern void foo();
++int main(){foo();}
++EOF
++
++ libffi_cv_as_x86_64_unwind_section_type=no
++ # we ensure that we can compile _and_ link an assembly file containing an @unwind section
++ # since the compiler can support it and not the linker (ie old binutils)
++ if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
++ $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
++ libffi_cv_as_x86_64_unwind_section_type=yes
+ fi
+
+ fi
+@@ -14840,11 +14870,6 @@ if test "x$GCC" = "xyes"; then
toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
toolexeclibdir='$(libdir)'
fi
@@ -98,7 +140,7 @@ $NetBSD: patch-aa,v 1.19 2014/02/11 07:21:28 dholland Exp $
else
toolexeclibdir='$(libdir)'
-@@ -15135,6 +15144,10 @@ if test -z "${TILE_TRUE}" && test -z "${
+@@ -15135,6 +15160,10 @@ if test -z "${TILE_TRUE}" && test -z "${
as_fn_error $? "conditional \"TILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
@@ -109,7 +151,7 @@ $NetBSD: patch-aa,v 1.19 2014/02/11 07:21:28 dholland Exp $
if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
as_fn_error $? "conditional \"XTENSA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
-@@ -16734,13 +16749,13 @@ s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-a
+@@ -16734,13 +16763,13 @@ s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-a
/-all-all/d
a\\
@ HOST="\$(HOST)\" \\\\\\