changeset in /hg/icedtea: 2008-01-18 Lillian Angel <langel at red...

Lillian Angel langel at redhat.com
Fri Jan 18 09:08:00 PST 2008


changeset 13c94ebd6af1 in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=13c94ebd6af1
description:
	2008-01-18  Lillian Angel  <langel at redhat.com>

	        * Makefile.am: Added new env var ICEDTEA_BOOT_DIR.
	        (env): Updated to use ICEDTEA_BOOT_DIR.
	        (env-ecj): Likewise.
	        (stamps/hotspot-tools-class-files.stamp): Added check. If
	        stamps/icedtea-ecj.stamp doesn't exist, use JAVAC. Otherwise, use
	        ICEDTEA_BOOT_DIR/bin/javac.
	        (bootstrap/jdk1.7.0/jre/lib/tools.jar): Added check. If
	        stamps/icedtea-ecj.stamp doesn't exist, use JAR. Otherwise,
	        use ICEDTEA_BOOT_DIR/bin/jar.
	        (bootstrap/jdk1.7.0/jre/lib/rt-closed.jar): Likewise.
	        (stamps/rt-class-files.stamp): Added check. If
	        stamps/icedtea-ecj.stamp doesn't exist, use JAVAC. Otherwise,
	        use ICEDTEA_BOOT_DIR/bin/javac.
	        (stamps/tools-class-files.stamp): Likewise.
	        * Makefile.in: Regenerate.

diffstat:

3 files changed, 137 insertions(+), 40 deletions(-)
ChangeLog   |   18 +++++++++++++
Makefile.am |   79 +++++++++++++++++++++++++++++++++++++++++++---------------
Makefile.in |   80 ++++++++++++++++++++++++++++++++++++++++++++---------------

diffs (317 lines):

diff -r ad24a83300f6 -r 13c94ebd6af1 ChangeLog
--- a/ChangeLog	Wed Jan 16 12:19:04 2008 -0500
+++ b/ChangeLog	Fri Jan 18 12:03:16 2008 -0500
@@ -1,3 +1,21 @@ 2008-01-16  Lillian Angel  <langel at redha
+2008-01-18  Lillian Angel  <langel at redhat.com>
+
+	* Makefile.am: Added new env var ICEDTEA_BOOT_DIR. 
+	(env): Updated to use ICEDTEA_BOOT_DIR.
+	(env-ecj): Likewise.
+	(stamps/hotspot-tools-class-files.stamp): Added check. If
+	stamps/icedtea-ecj.stamp doesn't exist, use JAVAC. Otherwise, use
+	ICEDTEA_BOOT_DIR/bin/javac.
+	(bootstrap/jdk1.7.0/jre/lib/tools.jar): Added check. If
+	stamps/icedtea-ecj.stamp doesn't exist, use JAR. Otherwise,
+	use ICEDTEA_BOOT_DIR/bin/jar.
+	(bootstrap/jdk1.7.0/jre/lib/rt-closed.jar): Likewise.
+	(stamps/rt-class-files.stamp): Added check. If
+	stamps/icedtea-ecj.stamp doesn't exist, use JAVAC. Otherwise,
+	use ICEDTEA_BOOT_DIR/bin/javac.
+	(stamps/tools-class-files.stamp): Likewise.
+	* Makefile.in: Regenerate.
+
 2008-01-16  Lillian Angel  <langel at redhat.com>
 
 	* Makefile.am: Fixed typo.
diff -r ad24a83300f6 -r 13c94ebd6af1 Makefile.am
--- a/Makefile.am	Wed Jan 16 12:19:04 2008 -0500
+++ b/Makefile.am	Fri Jan 18 12:03:16 2008 -0500
@@ -38,17 +38,19 @@ ICEDTEA_RT = \
 	$(abs_top_srcdir)/bootstrap/jdk1.7.0/jre/lib/rt-closed.jar
 ICEDTEA_CLS_DIR = \
 	$(abs_top_srcdir)/$(BUILD_OUTPUT_DIR)/classes
