summaryrefslogtreecommitdiff
path: root/jtools
diff options
context:
space:
mode:
Diffstat (limited to 'jtools')
-rw-r--r--jtools/Makefile9
-rw-r--r--jtools/openjdk/Makefile96
-rw-r--r--jtools/openjdk/patches/disable-backtrace.patch24
-rw-r--r--jtools/openjdk/patches/iconv.patch36
-rw-r--r--jtools/openjdk/patches/linux3.patch11
-rw-r--r--jtools/openjdk/patches/openjdk.patch37
-rw-r--r--jtools/openjdk/patches/remove-libnsl.patch72
7 files changed, 1 insertions, 284 deletions
diff --git a/jtools/Makefile b/jtools/Makefile
index 4c911b33d..39143976b 100644
--- a/jtools/Makefile
+++ b/jtools/Makefile
@@ -3,15 +3,8 @@
include $(TOPDIR)/rules.mk
-TARGETS:=
-ifneq ($(ADK_PACKAGE_OPENJDK),)
# jikes is for ant
-TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk qemu
-endif
-ifneq ($(ADK_PACKAGE_OPENJDK7),)
-# jikes is for ant
-TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk7
-endif
+TARGETS:=fastjar gcj ecj jikes classpath jamvm ant openjdk7
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
diff --git a/jtools/openjdk/Makefile b/jtools/openjdk/Makefile
deleted file mode 100644
index 32e0eac0e..000000000
--- a/jtools/openjdk/Makefile
+++ /dev/null
@@ -1,96 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:= openjdk
-PKG_VERSION:= 6
-PKG_EXTRAVER:= b22-28_feb_2011
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 2d2bbbb0f9b81f1fec41ec730da8a933 \
- fd3f35e8a8a2ef9a64c035ed66cea06d \
- ef7a8b3624ea904bf584bc46d79b5e75 \
- bc95c133620bd68c161cac9891592901 \
- 91adfd41e6f001add4f92ae31216b1e3 \
- d526d0848c88607ce4e3a0a4edb75d50
-PKG_DESCR:= OpenJDK Java VM
-PKG_SECTION:= lang
-PKG_URL:= http://openjdk.org/
-PKG_SITES:= http://download.java.net/openjdk/jdk6/promoted/b22/ \
- http://mirror.netcologne.de/apache.org/xml/xalan-j/binaries/ \
- http://icedtea.classpath.org/download/drops/ \
- http://icedtea.classpath.org/download/source/
-
-# autotools infrastructure for OpenJDK
-ICEDTEA_NAME:= icedtea6
-ICEDTEA_VERSION:= 1.10
-
-# bootstrap JARs
-XALAN_NAME= xalan-j
-XALAN_VERSION= 2_7_0
-
-# override generic extraction
-EXTRACT_OVERRIDE:= 1
-DISTFILES:= openjdk-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz \
- $(ICEDTEA_NAME)-$(ICEDTEA_VERSION).tar.gz \
- jaxp144_01.zip \
- jdk6-jaf-b20.zip \
- jdk6-jaxws-b20.zip \
- ${XALAN_NAME}_${XALAN_VERSION}-bin.tar.gz
-
-WRKDIST= ${WRKDIR}
-WRKSRC= ${WRKDIST}/${ICEDTEA_NAME}-${ICEDTEA_VERSION}
-
-include ../rules.mk
-
-OPENJDK_NATIVE_ENV+= JAVACFLAGS="-cp ${STAGING_JAVA_HOST_DIR}/usr/share/java/libgcj-$(GCJ_VER).jar"
-OPENJDK_NATIVE_ENV+= DYLD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
-OPENJDK_NATIVE_ENV+= LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64
-OPENJDK_NATIVE_ENV+= ADK_ECJ=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj PATH=$$PATH:$(STAGING_JAVA_HOST_DIR)/usr/bin
-OPENJDK_NATIVE_ENV+= BOOTCLASSPATH="$(STAGING_JAVA_HOST_DIR)/usr/share/jamvm/classes.zip:$(STAGING_JAVA_HOST_DIR)/usr/share/classpath/glibj.zip"
-
-install: ${STAGING_JAVA_HOST_DIR}/bootstrap-jdk/bin/java
-
-do-extract:
-$(WRKDIST)/.extract: $(WRKDIST)/.extract_done
- cd ${WRKDIST}; mkdir openjdk-$(PKG_VERSION); \
- tar xzf $(TOPDIR)/dl/openjdk-$(PKG_VERSION)-src-$(PKG_EXTRAVER).tar.gz -C openjdk-$(PKG_VERSION)
- cd $(WRKDIST); tar xzf $(TOPDIR)/dl/$(ICEDTEA_NAME)-$(ICEDTEA_VERSION).tar.gz
- cd ${WRKDIST}; tar xzf ${TOPDIR}/dl/${XALAN_NAME}_${XALAN_VERSION}-bin.tar.gz
- mkdir -p ${WRKBUILD}/drops
- cd ${TOPDIR}/dl; cp jaxp144_01.zip jdk6-jaf-b20.zip jdk6-jaxws-b20.zip ${WRKBUILD}/drops
- cd $(WRKDIST); patch -p0 < ${TOPDIR}/jtools/openjdk/patches/openjdk.patch
- cd $(WRKDIST); patch -p0 < ${TOPDIR}/jtools/openjdk/patches/iconv.patch
- cd $(WRKDIST); patch -p0 < ${TOPDIR}/jtools/openjdk/patches/remove-libnsl.patch
- cd $(WRKDIST); patch -p0 < ${TOPDIR}/jtools/openjdk/patches/linux3.patch
- cd $(WRKDIST); patch -p0 < ${TOPDIR}/jtools/openjdk/patches/disable-backtrace.patch
- touch $@
-
-$(WRKDIST)/.configured: ${WRKDIST}/.extract
- cd ${WRKBUILD}; rm -rf config.{cache,status}; \
- export ${OPENJDK_NATIVE_ENV}; ./configure \
- --enable-bootstrap \
- --enable-zero \
- --disable-openjdk-cross-compilation \
- --with-openjdk-src-dir=$(WRKDIST)/$(PKG_NAME)-$(PKG_VERSION) \
- --with-jdk-home=$(STAGING_JAVA_HOST_DIR)/usr/lib/jvm \
- --with-java=$(STAGING_JAVA_HOST_DIR)/usr/bin/java \
- --with-javac=$(STAGING_JAVA_HOST_DIR)/usr/bin/ecj \
- --with-gcj=$(STAGING_JAVA_HOST_DIR)/usr/bin/gcj \
- --with-ecj-jar=${STAGING_JAVA_HOST_DIR}/usr/share/java/ecj.jar \
- --with-xalan2-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/xalan.jar \
- --with-xalan2-serializer-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/serializer.jar \
- --with-xerces2-jar=${WRKDIST}/${XALAN_NAME}_${XALAN_VERSION}/xercesImpl.jar \
- --without-rhino \
- --disable-docs
- touch $@
-
-$(WRKBUILD)/.compiled: ${WRKDIST}/.configured
- export ${OPENJDK_NATIVE_ENV}; $(MAKE) -C $(WRKBUILD)
- touch $@
-
-${STAGING_JAVA_HOST_DIR}/bootstrap-jdk/bin/java: $(WRKBUILD)/.compiled
- $(CP) $(WRKSRC)/openjdk.build/j2sdk-image $(STAGING_JAVA_HOST_DIR)/bootstrap-jdk
- touch $@
-
-include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/jtools/openjdk/patches/disable-backtrace.patch b/jtools/openjdk/patches/disable-backtrace.patch
deleted file mode 100644
index 393ee9251..000000000
--- a/jtools/openjdk/patches/disable-backtrace.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-
- uClibc does not have backtrace support right now. Disable it for now.
-
---- openjdk-6.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c 2011-02-28 17:06:50.000000000 +0100
-+++ openjdk-6/jdk/src/solaris/native/sun/xawt/XToolkit.c 2011-08-08 10:45:01.445330729 +0200
-@@ -27,9 +27,6 @@
- #include <X11/Xutil.h>
- #include <X11/Xos.h>
- #include <X11/Xatom.h>
--#ifdef __linux__
--#include <execinfo.h>
--#endif
-
- #include <jvm.h>
- #include <jni.h>
-@@ -689,7 +686,7 @@
- return ret;
- }
-
--#ifdef __linux__
-+#if 0
- void print_stack(void)
- {
- void *array[10];
diff --git a/jtools/openjdk/patches/iconv.patch b/jtools/openjdk/patches/iconv.patch
deleted file mode 100644
index c607d2195..000000000
--- a/jtools/openjdk/patches/iconv.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-
- add required linker flags.
-
---- openjdk-6.orig/jdk/make/java/instrument/Makefile 2011-02-28 17:06:10.000000000 +0100
-+++ openjdk-6/jdk/make/java/instrument/Makefile 2011-04-11 23:14:27.571411016 +0200
-@@ -123,6 +123,8 @@
- # We don't want to link against -ljava
- JAVALIB=
-
-+LDLIBS += -liconv
-+
- #
- # Add to ambient vpath so we pick up the library files
- #
---- openjdk-6.orig/jdk/make/java/npt/Makefile 2011-02-28 17:06:11.000000000 +0100
-+++ openjdk-6/jdk/make/java/npt/Makefile 2011-04-11 23:14:07.017670197 +0200
-@@ -65,6 +65,8 @@
- # We don't want to link against -ljava
- JAVALIB=
-
-+LDLIBS += -liconv
-+
- # Add -export options to explicitly spell exported symbols
- ifeq ($(PLATFORM), windows)
- OTHER_LCF += -export:nptInitialize -export:nptTerminate
---- openjdk-6.orig/jdk/make/sun/splashscreen/Makefile 2011-02-28 17:06:12.000000000 +0100
-+++ openjdk-6/jdk/make/sun/splashscreen/Makefile 2011-04-11 23:15:07.221411030 +0200
-@@ -55,6 +55,8 @@
-
- JAVALIB=
-
-+LDLIBS += -liconv
-+
- #
- # C Flags
- #
diff --git a/jtools/openjdk/patches/linux3.patch b/jtools/openjdk/patches/linux3.patch
deleted file mode 100644
index bf6ccaa28..000000000
--- a/jtools/openjdk/patches/linux3.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- openjdk-6.orig/hotspot/make/linux/Makefile 2011-02-28 17:03:13.000000000 +0100
-+++ openjdk-6/hotspot/make/linux/Makefile 2012-03-27 22:44:07.897199377 +0200
-@@ -230,7 +230,7 @@
- # Solaris 2.5.1, 2.6).
- # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok.
-
--SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 2.7%
-+SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 2.7% 3.0% 3.1% 3.2% 3.3%
- OS_VERSION := $(shell uname -r)
- EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION))
-
diff --git a/jtools/openjdk/patches/openjdk.patch b/jtools/openjdk/patches/openjdk.patch
deleted file mode 100644
index 85fbb87f4..000000000
--- a/jtools/openjdk/patches/openjdk.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-
-use precompiled ecj.
-
---- openjdk-6.orig/Makefile 2011-02-28 17:02:07.000000000 +0100
-+++ openjdk-6/Makefile 2011-04-06 19:47:19.261818496 +0200
-@@ -25,9 +25,7 @@
-
- BUILD_PARENT_DIRECTORY=.
-
--ifndef TOPDIR
-- TOPDIR:=.
--endif
-+TOPDIR:=.
-
- ifndef JDK_TOPDIR
- JDK_TOPDIR=$(TOPDIR)/jdk
---- icedtea6-1.10.orig/Makefile.in 2011-03-02 20:48:45.161291458 +0100
-+++ icedtea6-1.10/Makefile.in 2011-04-06 20:10:40.581819545 +0200
-@@ -1643,10 +1643,14 @@
-
- stamps/native-ecj.stamp:
- mkdir -p stamps ; \
-- if test "x$(GCJ)" != "xno"; then \
-- $(GCJ) $(IT_CFLAGS) -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \
-- --main=org.eclipse.jdt.internal.compiler.batch.Main ${ECJ_JAR} ; \
-- fi ; \
-+ if test -n "${ADK_ECJ}" && test -x "${ADK_ECJ}"; then \
-+ ln -s "${ADK_ECJ}" native-ecj; \
-+ else \
-+ if test "x$(GCJ)" != "xno"; then \
-+ $(GCJ) $(IT_CFLAGS) -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \
-+ --main=org.eclipse.jdt.internal.compiler.batch.Main ${ECJ_JAR} ; \
-+ fi ; \
-+ fi; \
- touch stamps/native-ecj.stamp
-
- clean-native-ecj:
diff --git a/jtools/openjdk/patches/remove-libnsl.patch b/jtools/openjdk/patches/remove-libnsl.patch
deleted file mode 100644
index d867d436b..000000000
--- a/jtools/openjdk/patches/remove-libnsl.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-
- remove libnsl from linking.
-
---- openjdk-6.orig/jdk/make/java/hpi/hpi_common.gmk 2011-02-28 17:06:10.000000000 +0100
-+++ openjdk-6/jdk/make/java/hpi/hpi_common.gmk 2011-04-10 20:05:01.417672476 +0200
-@@ -86,5 +86,5 @@
- # Things that must be linked in.
- #
- ifneq ($(PLATFORM), windows)
--OTHER_LDLIBS += $(LIBSOCKET) -lnsl $(LIBM) -ldl
-+OTHER_LDLIBS += $(LIBSOCKET) $(LIBM) -ldl
- endif
---- openjdk-6.orig/jdk/make/java/java/Makefile 2011-02-28 17:06:10.000000000 +0100
-+++ openjdk-6/jdk/make/java/java/Makefile 2011-04-10 20:05:20.637673621 +0200
-@@ -205,7 +205,7 @@
- OTHER_LDLIBS += $(JVMLIB) -libpath:$(OBJDIR)/../../../fdlibm/$(OBJDIRNAME) fdlibm.lib \
- -libpath:$(OBJDIR)/../../../verify/$(OBJDIRNAME) verify.lib
- else
--OTHER_LDLIBS += $(JVMLIB) -lverify $(LIBSOCKET) -lnsl -ldl \
-+OTHER_LDLIBS += $(JVMLIB) -lverify $(LIBSOCKET) -ldl \
- -L$(OBJDIR)/../../../fdlibm/$(OBJDIRNAME) -lfdlibm.$(ARCH)
- endif
-
---- openjdk-6.orig/jdk/make/java/net/Makefile 2011-02-28 17:06:10.000000000 +0100
-+++ openjdk-6/jdk/make/java/net/Makefile 2011-04-10 20:05:39.537672169 +0200
-@@ -97,7 +97,7 @@
- # Will not compile at warning level 3 if warnings are fatal
- COMPILER_WARNINGS_FATAL=false
- else
-- OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
-+ OTHER_LDLIBS = $(LIBSOCKET) -ldl $(JVMLIB)
- endif
- ifeq ($(PLATFORM), linux)
- OTHER_LDLIBS += -lpthread
---- openjdk-6.orig/jdk/make/jpda/transport/socket/Makefile 2011-02-28 17:06:11.000000000 +0100
-+++ openjdk-6/jdk/make/jpda/transport/socket/Makefile 2011-04-10 20:06:06.037672449 +0200
-@@ -42,11 +42,11 @@
- endif
-
- ifeq ($(PLATFORM), linux)
-- OTHER_LDLIBS += -lnsl $(LIBSOCKET) -lpthread
-+ OTHER_LDLIBS += $(LIBSOCKET) -lpthread
- endif
-
- ifeq ($(PLATFORM), solaris)
-- OTHER_LDLIBS += -lnsl $(LIBSOCKET)
-+ OTHER_LDLIBS += $(LIBSOCKET)
- endif
-
- ifeq ($(PLATFORM), windows)
---- openjdk-6.orig/jdk/make/java/java_hprof_demo/Makefile 2011-02-28 17:06:10.000000000 +0100
-+++ openjdk-6/jdk/make/java/java_hprof_demo/Makefile 2011-04-10 20:28:43.287672398 +0200
-@@ -83,7 +83,7 @@
- ifeq ($(PLATFORM), windows)
- OTHER_LDLIBS += wsock32.lib winmm.lib
- else
-- OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl
-+ OTHER_LDLIBS += $(LIBSOCKET) -ldl
- endif
-
- #
---- openjdk-6.orig/jdk/make/mkdemo/jvmti/hprof/Makefile 2011-02-28 17:06:11.000000000 +0100
-+++ openjdk-6/jdk/make/mkdemo/jvmti/hprof/Makefile 2011-04-11 10:23:11.538911604 +0200
-@@ -42,7 +42,7 @@
- OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl
- endif
- ifeq ($(PLATFORM), linux)
-- OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl -lpthread
-+ OTHER_LDLIBS += $(LIBSOCKET) -ldl -lpthread
- endif
-
- #