diff options
author | marino <marino@pkgsrc.org> | 2012-05-12 21:01:47 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2012-05-12 21:01:47 +0000 |
commit | 9aec6125941d586640e1dde46f00e2547f37d64c (patch) | |
tree | 2d089f974ac1bb5346124a77ef6ef84faff424be /lang/openjdk7/patches | |
parent | 1df207eeacb7ad746c8b61168a1258d18a96acf3 (diff) | |
download | pkgsrc-9aec6125941d586640e1dde46f00e2547f37d64c.tar.gz |
lang/openjdk7: Add support for DragonFly x86_64
* Update bootstrap for i386-DragonFly
* Add bootstrap for x86_64-DragonFly
* Update patch-aa to handle missing EM_ALPHA definition (not used anyway)
* Add patch for hotspot to handle x86_64 in uname
* Update Makefile for parallel building of hotspot
* Allow platform DragonFly 3.x
Thanks for all the hard work building the bootstraps and testing:
Francois Tigeot
Chris Turner
Diffstat (limited to 'lang/openjdk7/patches')
-rw-r--r-- | lang/openjdk7/patches/patch-aa | 16 | ||||
-rw-r--r-- | lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_defs.make | 15 |
2 files changed, 25 insertions, 6 deletions
diff --git a/lang/openjdk7/patches/patch-aa b/lang/openjdk7/patches/patch-aa index 9943d115b61..ee08dee06c5 100644 --- a/lang/openjdk7/patches/patch-aa +++ b/lang/openjdk7/patches/patch-aa @@ -1,17 +1,21 @@ -$NetBSD: patch-aa,v 1.4 2011/08/21 22:57:55 tnn Exp $ +$NetBSD: patch-aa,v 1.5 2012/05/12 21:01:47 marino Exp $ ---- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2011-08-11 12:31:36.000000000 +0000 +--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2012-05-12 08:57:44.793207000 +0000 +++ hotspot/src/os/bsd/vm/os_bsd.cpp -@@ -131,7 +131,7 @@ +@@ -131,8 +131,11 @@ # include <inttypes.h> # include <sys/ioctl.h> -#if defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) # include <elf.h> ++#if !defined(EM_ALPHA) ++#define EM_ALPHA 0x9026 ++#endif #endif -@@ -2039,7 +2039,9 @@ void * os::dll_load(const char *filename + #ifdef __APPLE__ +@@ -2039,7 +2042,9 @@ void * os::dll_load(const char *filename {EM_PPC, EM_PPC, ELFCLASS32, ELFDATA2MSB, (char*)"Power PC 32"}, {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64"}, {EM_ARM, EM_ARM, ELFCLASS32, ELFDATA2LSB, (char*)"ARM"}, @@ -21,7 +25,7 @@ $NetBSD: patch-aa,v 1.4 2011/08/21 22:57:55 tnn Exp $ {EM_ALPHA, EM_ALPHA, ELFCLASS64, ELFDATA2LSB, (char*)"Alpha"}, {EM_MIPS_RS3_LE, EM_MIPS_RS3_LE, ELFCLASS32, ELFDATA2LSB, (char*)"MIPSel"}, {EM_MIPS, EM_MIPS, ELFCLASS32, ELFDATA2MSB, (char*)"MIPS"}, -@@ -3559,7 +3561,7 @@ OSReturn os::set_native_priority(Thread* +@@ -3559,7 +3564,7 @@ OSReturn os::set_native_priority(Thread* #ifdef __OpenBSD__ // OpenBSD pthread_setprio starves low priority threads return OS_OK; @@ -30,7 +34,7 @@ $NetBSD: patch-aa,v 1.4 2011/08/21 22:57:55 tnn Exp $ int ret = pthread_setprio(thread->osthread()->pthread_id(), newpri); #elif defined(__APPLE__) || defined(__NetBSD__) struct sched_param sp; -@@ -3587,7 +3589,7 @@ OSReturn os::get_native_priority(const T +@@ -3587,7 +3592,7 @@ OSReturn os::get_native_priority(const T } errno = 0; diff --git a/lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_defs.make b/lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_defs.make new file mode 100644 index 00000000000..f7e79977c89 --- /dev/null +++ b/lang/openjdk7/patches/patch-hotspot_make_bsd_makefiles_defs.make @@ -0,0 +1,15 @@ +$NetBSD: patch-hotspot_make_bsd_makefiles_defs.make,v 1.1 2012/05/12 21:01:47 marino Exp $ + +--- hotspot/make/bsd/makefiles/defs.make.orig 2012-05-12 16:55:32.316262000 +0000 ++++ hotspot/make/bsd/makefiles/defs.make +@@ -30,6 +30,10 @@ SLASH_JAVA ?= /java + + # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name + ARCH:=$(shell uname -m) ++ifeq ($(ARCH),x86_64) ++ ARCH=amd64 ++endif ++ + PATH_SEP = : + ifeq ($(LP64), 1) + ARCH_DATA_MODEL ?= 64 |