+ICEDTEA_BOOT_DIR= \
+	$(abs_top_srcdir)/bootstrap/jdk1.6.0
 ICEDTEA_ENDORSED_DIR = \
-	$(abs_top_srcdir)/bootstrap/jdk1.6.0/lib/endorsed
+	$(ICEDTEA_BOOT_DIR)/lib/endorsed
 ICEDTEA_ENV = \
-	"ALT_JDK_IMPORT_PATH=$(abs_top_srcdir)/bootstrap/jdk1.6.0/" \
+	"ALT_JDK_IMPORT_PATH=$(ICEDTEA_BOOT_DIR)" \
 	"ANT_HOME=$(SYSTEM_ANT_DIR)" \
         "BUILD_NUMBER=$(OPENJDK_VERSION)" \
         "JRE_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
         "HOTSPOT_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
 	"LANG=C" \
 	"PATH=/usr/bin:/bin:/usr/sbin:/sbin" \
-	"ALT_BOOTDIR=$(abs_top_srcdir)/bootstrap/jdk1.6.0" \
+	"ALT_BOOTDIR=$(ICEDTEA_BOOT_DIR)" \
 	"ALT_BINARY_PLUGS_PATH=$(abs_top_srcdir)/bootstrap/jdk1.7.0" \
 	"BUILD_ARCH_DIR=$(BUILD_ARCH_DIR)" \
 	"ICEDTEA_RT=$(ICEDTEA_RT)" \
@@ -70,14 +72,14 @@ ICEDTEA_CLS_DIR_ECJ = \
 ICEDTEA_CLS_DIR_ECJ = \
 	$(abs_top_srcdir)/openjdk-ecj/build/$(LINUX_DIR)/classes
 ICEDTEA_ENV_ECJ = \
-	"ALT_JDK_IMPORT_PATH=$(abs_top_srcdir)/bootstrap/jdk1.6.0/" \
+	"ALT_JDK_IMPORT_PATH=$(ICEDTEA_BOOT_DIR)" \
 	"ANT_HOME=$(SYSTEM_ANT_DIR)" \
 	"BUILD_NUMBER=$(OPENJDK_VERSION)" \
         "JRE_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
         "HOTSPOT_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
 	"LANG=C" \
 	"PATH=/usr/bin:/bin:/usr/sbin:/sbin" \
-	"ALT_BOOTDIR=$(abs_top_srcdir)/bootstrap/jdk1.6.0" \
+	"ALT_BOOTDIR=$(ICEDTEA_BOOT_DIR)" \
 	"ALT_BINARY_PLUGS_PATH=$(abs_top_srcdir)/bootstrap/jdk1.7.0" \
 	"BUILD_ARCH_DIR=$(BUILD_ARCH_DIR)" \
 	"LIBGCJ_JAR=$(LIBGCJ_JAR)" \
@@ -602,9 +604,17 @@ hotspot-tools-source-files.txt: stamps/c
 	mkdir -p lib/hotspot-tools
 
 stamps/hotspot-tools-class-files.stamp: hotspot-tools-source-files.txt
-	$(JAVAC) $(MEMORY_LIMIT) -g -d lib/hotspot-tools -bootclasspath '' -source 1.6 \
-	  -sourcepath 'rt:hotspot-tools:$(OPENJDK_SOURCEPATH_DIRS):generated' \
-	  @$<
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+	then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d lib/hotspot-tools -bootclasspath '' -source 1.6 \
+	    -sourcepath 'rt:hotspot-tools:$(OPENJDK_SOURCEPATH_DIRS):generated' \
+	    @$< ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d lib/hotspot-tools \
+	    -bootclasspath '' -source 1.6 \
+            -sourcepath 'rt:hotspot-tools:$(OPENJDK_SOURCEPATH_DIRS):generated' \
+            @$< ; \
+	fi
 	mkdir -p stamps
 	touch stamps/hotspot-tools-class-files.stamp
 
