[oe-commits] : classpath-native 0.97.2: Added patch to fix a possible miscompilation with gcc 4.3.2 ( from Debian Lenny).

OE GIT Trial gittrial at amethyst.openembedded.net
Fri Oct 10 14:16:31 UTC 2008


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

Author:  <thebohemian at openembedded.org>
Date:   Fri Oct 10 14:04:57 2008 +0000

classpath-native 0.97.2: Added patch to fix a possible miscompilation with gcc 4.3.2 (from Debian Lenny).

---

 packages/classpath/classpath-native_0.97.2.bb |    3 ++-
 packages/classpath/files/miscompilation.patch |   13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/packages/classpath/classpath-native_0.97.2.bb b/packages/classpath/classpath-native_0.97.2.bb
index 81ffad3..0024136 100644
--- a/packages/classpath/classpath-native_0.97.2.bb
+++ b/packages/classpath/classpath-native_0.97.2.bb
@@ -1,6 +1,6 @@
 require classpath-native.inc
 
-PR = "r3"
+PR = "r4"
 
 # The code affected by the javanet-local patch
 # is usually not compiled. However if someone changes
@@ -14,6 +14,7 @@ SRC_URI += "\
   file://autotools.patch;patch=1 \
   file://decimalformat.patch;patch=1 \
   file://cp-byte-loophelper.patch;patch=1;pnum=0 \
+  file://miscompilation.patch;patch=1 \
   "
 
 do_unpackpost() {
diff --git a/packages/classpath/files/miscompilation.patch b/packages/classpath/files/miscompilation.patch
new file mode 100644
index 0000000..c61b214
--- /dev/null
+++ b/packages/classpath/files/miscompilation.patch
@@ -0,0 +1,13 @@
+Index: classpath-0.97.2/native/jni/java-io/java_io_VMFile.c
+===================================================================
+--- classpath-0.97.2.orig/native/jni/java-io/java_io_VMFile.c	2008-10-10 15:24:54.000000000 +0200
++++ classpath-0.97.2/native/jni/java-io/java_io_VMFile.c	2008-10-10 15:25:36.000000000 +0200
+@@ -439,7 +439,7 @@
+ {
+ #ifndef WITHOUT_FILESYSTEM
+   const char *filename;
+-  int result;
++  volatile int result;
+ 
+   /* Don't use the JCL convert function because it throws an exception
+      on failure */





More information about the Openembedded-commits mailing list