[oe-commits] Henning Heinold : classpath-native: update the ecj-patch

git version control git at git.openembedded.org
Thu Jun 24 19:36:37 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: de6e07edd8a7d72b39aa11e08d036f5e56c241a7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=de6e07edd8a7d72b39aa11e08d036f5e56c241a7

Author: Henning Heinold <heinold at inf.fu-berlin.de>
Date:   Thu Jun 24 21:34:40 2010 +0200

classpath-native: update the ecj-patch

* the java-files in tools aren't UTF8 at all
  so we need the same handling as with asm-files
* bump PR

---

 recipes/classpath/classpath-native_0.98.bb |    2 +-
 recipes/classpath/files/ecj_java_dir.patch |   35 +++++++++++++++------------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/recipes/classpath/classpath-native_0.98.bb b/recipes/classpath/classpath-native_0.98.bb
index a8d8276..9e2654b 100644
--- a/recipes/classpath/classpath-native_0.98.bb
+++ b/recipes/classpath/classpath-native_0.98.bb
@@ -3,7 +3,7 @@ require classpath-native.inc
 # Deadlocks occur on at least amd64 hosts.
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r3"
+PR = "r4"
 
 # The code affected by the javanet-local patch
 # is usually not compiled. However if someone changes
diff --git a/recipes/classpath/files/ecj_java_dir.patch b/recipes/classpath/files/ecj_java_dir.patch
index e310567..1455a24 100644
--- a/recipes/classpath/files/ecj_java_dir.patch
+++ b/recipes/classpath/files/ecj_java_dir.patch
@@ -1,34 +1,37 @@
-Index: classpath-0.97.2/lib/gen-classlist.sh.in
+Index: classpath-0.98/lib/gen-classlist.sh.in
 ===================================================================
---- classpath-0.97.2.orig/lib/gen-classlist.sh.in	2008-06-02 03:37:29.000000000 +0200
-+++ classpath-0.97.2/lib/gen-classlist.sh.in	2008-08-01 00:00:58.055208770 +0200
+--- classpath-0.98.orig/lib/gen-classlist.sh.in	2010-06-24 21:18:02.776819217 +0200
++++ classpath-0.98/lib/gen-classlist.sh.in	2010-06-24 21:18:35.625566191 +0200
 @@ -148,4 +148,7 @@
    done
  fi
  
 +# hack for javac that uses -d and do not make the directories
-+awk -F " " '{print $1}' classes.1 | uniq | awk -F " " '{system("mkdir -p " $0)}'
++ at AWK@ -F " " '{print $1}' classes.1 | uniq | awk -F " " '{system("mkdir -p " $0)}'
 +
  exit 0
-Index: classpath-0.97.2/tools/Makefile.am
+Index: classpath-0.98/tools/Makefile.am
 ===================================================================
---- classpath-0.97.2.orig/tools/Makefile.am	2008-06-02 04:01:47.000000000 +0200
-+++ classpath-0.97.2/tools/Makefile.am	2008-08-01 00:11:18.531985989 +0200
-@@ -180,6 +180,8 @@
- 	mkdir classes asm
+--- classpath-0.98.orig/tools/Makefile.am	2010-06-24 21:18:02.783479881 +0200
++++ classpath-0.98/tools/Makefile.am	2010-06-24 21:20:04.925557253 +0200
+@@ -323,6 +323,8 @@
+ endif
  ## Compile ASM separately as it is latin-1 encoded.
  	find $(srcdir)/external/asm -name '*.java' -print > asm.lst
-+	awk -F "/" '{OFS=FS;gsub("/"$$2"/"$$3,"",$$0);gsub("/"$$NF,"",$$0); print $$0}' asm.lst | \
-+	   sort | uniq | awk -F " " '{system("mkdir -p asm/" $$0)}'
++	@AWK@ -F "/" '{OFS=FS;gsub("/"$$2"/"$$3,"",$$0);gsub("/"$$NF,"",$$0); print $$0}' asm.lst | \
++	   sort | uniq | @AWK@ -F " " '{system("mkdir -p asm/" $$0)}'
  	AC=`echo $(JCOMPILER) | sed -e 's/UTF-8/ISO-8859-1/g'`; \
  	  $$AC -g -d asm @asm.lst
  	find $(srcdir)/gnu/classpath/tools \
-@@ -189,6 +191,8 @@
- 	     $(srcdir)/com/sun/tools/javah \
+@@ -334,7 +336,10 @@
  	     $(srcdir)/sun/rmi/rmic \
+ 	     $(GJDOC_EX) \
  	     -name '*.java' -print > classes.lst
-+	awk -F "/" '{OFS=FS;gsub("/"$$NF,"",$$0); print $$0}' classes.lst | \
-+           sort | uniq | awk -F " " '{system("mkdir -p classes/" $$0)}'
- 	$(JCOMPILER) -g -d classes @classes.lst
+-	$(JCOMPILER) -g -d classes @classes.lst
++	@AWK@ -F "/" '{OFS=FS;gsub("/"$$NF,"",$$0); print $$0}' classes.lst | \
++           sort | uniq | @AWK@ -F " " '{system("mkdir -p classes/" $$0)}'
++	BC=`echo $(JCOMPILER) | sed -e 's/UTF-8/ISO-8859-1/g'`; \
++	   $$BC -g -d classes @classes.lst
  	cat classes.lst asm.lst > all-classes.lst
  ## Copy over tools resource files.
+ 	@list=`cd $(srcdir)/resource && find gnu/classpath/tools com/sun/tools/javac \





More information about the Openembedded-commits mailing list