@@ -617,9 +627,16 @@ clean-hotspot-tools:
 # tools.jar
 bootstrap/jdk1.7.0/jre/lib/tools.jar: stamps/hotspot-tools-class-files.stamp
 	mkdir -p bootstrap/jdk1.7.0/jre/lib/
-	$(JAR) cf $@ -C lib/hotspot-tools com -C lib/hotspot-tools sun \
-	  -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
-	  -C lib/hotspot-tools javax
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+    	  $(JAR) cf $@ -C lib/hotspot-tools com -C lib/hotspot-tools sun \
+	    -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
+	    -C lib/hotspot-tools javax ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C lib/hotspot-tools com -C lib/hotspot-tools sun \
+            -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
+            -C lib/hotspot-tools javax ; \
+	fi
 	if test -d bootstrap/ecj ; \
 	then \
 	  mkdir -p bootstrap/ecj/lib/; \
@@ -633,9 +650,17 @@ rt-source-files.txt: stamps/clone.stamp 
 
 stamps/rt-class-files.stamp: rt-source-files.txt
 	mkdir -p lib/rt
-	$(JAVAC) $(MEMORY_LIMIT) -g -d lib/rt -bootclasspath '' -source 1.6 \
-	  -sourcepath rt:$(OPENJDK_SOURCEPATH_DIRS):generated \
-	  @$<
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d lib/rt -bootclasspath '' -source 1.6 \
+          -sourcepath rt:$(OPENJDK_SOURCEPATH_DIRS):generated \
+          @$< ; \
+        else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d lib/rt \
+	  -bootclasspath '' -source 1.6 \
+          -sourcepath rt:$(OPENJDK_SOURCEPATH_DIRS):generated \
+          @$< ; \
+        fi
 	mkdir -p stamps
 	touch stamps/rt-class-files.stamp
 
@@ -647,8 +672,14 @@ clean-rt:
 # rt-closed.jar.
 bootstrap/jdk1.7.0/jre/lib/rt-closed.jar: stamps/rt-class-files.stamp
 	mkdir -p bootstrap/jdk1.7.0/jre/lib
-	$(JAR) cf $@ -C lib/rt com -C lib/rt gnu -C lib/rt java \
-	  -C lib/rt javax -C lib/rt sun -C lib/rt org
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+          $(JAR) cf $@ -C lib/rt com -C lib/rt gnu -C lib/rt java \
+          -C lib/rt javax -C lib/rt sun -C lib/rt org ; \
+	else \
+          $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C lib/rt com -C lib/rt gnu -C lib/rt java \
+          -C lib/rt javax -C lib/rt sun -C lib/rt org ; \
+	fi
 	if test -d bootstrap/ecj/jre/lib ; \
 	then \
 	  cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar bootstrap/ecj/jre/lib/rt.jar; \
@@ -678,10 +709,18 @@ stamps/tools-class-files.stamp: tools-so
 stamps/tools-class-files.stamp: tools-source-files.txt \
 	stamps/rt-class-files.stamp
 	mkdir -p lib/tools
-	$(JAVAC) $(MEMORY_LIMIT) -g -d lib/tools \
-	  -source 1.6 \
-	  -sourcepath tools \
-	  @$<
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d lib/tools \
+          -source 1.6 \
+          -sourcepath tools \
+          @$< ; \
+        else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d lib/tools \
+          -source 1.6 \
+          -sourcepath tools \
+          @$< ; \
+        fi
 	cp tools/default.jnlp lib/tools
 	cp -r tools/netx/jnlp/resources lib/tools/netx/jnlp
 	mkdir -p stamps
diff -r ad24a83300f6 -r 13c94ebd6af1 Makefile.in
--- a/Makefile.in	Wed Jan 16 12:19:04 2008 -0500
+++ b/Makefile.in	Fri Jan 18 12:03:16 2008 -0500
@@ -206,18 +206,21 @@ ICEDTEA_CLS_DIR = \
 ICEDTEA_CLS_DIR = \
 	$(abs_top_srcdir)/$(BUILD_OUTPUT_DIR)/classes
 
