Skip to contentSkip to conversation

updated two patches for second round of openjdk stable transition

PATCH New [email protected] 1 participant 3 messages Jul 21, 2010

lore
Share & tools
lore
#0 lore raw

cover updated two patches for second round of openjdk stable transition

From: Henning Heinold <[email protected]>

Hi agian,

I made 2 mistakes in the patches.
So here they are updated.

Bye Henning

Henning Heinold (2):
icedtea6-native: backported from openembedded-dev
cacaoh-openjdk-native: backported from openembedded-dev

 conf/checksums.ini                                 |   12 +
 recipes/cacao/cacaoh-openjdk-native.inc            |   31 +
 recipes/cacao/cacaoh-openjdk-native_0.99.4.bb      |    8 +
 .../icedtea6-native-1.7.3/build-hacks-native.patch |   15 +
 .../disable-library-checks.patch                   |  141 +++
 .../icedtea-ecj-disable-compilation.patch          |  513 +++++++++
 .../icedtea-ecj-disable-sanitychecks.patch         |   76 ++
 .../icedtea-ecj-fix-freetype.patch                 |   13 +
 .../icedtea-ecj-fix-zlib.patch                     |   61 ++
 .../icedtea-fix-jar-command.patch                  |   27 +
 .../icedtea-hotspot-make-arch-sane-for-x86.patch   | 1130 ++++++++++++++++++++
 .../icedtea6-native-1.7.3/icedtea-javac-in.patch   |   28 +
 .../icedtea-jdk-sane-x86-arch.patch                |  240 +++++
 .../icedtea-sane-x86-arch-name.patch               |   47 +
 .../icedtea-unbreak-float.patch                    |   18 +
 recipes/icedtea/icedtea6-native_1.7.3.bb           |  233 ++++
 16 files changed, 2593 insertions(+), 0 deletions(-)
 create mode 100644 recipes/cacao/cacaoh-openjdk-native.inc
 create mode 100644 recipes/cacao/cacaoh-openjdk-native_0.99.4.bb
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/build-hacks-native.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/disable-library-checks.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-disable-compilation.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-disable-sanitychecks.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-fix-freetype.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-fix-zlib.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-fix-jar-command.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-hotspot-make-arch-sane-for-x86.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-javac-in.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-jdk-sane-x86-arch.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-sane-x86-arch-name.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-unbreak-float.patch
 create mode 100644 recipes/icedtea/icedtea6-native_1.7.3.bb
#1 lore raw

PATCH 1/2 icedtea6-native: backported from openembedded-dev

From: Henning Heinold <[email protected]>

---
 conf/checksums.ini                                 |   12 +
 .../icedtea6-native-1.7.3/build-hacks-native.patch |   15 +
 .../disable-library-checks.patch                   |  141 +++
 .../icedtea-ecj-disable-compilation.patch          |  513 +++++++++
 .../icedtea-ecj-disable-sanitychecks.patch         |   76 ++
 .../icedtea-ecj-fix-freetype.patch                 |   13 +
 .../icedtea-ecj-fix-zlib.patch                     |   61 ++
 .../icedtea-fix-jar-command.patch                  |   27 +
 .../icedtea-hotspot-make-arch-sane-for-x86.patch   | 1130 ++++++++++++++++++++
 .../icedtea6-native-1.7.3/icedtea-javac-in.patch   |   28 +
 .../icedtea-jdk-sane-x86-arch.patch                |  240 +++++
 .../icedtea-sane-x86-arch-name.patch               |   47 +
 .../icedtea-unbreak-float.patch                    |   18 +
 recipes/icedtea/icedtea6-native_1.7.3.bb           |  233 ++++
 14 files changed, 2554 insertions(+), 0 deletions(-)
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/build-hacks-native.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/disable-library-checks.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-disable-compilation.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-disable-sanitychecks.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-fix-freetype.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-fix-zlib.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-fix-jar-command.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-hotspot-make-arch-sane-for-x86.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-javac-in.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-jdk-sane-x86-arch.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-sane-x86-arch-name.patch
 create mode 100644 recipes/icedtea/icedtea6-native-1.7.3/icedtea-unbreak-float.patch
 create mode 100644 recipes/icedtea/icedtea6-native_1.7.3.bb
