summaryrefslogtreecommitdiff
path: root/devel/libffi
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-04-03 09:34:40 +0000
committerjoerg <joerg@pkgsrc.org>2008-04-03 09:34:40 +0000
commit5d6f479253cca74b5cfd942667dfe8a709c4d10a (patch)
tree8c1c1c89a76d500a7d67a345ed10ebce8a822b13 /devel/libffi
parente46200844fb4a1a4765c69071c786e326e6426cb (diff)
downloadpkgsrc-5d6f479253cca74b5cfd942667dfe8a709c4d10a.tar.gz
Fix lvalue cast on amd64. Mark as DESTDIR safe.
Diffstat (limited to 'devel/libffi')
-rw-r--r--devel/libffi/Makefile4
-rw-r--r--devel/libffi/distinfo3
-rw-r--r--devel/libffi/patches/patch-ab13
3 files changed, 18 insertions, 2 deletions
diff --git a/devel/libffi/Makefile b/devel/libffi/Makefile
index c76d93038a9..9aa83bd7e10 100644
--- a/devel/libffi/Makefile
+++ b/devel/libffi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/03/04 21:29:17 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2008/04/03 09:34:40 joerg Exp $
DISTNAME= gcc-3.3.5
PKGNAME= libffi-2.0beta
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sources.redhat.com/libffi/
COMMENT= Foreign function interface
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
CONFIGURE_ENV+= with_target_subdir=.
CONFIG_GUESS_OVERRIDE= ../config.guess
diff --git a/devel/libffi/distinfo b/devel/libffi/distinfo
index 3d862f797fd..d72019eb771 100644
--- a/devel/libffi/distinfo
+++ b/devel/libffi/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2006/02/26 19:28:28 joerg Exp $
+$NetBSD: distinfo,v 1.8 2008/04/03 09:34:40 joerg Exp $
SHA1 (gcc-3.3.5.tar.bz2) = ab24a8690040de967c25a1fc8560d7ecc25bd460
RMD160 (gcc-3.3.5.tar.bz2) = 34adf1a6f7ea302e9937c1a06ccf362711e25c58
Size (gcc-3.3.5.tar.bz2) = 23833856 bytes
SHA1 (patch-aa) = cef0f1fd24397665aa5120e04e8a539f75f7bf1f
+SHA1 (patch-ab) = daa5322cde100b035f195dd0f445755c8285a116
diff --git a/devel/libffi/patches/patch-ab b/devel/libffi/patches/patch-ab
new file mode 100644
index 00000000000..b9e48af2aa4
--- /dev/null
+++ b/devel/libffi/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2008/04/03 09:34:40 joerg Exp $
+
+--- src/x86/ffi64.c.orig 2008-04-03 11:16:21.000000000 +0200
++++ src/x86/ffi64.c
+@@ -288,7 +288,7 @@ ffi_prep_args (stackLayout *stack, exten
+ gprcount = ssecount = 0;
+ if (ecif->cif->rtype->type != FFI_TYPE_VOID
+ && examine_argument (ecif->cif->rtype, 1, &g, &s) == 0)
+- (void *)stack->gpr[gprcount++] = ecif->rvalue;
++ stack->gpr[gprcount++] = (long)ecif->rvalue;
+
+ for (i=ecif->cif->nargs, p_arg=ecif->cif->arg_types, p_argv = ecif->avalue;
+ i!=0; i--, p_arg++, p_argv++)