pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/openjdk7 Add initial support for DragonFly/i386 2...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5666226a0d66
branches: trunk
changeset: 400368:5666226a0d66
user: tnn <tnn%pkgsrc.org@localhost>
date: Sun Oct 18 10:21:01 2009 +0000
description:
Add initial support for DragonFly/i386 2.4. (only build tested)
diffstat:
lang/openjdk7/bootstrap.mk | 9 ++++++++-
lang/openjdk7/distinfo | 32 ++++++++++++++++++++++++--------
lang/openjdk7/patches/patch-aa | 31 +++++++++++++++++++++++++++++--
lang/openjdk7/patches/patch-ab | 6 +++---
lang/openjdk7/patches/patch-ad | 20 +++++++++++++++++---
lang/openjdk7/patches/patch-ae | 8 +++++---
lang/openjdk7/patches/patch-af | 12 +++++++++---
lang/openjdk7/patches/patch-ah | 20 +++++++++++++++++---
lang/openjdk7/patches/patch-aj | 12 ++++++++----
lang/openjdk7/patches/patch-ba | 13 +++++++++++++
lang/openjdk7/patches/patch-bb | 13 +++++++++++++
lang/openjdk7/patches/patch-bc | 13 +++++++++++++
lang/openjdk7/patches/patch-bd | 13 +++++++++++++
lang/openjdk7/patches/patch-be | 13 +++++++++++++
lang/openjdk7/patches/patch-bf | 13 +++++++++++++
lang/openjdk7/patches/patch-bg | 22 ++++++++++++++++++++++
lang/openjdk7/patches/patch-bh | 14 ++++++++++++++
lang/openjdk7/patches/patch-bi | 13 +++++++++++++
lang/openjdk7/patches/patch-bj | 14 ++++++++++++++
lang/openjdk7/patches/patch-bk | 13 +++++++++++++
lang/openjdk7/patches/patch-bl | 13 +++++++++++++
lang/openjdk7/patches/patch-bm | 13 +++++++++++++
22 files changed, 300 insertions(+), 30 deletions(-)
diffs (truncated from 509 to 300 lines):
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/bootstrap.mk
--- a/lang/openjdk7/bootstrap.mk Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/bootstrap.mk Sun Oct 18 10:21:01 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: bootstrap.mk,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+# $NetBSD: bootstrap.mk,v 1.2 2009/10/18 10:21:01 tnn Exp $
ONLY_FOR_PLATFORM= NetBSD-[456].*-i386 NetBSD-[456].*-x86_64
+ONLY_FOR_PLATFORM+= DragonFly-2.4.*-i386
BOOT.nb4-i386= bootstrap-jdk-7-bin-netbsd-4-i386-20091012.tar.bz2
# not yet
@@ -9,6 +10,7 @@
BOOT.nb5-amd64= bootstrap-jdk-7-bin-netbsd-5-amd64-20090925.tar.bz2
BOOT.nb6-i386= bootstrap-jdk-7-bin-netbsd-6-i386-20091014.tar.bz2
BOOT.nb6-amd64= bootstrap-jdk-7-bin-netbsd-6-amd64-20091013.tar.bz2
+BOOT.df24-i386= bootstrap-jdk-7-bin-dragonfly-2_4-i386-20091018.tar.bz2
.if !empty(MACHINE_PLATFORM:MNetBSD-4.[0-8]*-i386) || make(distinfo)
DISTFILES+= ${BOOT.nb4-i386}
@@ -42,4 +44,9 @@
EXTRACT_ONLY+= ${BOOT.nb6-amd64}
.endif
+.if !empty(MACHINE_PLATFORM:MDragonFly-2.4.*-i386) || make(distinfo)
+DISTFILES+= ${BOOT.df24-i386}
+EXTRACT_ONLY+= ${BOOT.df24-i386}
+.endif
+
ALT_BOOTDIR= ${WRKDIR}/bootstrap
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/distinfo
--- a/lang/openjdk7/distinfo Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/distinfo Sun Oct 18 10:21:01 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: distinfo,v 1.2 2009/10/18 10:21:01 tnn Exp $
SHA1 (openjdk7/175529fae103.tar.bz2) = 297f474423a18d727a87b922b1665ea4e5d54732
RMD160 (openjdk7/175529fae103.tar.bz2) = 37bb512ccce29eb764a6bf9649c13715bf3eb2d6
@@ -6,6 +6,9 @@
SHA1 (openjdk7/apache-ant-1.7.1-bin.zip) = a7e8fa7bc2102a8d8df99c64db73c2eae3d8b483
RMD160 (openjdk7/apache-ant-1.7.1-bin.zip) = a4e2c992ac7c81949b391d146baf9c411dbb2c2d
Size (openjdk7/apache-ant-1.7.1-bin.zip) = 11657986 bytes
+SHA1 (openjdk7/bootstrap-jdk-7-bin-dragonfly-2_4-i386-20091018.tar.bz2) = e51aafb9711a0a6b050d31ad4143b5799b20c88f
+RMD160 (openjdk7/bootstrap-jdk-7-bin-dragonfly-2_4-i386-20091018.tar.bz2) = 81b97b27f40fdb29004004e799af80a52504c378
+Size (openjdk7/bootstrap-jdk-7-bin-dragonfly-2_4-i386-20091018.tar.bz2) = 24354825 bytes
SHA1 (openjdk7/bootstrap-jdk-7-bin-netbsd-4-i386-20091012.tar.bz2) = 51cbd9fc1a97fc40cf61391933b082f8eee17abb
RMD160 (openjdk7/bootstrap-jdk-7-bin-netbsd-4-i386-20091012.tar.bz2) = c2e2e0a17ae6d53eee1b91948a6d39080b07cafd
Size (openjdk7/bootstrap-jdk-7-bin-netbsd-4-i386-20091012.tar.bz2) = 24186222 bytes
@@ -36,16 +39,16 @@
SHA1 (openjdk7/xalan-j_2_7_1-bin.zip) = 681f04e180de88264bd3df68946001efb0bc2ff1
RMD160 (openjdk7/xalan-j_2_7_1-bin.zip) = d7174fcc9dd8b3876b5a9c8cde021953475b57f8
Size (openjdk7/xalan-j_2_7_1-bin.zip) = 17336979 bytes
-SHA1 (patch-aa) = fbcdd83c292de2be9a5b31971e3d69750c038735
-SHA1 (patch-ab) = a49c5712262d30b36d1913811f51c8f1a1dcb39d
+SHA1 (patch-aa) = 6cc7d152038414b6bfe6b809e569669836af1587
+SHA1 (patch-ab) = 001f676c0232f76ff49ac3ec248f696af1e2397b
SHA1 (patch-ac) = 7e6c0fcfe0b9eaa756eba361d8f9b35d08d17111
-SHA1 (patch-ad) = f5d3255c07bcf764c56f4b1d550ff5d5cdfd1257
-SHA1 (patch-ae) = f888ba67cfc7255911ee049e1a69dae4efe7dd17
-SHA1 (patch-af) = 9c9c152005c0feec1e6fd0db0fc552a3637db9b7
+SHA1 (patch-ad) = 88950e3d6792a18dd2e2349fee2b7b4c0d822ea4
+SHA1 (patch-ae) = 6fa5076b78b3456266d744846ec376c0ed36cb86
+SHA1 (patch-af) = 3d14a176c89e021afe99ad1b1e7505b56f4e8db0
SHA1 (patch-ag) = 6287960055a79d05dc193e31d29ffc0158b33cdd
-SHA1 (patch-ah) = 1870d4c12802a93d3ad8e7d0780c50ba1d5e9c3e
+SHA1 (patch-ah) = 2632580f92b27506c33df8714ed163ef3ed9844f
SHA1 (patch-ai) = 6d6c394c3de7578754b901686b88142cbc524ef7
-SHA1 (patch-aj) = 8ef0a8d446ea5883d1807a49ab123395d50a06ac
+SHA1 (patch-aj) = e370b618f4417d5ca19164c8eb59075123179b5a
SHA1 (patch-am) = 7e0ffa317a83d5b1e34c3f3e76b7a3de26980df6
SHA1 (patch-an) = b0636c22521d9727ad79df6914c9ce8c7c70b362
SHA1 (patch-ao) = 87ee9dd450d0b4e7cbd2302466a2e9f586fa6df1
@@ -56,3 +59,16 @@
SHA1 (patch-at) = 3b6c2268747c62f0008f67e8f3d5478e1905c551
SHA1 (patch-au) = ba3414e924ffd82ca75ae1f8df507753141f2491
SHA1 (patch-av) = be5bb72a3dd251f2a2822f7a1bea3b461b38d016
+SHA1 (patch-ba) = 2c56f89ea6297689fec7a7620f64ced752ed34c6
+SHA1 (patch-bb) = cd6b792bd42644da36c7fe1c4abc79f94e2295fc
+SHA1 (patch-bc) = 301ba93a42ff228254ecb3c9748aa2555dfd601d
+SHA1 (patch-bd) = 8dc567964e0e47e091043936af540fad6e067583
+SHA1 (patch-be) = e89f8420a9cf97c416ef6d1343d837c16623e02f
+SHA1 (patch-bf) = 7a84c0f0681669537afa50e870c7215e6e7572c1
+SHA1 (patch-bg) = 393c1bac2e83078bc02810eefd79ab8f0dd25170
+SHA1 (patch-bh) = 52b01c8b418efff5f3cc628b305a6d25ef4d13b3
+SHA1 (patch-bi) = c733f906c23a37aeb5ca93f136205563cc5fab64
+SHA1 (patch-bj) = 4198e1aa8e3c65434fbb947a00eed49e73106291
+SHA1 (patch-bk) = 66bccfdf42fcc6f6995f3f18fc2515d55cab46c6
+SHA1 (patch-bl) = a3b3bd6007c83664538baf401447fd0df9f4143b
+SHA1 (patch-bm) = 40c83ad219f529c3ca130547560681ab57b44bf8
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-aa
--- a/lang/openjdk7/patches/patch-aa Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-aa Sun Oct 18 10:21:01 2009 +0000
@@ -1,7 +1,16 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-aa,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2009-09-30 13:17:40.000000000 +0200
+--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2009-10-17 16:49:37.000000000 +0200
+++ hotspot/src/os/bsd/vm/os_bsd.cpp
+@@ -63,7 +63,7 @@
+ # include <link.h>
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ # include <elf.h>
+ #endif
+
@@ -2013,6 +2013,9 @@ bool _print_ascii_file(const char* filen
return true;
}
@@ -12,3 +21,21 @@
void os::print_dll_info(outputStream *st) {
st->print_cr("Dynamic libraries:");
#ifdef _ALLBSD_SOURCE
+@@ -3251,7 +3254,7 @@ OSReturn os::set_native_priority(Thread*
+ #ifdef __OpenBSD__
+ // OpenBSD pthread_setprio starves low priority threads
+ return OS_OK;
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ int ret = pthread_setprio(thread->osthread()->pthread_id(), newpri);
+ #elif defined(__APPLE__) || defined(__NetBSD__)
+ struct sched_param sp;
+@@ -3279,7 +3282,7 @@ OSReturn os::get_native_priority(const T
+ }
+
+ errno = 0;
+-#if defined(__OpenBSD__) || defined(__FreeBSD__)
++#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+ *priority_ptr = pthread_getprio(thread->osthread()->pthread_id());
+ #elif defined(__APPLE__) || defined(__NetBSD__)
+ int policy;
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-ab
--- a/lang/openjdk7/patches/patch-ab Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-ab Sun Oct 18 10:21:01 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-ab,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- ./jdk/make/common/shared/Sanity.gmk.orig 2008-12-21 21:41:14.000000000 +0100
-+++ ./jdk/make/common/shared/Sanity.gmk
+--- jdk/make/common/shared/Sanity.gmk.orig 2008-12-21 21:41:14.000000000 +0100
++++ jdk/make/common/shared/Sanity.gmk
@@ -787,7 +787,8 @@ $(TEMPDIR)/freetypeinfo: FRC
@(($(CD) $(BUILDDIR)/tools/freetypecheck && $(MAKE)) || \
$(ECHO) "Failed to build freetypecheck." ) > $@
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-ad
--- a/lang/openjdk7/patches/patch-ad Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-ad Sun Oct 18 10:21:01 2009 +0000
@@ -1,8 +1,22 @@
-$NetBSD: patch-ad,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-ad,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- corba/make/common/shared/Platform.gmk.orig 2009-10-12 18:15:48.000000000 +0200
+--- corba/make/common/shared/Platform.gmk.orig 2009-10-17 16:49:37.000000000 +0200
+++ corba/make/common/shared/Platform.gmk
-@@ -339,9 +339,9 @@ ifeq ($(PLATFORM), bsd)
+@@ -269,6 +269,13 @@ ifeq ($(SYSTEM_UNAME), FreeBSD)
+ REQUIRED_OS_VERSION = 6.0
+ endif
+
++ifeq ($(SYSTEM_UNAME), DragonFly)
++ PLATFORM = bsd
++ OS_NAME = dragonfly
++ OS_VENDOR = DragonFlyBSD
++ REQUIRED_OS_VERSION = 2.4
++endif
++
+ ifeq ($(SYSTEM_UNAME), Darwin)
+ PLATFORM = bsd
+ OS_NAME = darwin
+@@ -339,9 +346,9 @@ ifeq ($(PLATFORM), bsd)
REQUIRED_FREE_SPACE=1500000
# How much RAM does this machine have:
ifeq ($(OS_VENDOR), OpenBSD)
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-ae
--- a/lang/openjdk7/patches/patch-ae Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-ae Sun Oct 18 10:21:01 2009 +0000
@@ -1,14 +1,16 @@
-$NetBSD: patch-ae,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-ae,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- hotspot/make/bsd/makefiles/gcc.make.orig 2008-12-30 18:02:47.000000000 +0100
+--- hotspot/make/bsd/makefiles/gcc.make.orig 2009-10-18 02:16:47.000000000 +0200
+++ hotspot/make/bsd/makefiles/gcc.make
-@@ -151,6 +151,10 @@ MAPFLAG = -Xlinker --version-script=FILE
+@@ -153,6 +153,12 @@ MAPFLAG = -Xlinker --version-script=FILE
#
# Shared Library
#
+
++ifeq ($(OS_VENDOR), NetBSD)
+# XXX tnn fixme: -lgcc_s seems to be needed on NetBSD.
+LFLAGS+= -lgcc_s
++endif
+
ifeq ($(OS_VENDOR), Darwin)
# Standard linker flags
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-af
--- a/lang/openjdk7/patches/patch-af Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-af Sun Oct 18 10:21:01 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-af,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- jdk/make/common/shared/Defs-utils.gmk.orig 2009-09-24 23:41:39.000000000 +0200
+--- jdk/make/common/shared/Defs-utils.gmk.orig 2009-10-18 02:25:45.000000000 +0200
+++ jdk/make/common/shared/Defs-utils.gmk
-@@ -240,7 +240,8 @@ ifeq ($(PLATFORM),bsd)
+@@ -240,7 +240,14 @@ ifeq ($(PLATFORM),bsd)
endif
ifeq ($(OS_VENDOR), NetBSD)
NAWK = $(UTILS_USR_BIN_PATH)awk
@@ -11,5 +11,11 @@
+ ZIPEXE = $(PKGSRC_ZIPEXE)
+ UNZIP = $(PKGSRC_UNZIP)
+ UNZIPSFX = $(PKGSRC_UNZIPSFX)
++ endif
++ ifeq ($(OS_VENDOR), DragonFlyBSD)
++ NAWK = $(UTILS_USR_BIN_PATH)awk
++ ZIPEXE = $(PKGSRC_ZIPEXE)
++ UNZIP = $(PKGSRC_UNZIP)
++ UNZIPSFX = $(PKGSRC_UNZIPSFX)
endif
endif
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-ah
--- a/lang/openjdk7/patches/patch-ah Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-ah Sun Oct 18 10:21:01 2009 +0000
@@ -1,8 +1,22 @@
-$NetBSD: patch-ah,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-ah,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- jdk/make/common/shared/Platform.gmk.orig 2009-10-12 18:15:48.000000000 +0200
+--- jdk/make/common/shared/Platform.gmk.orig 2009-10-17 16:49:37.000000000 +0200
+++ jdk/make/common/shared/Platform.gmk
-@@ -288,9 +288,9 @@ ifeq ($(PLATFORM), bsd)
+@@ -218,6 +218,13 @@ ifeq ($(SYSTEM_UNAME), FreeBSD)
+ REQUIRED_OS_VERSION = 6.0
+ endif
+
++ifeq ($(SYSTEM_UNAME), DragonFly)
++ PLATFORM = bsd
++ OS_NAME = dragonfly
++ OS_VENDOR = DragonFlyBSD
++ REQUIRED_OS_VERSION = 2.4
++endif
++
+ ifeq ($(SYSTEM_UNAME), Darwin)
+ PLATFORM = bsd
+ OS_NAME = darwin
+@@ -288,9 +295,9 @@ ifeq ($(PLATFORM), bsd)
REQUIRED_FREE_SPACE=1500000
# How much RAM does this machine have:
ifeq ($(OS_VENDOR), OpenBSD)
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-aj
--- a/lang/openjdk7/patches/patch-aj Sun Oct 18 09:24:44 2009 +0000
+++ b/lang/openjdk7/patches/patch-aj Sun Oct 18 10:21:01 2009 +0000
@@ -1,9 +1,13 @@
-$NetBSD: patch-aj,v 1.1.1.1 2009/10/14 11:26:15 tnn Exp $
+$NetBSD: patch-aj,v 1.2 2009/10/18 10:21:01 tnn Exp $
---- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2009-09-24 22:52:54.000000000 +0200
+--- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2009-10-17 16:49:37.000000000 +0200
+++ jdk/src/solaris/native/java/net/NetworkInterface.c
-@@ -53,10 +53,8 @@
- #if defined(__FreeBSD__) || defined(__APPLE__)
+@@ -50,13 +50,11 @@
+ #if defined(_ALLBSD_SOURCE)
+ #include <sys/param.h>
+ #include <sys/ioctl.h>
+-#if defined(__FreeBSD__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
#include <net/ethernet.h>
#include <net/if_var.h>
-#elif defined(__OpenBSD__)
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-ba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk7/patches/patch-ba Sun Oct 18 10:21:01 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ba,v 1.1 2009/10/18 10:21:01 tnn Exp $
+
+--- hotspot/src/share/vm/utilities/macros.hpp.orig 2009-10-17 16:49:37.000000000 +0200
++++ hotspot/src/share/vm/utilities/macros.hpp
+@@ -148,7 +148,7 @@
+ #define NOT_WINDOWS(code) code
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__DragonFly__)
+ #define BSD_ONLY(code) code
+ #define NOT_BSD(code)
+ #else
diff -r 1c7d44ffba63 -r 5666226a0d66 lang/openjdk7/patches/patch-bb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk7/patches/patch-bb Sun Oct 18 10:21:01 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-bb,v 1.1 2009/10/18 10:21:01 tnn Exp $
+
Home |
Main Index |
Thread Index |
Old Index