pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/kaffe Set user-destdir, add (unfortunately) parti...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65780565aef2
branches:  trunk
changeset: 395699:65780565aef2
user:      abs <abs%pkgsrc.org@localhost>
date:      Fri Jul 10 19:58:12 2009 +0000

description:
Set user-destdir, add (unfortunately) partial patch for NetBSD/m68k

diffstat:

 lang/kaffe/Makefile         |   4 +-
 lang/kaffe/Makefile.common  |   4 +-
 lang/kaffe/distinfo         |   3 +-
 lang/kaffe/patches/patch-ag |  84 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 91 insertions(+), 4 deletions(-)

diffs (138 lines):

diff -r 1c7c6fb44cd4 -r 65780565aef2 lang/kaffe/Makefile
--- a/lang/kaffe/Makefile       Fri Jul 10 19:54:54 2009 +0000
+++ b/lang/kaffe/Makefile       Fri Jul 10 19:58:12 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2007/12/27 16:05:11 joerg Exp $
+# $NetBSD: Makefile,v 1.72 2009/07/10 19:58:12 abs Exp $
 #
 
 .include "Makefile.common"
@@ -27,7 +27,7 @@
 .include "../../devel/gettext-lib/buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/license.terms ${JAVA_HOME}
+       ${INSTALL_DATA} ${WRKSRC}/license.terms ${DESTDIR}${JAVA_HOME}
 
 .include "../../mk/java-env.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1c7c6fb44cd4 -r 65780565aef2 lang/kaffe/Makefile.common
--- a/lang/kaffe/Makefile.common        Fri Jul 10 19:54:54 2009 +0000
+++ b/lang/kaffe/Makefile.common        Fri Jul 10 19:58:12 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.17 2009/04/08 22:43:24 joerg Exp $
+# $NetBSD: Makefile.common,v 1.18 2009/07/10 19:58:12 abs Exp $
 
 DISTNAME=              kaffe-1.1.7
 CATEGORIES=            lang java
@@ -20,6 +20,8 @@
 USE_TOOLS+=            gmake
 TEST_TARGET=           check
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 ONLY_FOR_PLATFORM=     *-*-alpha *-*-arm *-*-arm32 *-*-i386 *-*-m68k   \
                        *-*-mipsel *-*-sparc *-*-powerpc
 
diff -r 1c7c6fb44cd4 -r 65780565aef2 lang/kaffe/distinfo
--- a/lang/kaffe/distinfo       Fri Jul 10 19:54:54 2009 +0000
+++ b/lang/kaffe/distinfo       Fri Jul 10 19:58:12 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.25 2007/07/10 21:16:43 minskim Exp $
+$NetBSD: distinfo,v 1.26 2009/07/10 19:58:12 abs Exp $
 
 SHA1 (kaffe-1.1.7.tar.gz) = 5951d16a4a7b11689932583d134520ca6de00817
 RMD160 (kaffe-1.1.7.tar.gz) = 7523a3470cd06cf60dbade8ea2f464dc9d85277b
@@ -9,3 +9,4 @@
 SHA1 (patch-ad) = 6ad03154e1874822d8a784cdcf6faa248e76c38f
 SHA1 (patch-ae) = 81e4a650fbb7fa18fa19597d27362bbb0155847f
 SHA1 (patch-af) = 8f35727c9a6147a8c5af8bcc3279ef29f8c9ad13
+SHA1 (patch-ag) = f02fd305d0dcb4c0fa2abb89eb566bc3d2edc583
diff -r 1c7c6fb44cd4 -r 65780565aef2 lang/kaffe/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/kaffe/patches/patch-ag       Fri Jul 10 19:58:12 2009 +0000
@@ -0,0 +1,84 @@
+$NetBSD: patch-ag,v 1.7 2009/07/10 19:58:12 abs Exp $
+
+(unfortunately) incomplete patch to update NetBSD/m68k to be closer to working
+
+--- config/m68k/netbsd1/md.h.orig      2009-02-05 20:12:32.000000000 +0000
++++ config/m68k/netbsd1/md.h
+@@ -17,34 +17,65 @@
+ #include "m68k/common.h"
+ #include "m68k/threads.h"
+ 
++#if defined(HAVE_SIGNAL_H)
++#include <signal.h>
++#endif
++#if defined(HAVE_SYS_RESOURCE_H)
++#include <sys/resource.h>
++#endif
++#if defined(HAVE_SYS_SIGNAL_H)
++#include <sys/signal.h>
++#endif
++#if defined(HAVE_UNISTD_H)
++#include <unistd.h>
++#endif
++
+ /*
+  * Alignment in structure is 8 bytes packed
+  */
+ #define ALIGNMENT_OF_SIZE(S)    ((S) < 8 ? (S) : 8)
+ 
+ /*
+- * Stack offset.
+- * This is the offset into the setjmp buffer where the stack pointer is
+- * stored.
++ * Redefine stack pointer offset.
+  */
+-#define SP_OFFSET       2
++#undef SP_OFFSET
++#define SP_OFFSET 2
+ 
+-/**/
+-/* Extra exception handling information. */
+-/**/
+-#include <signal.h>
++#if defined(HAVE_SYS_UCONTEXT_H)
++#include <sys/ucontext.h>
+ 
+-#define       SIGNAL_ARGS(sig, sc) int sig, int code, struct sigcontext *sc
++/* older netbsd's could have this macro missing, so we provide it */
++#ifndef _UC_MACHINE_SP
++#define _UC_MACHINE_SP(uc)      ((uc)->uc_mcontext.__gregs[_REG_UESP])
++#endif
++#ifndef _UC_MACHINE_PC
++#define _UC_MACHINE_PC(uc)      ((uc)->uc_mcontext.__gregs[_REG_EIP])
++#endif
++
++#define SIGCONTEXT ucontext_t
++
++#define SIGNAL_ARGS(sig, sc) int sig, siginfo_t *__si, void *sc
++#define SIGNAL_CONTEXT_POINTER(scp) SIGCONTEXT *scp
++#define SIGNAL_PC(scp) _UC_MACHINE_PC(((SIGCONTEXT *)(scp)))
++#define STACK_POINTER(scp) _UC_MACHINE_SP(((SIGCONTEXT *)(scp)))
++#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
++
++#else
++
++#define SIGNAL_ARGS(sig, sc) int sig, int __code, struct sigcontext *sc
+ #define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext *scp
+-#define GET_SIGNAL_CONTEXT_POINTER(scp) (scp)
+-#define SIGNAL_PC(scp) ((uintp)(scp)->sc_pc)
++#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
++#define SIGNAL_PC(scp) (scp)->sc_pc
++#define STACK_POINTER(scp) (scp)->sc_sp
+ 
+-#include "kaffe-unix-stack.h"
++#endif
+ 
+ #if defined(TRANSLATOR)
+ #include "jit-md.h"
+ #endif
+ 
++#include "kaffe-unix-stack.h"
++
+ /*
+  * sysdepCallMethod supports:
+  *



Home | Main Index | Thread Index | Old Index