conf/checksums.ini +12 -0
index 40eec41..d751252 100644
@@ -11458,6 +11458,14 @@ sha256=4f23aadcee80a9a03c858e36a8eaaa92149987ce0a3eac276e3003c9b2462739
 md5=a67303675a53781c4e42bdb02ec78e40
 sha256=1ec328f41f8adfbf797599bc7bf4c07de162ac6d565d2b9fd95685b1cbc99ac8
 
+[http://icedtea.classpath.org/download/source/icedtea6-1.7.3.tar.gz]
+md5=9ad707a5edc471e883a66c882adeab46
+sha256=855a7f1a1a7798e3c4c25281b89ee6906a53b226ac39e3153cc0336a6952ca6b
+
+[http://icedtea.classpath.org/download/source/icedtea6-1.8.tar.gz]
+md5=e08dd0762749fb50ec6c273c366ee8ae
+sha256=6823ff87969d978fe5523c729be3074142698c89acc8cc96c05b849fde54f61b
+
 [http://jalimo.evolvis.org/repository/sources/icepick-0.0+hg20080118.tar.bz2]
 md5=ce7b1827e6f4cbe73b9ffa90b0d45a6a
 sha256=63170836095f8451498c813a1f93a9ec70a1164d82aa30650c0f2216ca4377ab
@@ -18966,6 +18974,10 @@ sha256=1272f975052e51d3faf2d7ac13d0b8b4ac68019a688bffe03d9b684a9e3b4480
 md5=850a29b70206bc7fa083cd26acc781f3
 sha256=96159489d8b70db275c125b627c6e6912e6c078279d76b968d2e0969359c9420
 
+[http://download.java.net/openjdk/jdk6/promoted/b17/openjdk-6-src-b17-14_oct_2009.tar.gz]
+md5=078fe0ab744c98694decc77f2456c560
+sha256=2019a4c3d2d14620caa78d7df49fd987a041066b4631bde4fd8424033f3c1785
+
 [http://jalimo.evolvis.org/repository/sources/openjdk-langtools-jdk7-b31.tar.bz2]
 md5=670931f67b2e4ac46c6e0cd15418f2fa
 sha256=f8b8820e410c137d279d14dec7e7a93217cc371acdfe1b3343b2278d1728932e
recipes/icedtea/icedtea6-native-1.7.3/build-hacks-native.patch new file +15 -0
new file mode 100644
index 0000000..9432d03
@@ -0,0 +1,15 @@
+Index: icedtea6-1.6.1/Makefile.am
+===================================================================
+--- icedtea6-1.6.1.orig/Makefile.am	2009-12-24 11:38:06.582572265 +0100
++++ icedtea6-1.6.1/Makefile.am	2009-12-24 11:57:27.159578486 +0100
+@@ -265,6 +265,10 @@
+ 	FT2_LIB="$(FREETYPE2_LIBS)" \
+ 	ALT_PARALLEL_COMPILE_JOBS="$(PARALLEL_JOBS)" \
+ 	HOTSPOT_BUILD_JOBS="$(PARALLEL_JOBS)" \
++        OE_CFLAGS="$(OE_CFLAGS)" \
++        OE_CPPFLAGS="$(OE_CPPFLAGS)" \
++        OE_CXXFLAGS="$(OE_CXXFLAGS)" \
++        OE_LDFLAGS="$(OE_LDFLAGS)" \
+ 	JAVAC="" \
+ 	RHINO_JAR="$(RHINO_JAR)" \
+ 	JAR_KNOWS_ATFILE="$(JAR_KNOWS_ATFILE)" \
recipes/icedtea/icedtea6-native-1.7.3/disable-library-checks.patch new file +141 -0

141 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-disable-compilation.patch new file +513 -0

513 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-disable-sanitychecks.patch new file +76 -0

76 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-fix-freetype.patch new file +13 -0
new file mode 100644
index 0000000..3420fbd
@@ -0,0 +1,13 @@
+Index: openjdk/jdk/make/tools/freetypecheck/Makefile
+===================================================================
+--- openjdk.orig/jdk/make/tools/freetypecheck/Makefile	2009-09-29 13:48:33.590565061 +0200
++++ openjdk/jdk/make/tools/freetypecheck/Makefile	2009-09-29 14:00:04.470566156 +0200
+@@ -45,7 +45,7 @@
+   FT_OPTIONS  = $(CFLAGS)
+ endif
+ 
+-FT_OPTIONS += -I$(FT_HEADERS) -I$(FT_HEADERS)/freetype2
++FT_OPTIONS += -I$(FT_HEADERS) -I$(FT_HEADERS)/freetype2 $(FREETYPE2_CFLAGS) $(FREETYPE2_LIBS) $(FREETYPE2_HEADERS)
+ FT_OPTIONS += $(XARCH)
+ 
+ #add runtime library search path
recipes/icedtea/icedtea6-native-1.7.3/icedtea-ecj-fix-zlib.patch new file +61 -0

61 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-fix-jar-command.patch new file +27 -0
new file mode 100644
index 0000000..607797e
@@ -0,0 +1,27 @@
+Index: icedtea6-1.8/Makefile.am
+===================================================================
+--- icedtea6-1.8.orig/Makefile.am	2010-06-17 10:29:13.654666801 +0200
++++ icedtea6-1.8/Makefile.am	2010-06-17 10:30:50.334670771 +0200
+@@ -1662,12 +1662,7 @@
+ 	rm -f extra-source-files.txt
+ 
+ extra-lib/about.jar: stamps/extra-class-files.stamp
+-	if ! test -d $(ICEDTEA_BOOT_DIR) ; \
+-	then \
+-	  $(JAR) cf $@ -C extra-lib net ; \
+-	else \
+-	  $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C extra-lib net ; \
+-	fi
++	$(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C extra-lib net ;
+ 
+ # PulseAudio based mixer
+ # (pulse-java)
+@@ -1750,7 +1745,7 @@
+ stamps/rewrite-rhino.stamp: stamps/rewriter.stamp $(RHINO_JAR)
+ if WITH_RHINO
+ 	mkdir -p rhino/rhino.{old,new}
+-	(cd rhino/rhino.old ; jar xf $(RHINO_JAR))
++	(cd rhino/rhino.old ; $(ICEDTEA_BOOT_DIR)/bin/jar xf $(RHINO_JAR))
+ 	$(ICEDTEA_BOOT_DIR)/bin/java -cp $(abs_top_builddir)/rewriter \
+ 	  com.redhat.rewriter.ClassRewriter \
+ 	  $(abs_top_builddir)/rhino/rhino.old $(abs_top_builddir)/rhino/rhino.new \
recipes/icedtea/icedtea6-native-1.7.3/icedtea-hotspot-make-arch-sane-for-x86.patch new file +1130 -0

1,130 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-javac-in.patch new file +28 -0
new file mode 100644
index 0000000..846982c
@@ -0,0 +1,28 @@
+From 90688bde5acdb9193f5c381ce332012ff67c0e02 Mon Sep 17 00:00:00 2001
+From: woglinde <[email protected]>
+Date: Fri, 23 Oct 2009 16:10:49 +0200
+Subject: [PATCH 3/3] javac.in: remove fake-jdk rt
+
+---
+ javac.in |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git icedtea6-1.6.1/javac.in icedtea6-1.6.1/javac.in
+index a897b39..235d9b5 100644
+--- icedtea6-1.6.1/javac.in
++++ icedtea6-1.6.1/javac.in
+@@ -33,9 +33,9 @@ fi
+ if [ -e @abs_top_builddir@/native-ecj ] ; then
+     @abs_top_builddir@/native-ecj -1.5 -nowarn $bcoption $NEW_ARGS ;
+ elif [ ! -z "@ECJ@" ] ; then
+-    @ECJ@ -1.5 -nowarn $bcoption $NEW_ARGS
++    @ECJ@ -1.5 -nowarn $NEW_ARGS
+ else
+     CLASSPATH=@ECJ_JAR@${CLASSPATH:+:}$CLASSPATH \
+-     @JAVA@ org.eclipse.jdt.internal.compiler.batch.Main -1.5 -nowarn $bcoption $NEW_ARGS
++     @JAVA@ org.eclipse.jdt.internal.compiler.batch.Main -1.5 -nowarn $NEW_ARGS
+ fi
+ 
+-- 
+1.6.5
+
recipes/icedtea/icedtea6-native-1.7.3/icedtea-jdk-sane-x86-arch.patch new file +240 -0

240 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-sane-x86-arch-name.patch new file +47 -0

47 lines not on this page · raw message

recipes/icedtea/icedtea6-native-1.7.3/icedtea-unbreak-float.patch new file +18 -0
new file mode 100644
index 0000000..9f875de
@@ -0,0 +1,18 @@
+Index: openjdk/jdk/src/share/native/java/lang/fdlibm/include/fdlibm.h
+===================================================================
+--- openjdk/jdk/src/share/native/java/lang/fdlibm/include/fdlibm.h	2010-02-02 13:49:39.972718207 +0100
++++ openjdk/jdk/src/share/native/java/lang/fdlibm/include/fdlibm.h	2010-02-02 13:50:04.635639302 +0100
+@@ -27,13 +27,11 @@
+ 
+ #include "jfdlibm.h"
+ 
+-#ifdef __NEWVALID       /* special setup for Sun test regime */
+ #if defined(i386) || defined(i486) || \
+         defined(intel) || defined(x86) || \
+         defined(i86pc) || defined(_M_IA64) || defined(ia64)
+ #define _LITTLE_ENDIAN
+ #endif
+-#endif
+ 
+ #ifdef _LITTLE_ENDIAN
+ #define __HI(x) *(1+(int*)&x)
recipes/icedtea/icedtea6-native_1.7.3.bb new file +233 -0

233 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/2 cacaoh-openjdk-native: backported from openembedded-dev

In reply to [email protected]

From: Henning Heinold <[email protected]>

---
 recipes/cacao/cacaoh-openjdk-native.inc       |   31 +++++++++++++++++++++++++
 recipes/cacao/cacaoh-openjdk-native_0.99.4.bb |    8 ++++++
 2 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 recipes/cacao/cacaoh-openjdk-native.inc
 create mode 100644 recipes/cacao/cacaoh-openjdk-native_0.99.4.bb
recipes/cacao/cacaoh-openjdk-native.inc new file +31 -0
new file mode 100644
index 0000000..7670215
@@ -0,0 +1,31 @@
+DESCRIPTION = "Header generator for Cacao JVM - Needed for cross-compilation builds"
+HOMEPAGE = "http://www.cacaojvm.org/"
+LICENSE  = "GPL"
+
+DEPENDS = "libtool-native zlib-native virtual/javac-native classpath-native icedtea6-native"
+
+inherit java autotools
+
+S = "${WORKDIR}/cacao-${PV}"
+
+inherit autotools native
+
+EXTRA_OECONF = " \
+	--with-java-runtime-library=openjdk \
+	--with-java-runtime-library-classes=${STAGING_LIBDIR_JVM_NATIVE}/icedtea6-native/jre/lib/rt.jar \
+  --with-jni_md_h=${STAGING_INCDIR}/classpath \
+  --with-jni_h=${STAGING_INCDIR}/classpath \
+	--with-hpi_md_h=${STAGING_LIBDIR_JVM_NATIVE}/icedtea6-native/include/hpi \
+	--with-hpi_h=${STAGING_LIBDIR_JVM_NATIVE}/icedtea6-native/include/hpi \
+  "
+
+do_compile() {
+  # Compile the header generator only (and what is needed for it).
+  oe_runmake -C src/toolbox libtoolbox.la
+  oe_runmake -C src/vmcore libvmcore.la
+  oe_runmake -C src/cacaoh cacaoh
+}
+
+do_stage() {
+	install -m 0755 src/cacaoh/.libs/cacaoh ${STAGING_BINDIR}/cacaoh-openjdk-${PV}
+}
recipes/cacao/cacaoh-openjdk-native_0.99.4.bb new file +8 -0
new file mode 100644
index 0000000..27ab6ab
@@ -0,0 +1,8 @@
+require cacaoh-openjdk-native.inc
+
+PR = "r0"
+
+SRC_URI[md5sum] = "63220327925ace13756ae334c55a3baa"
+SRC_URI[sha256sum] = "1dfc4903dc0172286df4f1740fd0f12749ac81d51c602290b47cbe83d51e1d56"
+
+SRC_URI = "http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PV}/cacao-${PV}.tar.bz2"
Signature · 1 line
1.7.0.4