rename to a mor general name
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2460 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
13
dev-libs/libffi/files/libffi-3.0.9-arm-oabi.patch
Normal file
13
dev-libs/libffi/files/libffi-3.0.9-arm-oabi.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42289
|
||||
|
||||
--- src/arm/sysv.S
|
||||
+++ src/arm/sysv.S
|
||||
@@ -235,7 +235,7 @@ ARM_FUNC_START ffi_closure_SYSV
|
||||
stmfd sp!, {ip, lr}
|
||||
UNWIND .save {r0, lr}
|
||||
add r2, sp, #8
|
||||
- .pad #16
|
||||
+ UNWIND .pad #16
|
||||
sub sp, sp, #16
|
||||
str sp, [sp, #8]
|
||||
add r1, sp, #8
|
||||
32
dev-libs/libffi/files/libffi-3.0.9-define_target-1.patch
Normal file
32
dev-libs/libffi/files/libffi-3.0.9-define_target-1.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
Submitted By: Your Name (your at email dot address)
|
||||
Date: 2010-09-25
|
||||
Initial Package Version: 3.0.9
|
||||
Origin: http://osdir.com/ml/java.openjdk.distro-packaging.devel/2008-07/msg00150.html
|
||||
Upstream Status: unknown
|
||||
Description: There is a quick fix to make libffi compatible with the icedtea build system
|
||||
edit the file /usr/lib/libffi-3.0.9/ffi.h and change the line about one page from the top
|
||||
from
|
||||
/* Specify wich architecture libffi is configures for. */
|
||||
#define ARM
|
||||
|
||||
to
|
||||
/* Specify wich architecture libffi is configures for. */
|
||||
#ifndef ARM
|
||||
#define ARM
|
||||
#endif
|
||||
|
||||
then it should work!
|
||||
|
||||
diff -Naur libffi-3.0.9.orig/include/ffi.h.in libffi-3.0.9/include/ffi.h.in
|
||||
--- libffi-3.0.9.orig/include/ffi.h.in 2009-12-29 15:22:26.000000000 +0000
|
||||
+++ libffi-3.0.9/include/ffi.h.in 2010-09-25 16:02:04.965551063 +0000
|
||||
@@ -57,7 +57,9 @@
|
||||
#endif
|
||||
|
||||
/* Specify which architecture libffi is configured for. */
|
||||
+#ifndef @TARGET@
|
||||
#define @TARGET@
|
||||
+#endif
|
||||
|
||||
/* ---- System configuration information --------------------------------- */
|
||||
|
||||
62
dev-libs/libffi/files/libffi-3.0.9-interix.patch
Normal file
62
dev-libs/libffi/files/libffi-3.0.9-interix.patch
Normal file
@@ -0,0 +1,62 @@
|
||||
diff --git a/configure b/configure
|
||||
index d849c7a..fed97e2 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -12180,7 +12180,7 @@ case "$host" in
|
||||
i?86-*-freebsd* | i?86-*-openbsd*)
|
||||
TARGET=X86_FREEBSD; TARGETDIR=x86
|
||||
;;
|
||||
- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
|
||||
+ i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-interix*)
|
||||
TARGET=X86_WIN32; TARGETDIR=x86
|
||||
# All mingw/cygwin/win32 builds require this for sharedlib
|
||||
AM_LTLDFLAGS="-no-undefined"
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 6314a6a..4e178a2 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -80,7 +80,7 @@ case "$host" in
|
||||
i?86-*-freebsd* | i?86-*-openbsd*)
|
||||
TARGET=X86_FREEBSD; TARGETDIR=x86
|
||||
;;
|
||||
- i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
|
||||
+ i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-interix*)
|
||||
TARGET=X86_WIN32; TARGETDIR=x86
|
||||
# All mingw/cygwin/win32 builds require this for sharedlib
|
||||
AM_LTLDFLAGS="-no-undefined"
|
||||
diff --git a/src/closures.c b/src/closures.c
|
||||
index bc087d9..65bf6a9 100644
|
||||
--- a/src/closures.c
|
||||
+++ b/src/closures.c
|
||||
@@ -193,11 +193,11 @@ static int dlmalloc_trim(size_t) MAYBE_UNUSED;
|
||||
static size_t dlmalloc_usable_size(void*) MAYBE_UNUSED;
|
||||
static void dlmalloc_stats(void) MAYBE_UNUSED;
|
||||
|
||||
-#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__)
|
||||
+#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX)
|
||||
/* Use these for mmap and munmap within dlmalloc.c. */
|
||||
static void *dlmmap(void *, size_t, int, int, int, off_t);
|
||||
static int dlmunmap(void *, size_t);
|
||||
-#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) */
|
||||
+#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX) */
|
||||
|
||||
#define mmap dlmmap
|
||||
#define munmap dlmunmap
|
||||
@@ -207,7 +207,7 @@ static int dlmunmap(void *, size_t);
|
||||
#undef mmap
|
||||
#undef munmap
|
||||
|
||||
-#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__)
|
||||
+#if !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX)
|
||||
|
||||
#if FFI_MMAP_EXEC_SELINUX
|
||||
|
||||
@@ -545,7 +545,7 @@ segment_holding_code (mstate m, char* addr)
|
||||
}
|
||||
#endif
|
||||
|
||||
-#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) */
|
||||
+#endif /* !(defined(X86_WIN32) || defined(X86_WIN64)) || defined (__CYGWIN__) || defined(__INTERIX) */
|
||||
|
||||
/* Allocate a chunk of memory with the given size. Returns a pointer
|
||||
to the writable address, and sets *CODE to the executable
|
||||
55
dev-libs/libffi/files/libffi-3.0.9-irix.patch
Normal file
55
dev-libs/libffi/files/libffi-3.0.9-irix.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=286911
|
||||
|
||||
--- src/mips/ffitarget.h.orig 2009-06-19 19:52:37.000000000 +0200
|
||||
+++ src/mips/ffitarget.h 2009-06-19 19:52:43.000000000 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
# endif
|
||||
|
||||
#if !defined(_MIPS_SIM)
|
||||
--- something is very wrong --
|
||||
+# error -- something is very wrong --
|
||||
#else
|
||||
# if (_MIPS_SIM==_ABIN32 && defined(_ABIN32)) || (_MIPS_SIM==_ABI64 && defined(_ABI64))
|
||||
# define FFI_MIPS_N32
|
||||
@@ -51,7 +51,7 @@
|
||||
# if (_MIPS_SIM==_ABIO32 && defined(_ABIO32))
|
||||
# define FFI_MIPS_O32
|
||||
# else
|
||||
--- this is an unsupported platform --
|
||||
+# error -- this is an unsupported platform --
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
--- include/ffi.h.in.orig 2009-06-19 19:52:36.000000000 +0200
|
||||
+++ include/ffi.h.in 2009-06-19 19:52:43.000000000 +0200
|
||||
@@ -251,6 +251,9 @@
|
||||
|
||||
#if FFI_CLOSURES
|
||||
|
||||
+#ifdef __sgi
|
||||
+# pragma pack 8
|
||||
+#endif
|
||||
typedef struct {
|
||||
char tramp[FFI_TRAMPOLINE_SIZE];
|
||||
ffi_cif *cif;
|
||||
@@ -260,6 +263,9 @@
|
||||
} ffi_closure __attribute__((aligned (8)));
|
||||
#else
|
||||
} ffi_closure;
|
||||
+# ifdef __sgi
|
||||
+# pragma pack 0
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
void *ffi_closure_alloc (size_t size, void **code);
|
||||
--- src/java_raw_api.c.dist 2009-09-29 11:04:56.517219880 +0100
|
||||
+++ src/java_raw_api.c 2009-09-29 11:05:56.836581720 +0100
|
||||
@@ -311,7 +311,7 @@
|
||||
ffi_raw_closure *cl = (ffi_raw_closure*)user_data;
|
||||
|
||||
ffi_java_ptrarray_to_raw (cif, avalue, raw);
|
||||
- (*cl->fun) (cif, rvalue, raw, cl->user_data);
|
||||
+ (*cl->fun) (cif, rvalue, (ffi_raw*)raw, cl->user_data);
|
||||
ffi_java_raw_to_rvalue (cif, rvalue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user