From owner-svn-ports-all@FreeBSD.ORG Thu Oct 4 16:30:17 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C94A1065673; Thu, 4 Oct 2012 16:30:17 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2B96D8FC20; Thu, 4 Oct 2012 16:30:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q94GUHVT085979; Thu, 4 Oct 2012 16:30:17 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q94GUGcs085969; Thu, 4 Oct 2012 16:30:16 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201210041630.q94GUGcs085969@svn.freebsd.org> From: Jung-uk Kim Date: Thu, 4 Oct 2012 16:30:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305264 - in head/java/cacao: . files X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2012 16:30:17 -0000 Author: jkim Date: Thu Oct 4 16:30:16 2012 New Revision: 305264 URL: http://svn.freebsd.org/changeset/ports/305264 Log: Revert the previous accidental commit. It is not ready yet. Added: head/java/cacao/files/patch-boehm-gc-dyn_load.c (contents, props changed) head/java/cacao/files/patch-boehm-gc-os_dep.c (contents, props changed) head/java/cacao/files/patch-src-native-jni.h (contents, props changed) Deleted: head/java/cacao/files/patch-boehm-gc-configure Modified: head/java/cacao/Makefile head/java/cacao/distinfo head/java/cacao/files/patch-boehm-gc-dbg_ml.c head/java/cacao/files/patch-boehm-gc-include-private-gcconfig.h head/java/cacao/files/patch-configure head/java/cacao/pkg-plist Modified: head/java/cacao/Makefile ============================================================================== --- head/java/cacao/Makefile Thu Oct 4 16:19:53 2012 (r305263) +++ head/java/cacao/Makefile Thu Oct 4 16:30:16 2012 (r305264) @@ -1,39 +1,40 @@ -# Created by: Tilman Keskinoz +# New ports collection makefile for: cacao +# Date created: 2005-04-28 +# Whom: arved +# # $FreeBSD$ PORTNAME= cacao -PORTVERSION= 1.6.0 +PORTVERSION= 0.98 +PORTREVISION= 7 CATEGORIES= java devel MASTER_SITES= http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PORTVERSION}/ -MAINTAINER= java@FreeBSD.org +MAINTAINER= bkoenig@alpha-tierchen.de COMMENT= JIT compiler for JAVA -LICENSE= GPLv2 - BUILD_DEPENDS= ${LOCALBASE}/share/classpath/glibj.zip:${PORTSDIR}/java/classpath -GNU_CONFIGURE= yes +USE_BZIP2= yes USE_AUTOTOOLS= libltdl -USE_GMAKE= yes USE_JAVA= yes JAVA_VERSION= 1.5+ -USE_XZ= yes - +GNU_CONFIGURE= yes MAN1= cacao.1 - -CFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ARGS+= --with-classpath-prefix=${LOCALBASE} LDFLAGS+= -L${LOCALBASE}/lib +CFLAGS+= -I${LOCALBASE}/include + +.include + +.if ${ARCH} == amd64 +IGNORE= unsupported architecture +.endif + +post-patch: + ${REINPLACE_CMD} -e "s, man,," ${WRKSRC}/Makefile.in -CONFIGURE_ARGS+= --enable-jre-layout -CONFIGURE_ARGS+= --with-java-runtime-library-prefix=${LOCALBASE} -CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" - -do-install: - ${MKDIR} ${DATADIR} - ${INSTALL_PROGRAM} ${WRKSRC}/src/cacao/cacao ${PREFIX}/bin - ${INSTALL_LIB} ${WRKSRC}/src/cacao/.libs/libjvm.so ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/src/classes/vm.zip ${DATADIR} +post-install: ${INSTALL_MAN} ${WRKSRC}/man/cacao.1 ${MANPREFIX}/man/man1 -.include +.include Modified: head/java/cacao/distinfo ============================================================================== --- head/java/cacao/distinfo Thu Oct 4 16:19:53 2012 (r305263) +++ head/java/cacao/distinfo Thu Oct 4 16:30:16 2012 (r305264) @@ -1,2 +1,2 @@ -SHA256 (cacao-1.6.0.tar.xz) = e654e5f158b8fdc0b1282efacc370f6e65ee6c0336945506e86fd7e705d98626 -SIZE (cacao-1.6.0.tar.xz) = 2394588 +SHA256 (cacao-0.98.tar.bz2) = cb9363add825cedf77764fc49a223aaf43f0a9f485b711ba8c92f16b13fff188 +SIZE (cacao-0.98.tar.bz2) = 2393690 Modified: head/java/cacao/files/patch-boehm-gc-dbg_ml.c ============================================================================== --- head/java/cacao/files/patch-boehm-gc-dbg_ml.c Thu Oct 4 16:19:53 2012 (r305263) +++ head/java/cacao/files/patch-boehm-gc-dbg_ml.c Thu Oct 4 16:30:16 2012 (r305264) @@ -1,6 +1,6 @@ ---- src/mm/boehm-gc/dbg_mlc.c.orig 2012-09-03 12:10:00.000000000 -0400 -+++ src/mm/boehm-gc/dbg_mlc.c 2012-09-19 13:02:15.000000000 -0400 -@@ -466,10 +466,34 @@ +--- src/boehm-gc/dbg_mlc.c.orig Tue May 13 16:59:49 2003 ++++ src/mm/boehm-gc/dbg_mlc.c Wed May 12 20:13:19 2004 +@@ -414,6 +414,23 @@ GC_register_displacement((word)sizeof(oh) + offset); } @@ -13,43 +13,46 @@ +{ + Dl_info caller; + if (dladdr((const void *)ad, &caller) && caller.dli_sname != NULL) { -+ *symp = caller.dli_sname; -+ *offp = (const char *)ad - (const char *)caller.dli_saddr; ++ *symp = caller.dli_sname; ++ *offp = (const char *)ad - (const char *)caller.dli_saddr; + } +} +#else +#define GC_caller_func(ad, symp, offp) +#endif + - GC_API void * GC_CALL GC_debug_malloc(size_t lb, GC_EXTRA_PARAMS) + # ifdef __STDC__ + GC_PTR GC_debug_malloc(size_t lb, GC_EXTRA_PARAMS) + # else +@@ -428,6 +445,13 @@ { - void * result = GC_malloc(lb + DEBUG_BYTES); - + GC_PTR result = GC_malloc(lb + DEBUG_BYTES); + +#ifdef GC_ADD_CALLER + if (s == NULL) { -+ GC_caller_func_offset(ra, &s, &i); -+ if (s == NULL) -+ s = "unknown"; ++ GC_caller_func_offset(ra, &s, &i); ++ if (s == NULL) ++ s = "unknown"; + } +#endif if (result == 0) { - GC_err_printf("GC_debug_malloc(%lu) returning NIL (", - (unsigned long) lb); -@@ -792,6 +816,13 @@ - size_t old_sz; - hdr * hhdr; - + GC_err_printf1("GC_debug_malloc(%ld) returning NIL (", + (unsigned long) lb); +@@ -789,6 +813,13 @@ + register size_t old_sz; + register hdr * hhdr; + +#ifdef GC_ADD_CALLER + if (s == NULL) { -+ GC_caller_func_offset(ra, &s, &i); -+ if (s == NULL) -+ s = "unknown"; ++ GC_caller_func_offset(ra, &s, &i); ++ if (s == NULL) ++ s = "unknown"; + } +#endif if (p == 0) return(GC_debug_malloc(lb, OPT_RA s, i)); - base = GC_base(p); if (base == 0) { -@@ -1098,17 +1129,21 @@ + GC_err_printf1( +@@ -1094,7 +1125,11 @@ } #ifdef GC_ADD_CALLER @@ -62,14 +65,17 @@ #else # define RA #endif - - GC_API void * GC_CALL GC_debug_malloc_replacement(size_t lb) +@@ -1102,12 +1137,12 @@ + GC_PTR GC_debug_malloc_replacement(lb) + size_t lb; { - return GC_debug_malloc(lb, RA "unknown", 0); + return GC_debug_malloc(lb, RA NULL, 0); } - GC_API void * GC_CALL GC_debug_realloc_replacement(void *p, size_t lb) + GC_PTR GC_debug_realloc_replacement(p, lb) + GC_PTR p; + size_t lb; { - return GC_debug_realloc(p, lb, RA "unknown", 0); + return GC_debug_realloc(p, lb, RA NULL, 0); Added: head/java/cacao/files/patch-boehm-gc-dyn_load.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/cacao/files/patch-boehm-gc-dyn_load.c Thu Oct 4 16:30:16 2012 (r305264) @@ -0,0 +1,15 @@ +--- src/boehm-gc/dyn_load.c.orig Thu May 6 08:03:06 2004 ++++ src/mm/boehm-gc/dyn_load.c Sun Oct 31 01:53:01 2004 +@@ -97,6 +97,12 @@ + # else + # define ElfW(type) Elf64_##type + # endif ++# elif defined(__FreeBSD__) ++# if __ELF_WORD_SIZE == 32 ++# define ElfW(type) Elf32_##type ++# else ++# define ElfW(type) Elf64_##type ++# endif + # else + # if !defined(ELF_CLASS) || ELF_CLASS == ELFCLASS32 + # define ElfW(type) Elf32_##type Modified: head/java/cacao/files/patch-boehm-gc-include-private-gcconfig.h ============================================================================== --- head/java/cacao/files/patch-boehm-gc-include-private-gcconfig.h Thu Oct 4 16:19:53 2012 (r305263) +++ head/java/cacao/files/patch-boehm-gc-include-private-gcconfig.h Thu Oct 4 16:30:16 2012 (r305264) @@ -1,21 +1,31 @@ ---- src/mm/boehm-gc/include/private/gcconfig.h.orig 2012-09-03 12:10:00.000000000 -0400 -+++ src/mm/boehm-gc/include/private/gcconfig.h 2012-09-19 13:39:49.000000000 -0400 -@@ -69,8 +69,9 @@ +--- src/boehm-gc/include/private/gcconfig.h.rorig Sat Oct 15 16:40:25 2005 ++++ src/mm/boehm-gc/include/private/gcconfig.h Sat Oct 15 16:42:43 2005 +@@ -62,7 +62,7 @@ /* Determine the machine type: */ # if defined(__arm__) || defined(__thumb__) # define ARM32 --# if !defined(LINUX) && !defined(NETBSD) && !defined(OPENBSD) \ -- && !defined(DARWIN) && !defined(_WIN32) && !defined(__CEGCC__) -+# if !defined(LINUX) && !defined(FREEBSD) && !defined(NETBSD) \ -+ && !defined(OPENBSD) && !defined(DARWIN) && !defined(_WIN32) \ -+ && !defined(__CEGCC__) +-# if !defined(LINUX) && !defined(NETBSD) ++# if !defined(LINUX) && !defined(NETBSD) && !defined(FREEBSD) # define NOSYS # define mach_type_known # endif -@@ -366,6 +367,10 @@ - # define SPARC +@@ -334,10 +334,22 @@ + # define X86_64 # define mach_type_known # endif ++# if defined(__FreeBSD__) && defined(__amd64__) ++# define X86_64 ++# define mach_type_known ++# endif + # if defined(FREEBSD) && defined(__sparc__) + # define SPARC + # define mach_type_known +-#endif ++# endif ++# if defined(FREEBSD) && defined(__powerpc__) ++# define POWERPC ++# define mach_type_known ++# endif +# if defined(FREEBSD) && defined(__arm__) +# define ARM32 +# define mach_type_known @@ -23,8 +33,8 @@ # if defined(bsdi) && (defined(i386) || defined(__i386__)) # define I386 # define BSDI -@@ -1898,6 +1903,16 @@ - # define DATAEND ((ptr_t)(&_end)) +@@ -845,6 +857,16 @@ + # define DATASTART GC_data_start # define DYNAMIC_LOADING # endif +# ifdef FREEBSD @@ -38,5 +48,41 @@ +# define SEARCH_FOR_DATA_START +# endif # ifdef NOSYS - /* __data_start is usually defined in the target linker script. */ - extern int __data_start[]; + # define ALIGNMENT 4 + # define OS_TYPE "NOSYS" +@@ -1807,6 +1829,17 @@ + # endif + # define USE_GENERIC_PUSH_REGS + # endif ++# ifdef FREEBSD ++# define ALIGNMENT 4 ++# define OS_TYPE "FREEBSD" ++# ifdef __ELF__ ++# define DYNAMIC_LOADING ++# endif ++# define HEURISTIC2 ++ extern char etext[]; ++# define SEARCH_FOR_DATA_START ++# endif ++ + # ifdef LINUX + # define OS_TYPE "LINUX" + # define LINUX_STACKBOTTOM +@@ -1957,6 +1990,17 @@ + # ifdef __ELF__ + # define DYNAMIC_LOADING + # endif ++# define HEURISTIC2 ++ extern char etext[]; ++# define SEARCH_FOR_DATA_START ++# endif ++# ifdef FREEBSD ++# define OS_TYPE "FREEBSD" ++# define SIG_SUSPEND SIGUSR1 ++# define SIG_THR_RESTART SIGUSR2 ++# ifdef __ELF__ ++# define DYNAMIC_LOADING ++# endif + # define HEURISTIC2 + extern char etext[]; + # define SEARCH_FOR_DATA_START Added: head/java/cacao/files/patch-boehm-gc-os_dep.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/cacao/files/patch-boehm-gc-os_dep.c Thu Oct 4 16:30:16 2012 (r305264) @@ -0,0 +1,29 @@ +--- src/boehm-gc/os_dep.c.orig Thu May 19 20:48:49 2005 ++++ src/mm/boehm-gc/os_dep.c Fri Jun 17 21:28:07 2005 +@@ -699,7 +699,7 @@ + || defined(HURD) || defined(NETBSD) + static struct sigaction old_segv_act; + # if defined(IRIX5) || defined(HPUX) \ +- || defined(HURD) || defined(NETBSD) ++ || defined(HURD) || defined(NETBSD) || defined(FREEBSD) + static struct sigaction old_bus_act; + # endif + # else +@@ -714,7 +714,7 @@ + # endif + { + # if defined(SUNOS5SIGS) || defined(IRIX5) \ +- || defined(OSF1) || defined(HURD) || defined(NETBSD) ++ || defined(OSF1) || defined(HURD) || defined(NETBSD) || defined(FREEBSD) + struct sigaction act; + + act.sa_handler = h; +@@ -736,7 +736,7 @@ + # else + (void) sigaction(SIGSEGV, &act, &old_segv_act); + # if defined(IRIX5) \ +- || defined(HPUX) || defined(HURD) || defined(NETBSD) ++ || defined(HPUX) || defined(HURD) || defined(NETBSD) || defined(FREEBSD) + /* Under Irix 5.x or HP/UX, we may get SIGBUS. */ + /* Pthreads doesn't exist under Irix 5.x, so we */ + /* don't have to worry in the threads case. */ Modified: head/java/cacao/files/patch-configure ============================================================================== --- head/java/cacao/files/patch-configure Thu Oct 4 16:19:53 2012 (r305263) +++ head/java/cacao/files/patch-configure Thu Oct 4 16:30:16 2012 (r305264) @@ -1,29 +1,11 @@ ---- configure.orig 2012-09-03 12:10:16.000000000 -0400 -+++ configure 2012-09-19 19:08:48.000000000 -0400 -@@ -3626,7 +3626,7 @@ - JAVA_ARCH="sparc" +--- configure.orig Sun Feb 4 14:38:16 2007 ++++ configure Sun Feb 4 15:30:30 2007 +@@ -2662,7 +2661,7 @@ + ARCH_CFLAGS="-mcpu=v9 -m64 -D__SPARC_64__" ;; -x86_64 ) +x86_64 | amd64 ) ARCH_DIR="x86_64" - ARCH_FLAGS="-m64 -D__X86_64__" - JAVA_ARCH="amd64" -@@ -9731,7 +9731,7 @@ - $as_echo_n "(cached) " >&6 - else - ac_check_lib_save_LIBS=$LIBS --LIBS="-lpthread $LIBS" -+LIBS="$PTHREAD_LIBS $LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext - /* end confdefs.h. */ - -@@ -9760,7 +9760,7 @@ - #define HAVE_LIBPTHREAD 1 - _ACEOF - -- LIBS="-lpthread $LIBS" -+ LIBS="$PTHREAD_LIBS $LIBS" - - fi - + ARCH_CFLAGS="-D__X86_64__" + ;; Added: head/java/cacao/files/patch-src-native-jni.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/cacao/files/patch-src-native-jni.h Thu Oct 4 16:30:16 2012 (r305264) @@ -0,0 +1,16 @@ +--- src/native/jni.h.orig 2007-04-02 13:23:24.000000000 +0200 ++++ src/native/jni.h 2009-01-15 20:32:31.000000000 +0100 +@@ -45,10 +45,12 @@ + + #include CLASSPATH_JNI_H + +- + #ifndef _JNI_H + #define _JNI_H + ++#define JNINativeInterface JNINativeInterface_ ++#define JNIInvokeInterface JNIInvokeInterface_ ++ + /* forward typedefs ***********************************************************/ + + typedef struct localref_table localref_table; Modified: head/java/cacao/pkg-plist ============================================================================== --- head/java/cacao/pkg-plist Thu Oct 4 16:19:53 2012 (r305263) +++ head/java/cacao/pkg-plist Thu Oct 4 16:30:16 2012 (r305264) @@ -1,4 +1,6 @@ bin/cacao +lib/libjvm.la lib/libjvm.so -%%DATADIR%%/vm.zip -@dirrm %%DATADIR%% +lib/libjvm-0.98.so +share/cacao/vm.zip +@dirrm share/cacao