+ICEDTEA_BOOT_DIR = \
+	$(abs_top_srcdir)/bootstrap/jdk1.6.0
+
 ICEDTEA_ENDORSED_DIR = \
-	$(abs_top_srcdir)/bootstrap/jdk1.6.0/lib/endorsed
+	$(ICEDTEA_BOOT_DIR)/lib/endorsed
 
 ICEDTEA_ENV = \
-	"ALT_JDK_IMPORT_PATH=$(abs_top_srcdir)/bootstrap/jdk1.6.0/" \
+	"ALT_JDK_IMPORT_PATH=$(ICEDTEA_BOOT_DIR)" \
 	"ANT_HOME=$(SYSTEM_ANT_DIR)" \
         "BUILD_NUMBER=$(OPENJDK_VERSION)" \
         "JRE_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
         "HOTSPOT_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
 	"LANG=C" \
 	"PATH=/usr/bin:/bin:/usr/sbin:/sbin" \
-	"ALT_BOOTDIR=$(abs_top_srcdir)/bootstrap/jdk1.6.0" \
+	"ALT_BOOTDIR=$(ICEDTEA_BOOT_DIR)" \
 	"ALT_BINARY_PLUGS_PATH=$(abs_top_srcdir)/bootstrap/jdk1.7.0" \
 	"BUILD_ARCH_DIR=$(BUILD_ARCH_DIR)" \
 	"ICEDTEA_RT=$(ICEDTEA_RT)" \
@@ -238,14 +241,14 @@ ICEDTEA_CLS_DIR_ECJ = \
 	$(abs_top_srcdir)/openjdk-ecj/build/$(LINUX_DIR)/classes
 
 ICEDTEA_ENV_ECJ = \
-	"ALT_JDK_IMPORT_PATH=$(abs_top_srcdir)/bootstrap/jdk1.6.0/" \
+	"ALT_JDK_IMPORT_PATH=$(ICEDTEA_BOOT_DIR)" \
 	"ANT_HOME=$(SYSTEM_ANT_DIR)" \
 	"BUILD_NUMBER=$(OPENJDK_VERSION)" \
         "JRE_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
         "HOTSPOT_RELEASE_VERSION=1.7.0-$(OPENJDK_VERSION)" \
 	"LANG=C" \
 	"PATH=/usr/bin:/bin:/usr/sbin:/sbin" \
-	"ALT_BOOTDIR=$(abs_top_srcdir)/bootstrap/jdk1.6.0" \
+	"ALT_BOOTDIR=$(ICEDTEA_BOOT_DIR)" \
 	"ALT_BINARY_PLUGS_PATH=$(abs_top_srcdir)/bootstrap/jdk1.7.0" \
 	"BUILD_ARCH_DIR=$(BUILD_ARCH_DIR)" \
 	"LIBGCJ_JAR=$(LIBGCJ_JAR)" \
@@ -1055,9 +1058,17 @@ hotspot-tools-source-files.txt: stamps/c
 	mkdir -p lib/hotspot-tools
 
 stamps/hotspot-tools-class-files.stamp: hotspot-tools-source-files.txt
-	$(JAVAC) $(MEMORY_LIMIT) -g -d lib/hotspot-tools -bootclasspath '' -source 1.6 \
-	  -sourcepath 'rt:hotspot-tools:$(OPENJDK_SOURCEPATH_DIRS):generated' \
-	  @$<
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+	then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d lib/hotspot-tools -bootclasspath '' -source 1.6 \
+	    -sourcepath 'rt:hotspot-tools:$(OPENJDK_SOURCEPATH_DIRS):generated' \
+	    @$< ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d lib/hotspot-tools \
+	    -bootclasspath '' -source 1.6 \
+            -sourcepath 'rt:hotspot-tools:$(OPENJDK_SOURCEPATH_DIRS):generated' \
+            @$< ; \
+	fi
 	mkdir -p stamps
 	touch stamps/hotspot-tools-class-files.stamp
 
@@ -1070,9 +1081,16 @@ clean-hotspot-tools:
 # tools.jar
 bootstrap/jdk1.7.0/jre/lib/tools.jar: stamps/hotspot-tools-class-files.stamp
 	mkdir -p bootstrap/jdk1.7.0/jre/lib/
-	$(JAR) cf $@ -C lib/hotspot-tools com -C lib/hotspot-tools sun \
-	  -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
-	  -C lib/hotspot-tools javax
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+    	  $(JAR) cf $@ -C lib/hotspot-tools com -C lib/hotspot-tools sun \
+	    -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
+	    -C lib/hotspot-tools javax ; \
+	else \
+	  $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C lib/hotspot-tools com -C lib/hotspot-tools sun \
+            -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
+            -C lib/hotspot-tools javax ; \
+	fi
 	if test -d bootstrap/ecj ; \
 	then \
 	  mkdir -p bootstrap/ecj/lib/; \
@@ -1086,9 +1104,17 @@ rt-source-files.txt: stamps/clone.stamp 
 
 stamps/rt-class-files.stamp: rt-source-files.txt
 	mkdir -p lib/rt
-	$(JAVAC) $(MEMORY_LIMIT) -g -d lib/rt -bootclasspath '' -source 1.6 \
-	  -sourcepath rt:$(OPENJDK_SOURCEPATH_DIRS):generated \
-	  @$<
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d lib/rt -bootclasspath '' -source 1.6 \
+          -sourcepath rt:$(OPENJDK_SOURCEPATH_DIRS):generated \
+          @$< ; \
+        else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d lib/rt \
+	  -bootclasspath '' -source 1.6 \
+          -sourcepath rt:$(OPENJDK_SOURCEPATH_DIRS):generated \
+          @$< ; \
+        fi
 	mkdir -p stamps
 	touch stamps/rt-class-files.stamp
 
@@ -1100,8 +1126,14 @@ clean-rt:
 # rt-closed.jar.
 bootstrap/jdk1.7.0/jre/lib/rt-closed.jar: stamps/rt-class-files.stamp
 	mkdir -p bootstrap/jdk1.7.0/jre/lib
-	$(JAR) cf $@ -C lib/rt com -C lib/rt gnu -C lib/rt java \
-	  -C lib/rt javax -C lib/rt sun -C lib/rt org
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+          $(JAR) cf $@ -C lib/rt com -C lib/rt gnu -C lib/rt java \
+          -C lib/rt javax -C lib/rt sun -C lib/rt org ; \
+	else \
+          $(ICEDTEA_BOOT_DIR)/bin/jar cf $@ -C lib/rt com -C lib/rt gnu -C lib/rt java \
+          -C lib/rt javax -C lib/rt sun -C lib/rt org ; \
+	fi
 	if test -d bootstrap/ecj/jre/lib ; \
 	then \
 	  cp bootstrap/jdk1.7.0/jre/lib/rt-closed.jar bootstrap/ecj/jre/lib/rt.jar; \
@@ -1131,10 +1163,18 @@ stamps/tools-class-files.stamp: tools-so
 stamps/tools-class-files.stamp: tools-source-files.txt \
 	stamps/rt-class-files.stamp
 	mkdir -p lib/tools
-	$(JAVAC) $(MEMORY_LIMIT) -g -d lib/tools \
-	  -source 1.6 \
-	  -sourcepath tools \
-	  @$<
+	if ! test -f stamps/icedtea-ecj.stamp ; \
+        then \
+	  $(JAVAC) $(MEMORY_LIMIT) -g -d lib/tools \
+          -source 1.6 \
+          -sourcepath tools \
+          @$< ; \
+        else \
+	  $(ICEDTEA_BOOT_DIR)/bin/javac $(MEMORY_LIMIT) -g -d lib/tools \
+          -source 1.6 \
+          -sourcepath tools \
+          @$< ; \
+        fi
 	cp tools/default.jnlp lib/tools
 	cp -r tools/netx/jnlp/resources lib/tools/netx/jnlp
 	mkdir -p stamps



More information about the distro-pkg-dev mailing list