[oe-commits] Robert Schuster : midpath-core 0.2+03rc2: Added patch to fix file opening.

GIT User account git at amethyst.openembedded.net
Thu Dec 4 20:16:24 UTC 2008


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

Author: Robert Schuster <thebohemian at gmx.net>
Date:   Thu Dec  4 21:15:56 2008 +0100

midpath-core 0.2+03rc2: Added patch to fix file opening.

---

 packages/midpath/files/fix-openfile.patch   |   13 +++++++++++++
 packages/midpath/midpath-core_0.2+0.3rc2.bb |    3 ++-
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/packages/midpath/files/fix-openfile.patch b/packages/midpath/files/fix-openfile.patch
new file mode 100644
index 0000000..6b9b8be
--- /dev/null
+++ b/packages/midpath/files/fix-openfile.patch
@@ -0,0 +1,13 @@
+Index: midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java
+===================================================================
+--- midpath-0.3rc2.orig/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java	2008-12-04 21:10:39.000000000 +0100
++++ midpath-0.3rc2/components/core/src/org/thenesis/midpath/io/backend/j2se/FileHandlerImpl.java	2008-12-04 21:12:11.000000000 +0100
+@@ -182,7 +182,7 @@
+ 	public void openForRead() throws IOException {
+ 		if (randomAccessFile == null) {
+ 			//stream = new FileRandomAccessStream(file);
+-			randomAccessFile = new RandomAccessFile(file, "rws");
++			randomAccessFile = new RandomAccessFile(file, "r");
+ 		}
+ 	}
+ 
diff --git a/packages/midpath/midpath-core_0.2+0.3rc2.bb b/packages/midpath/midpath-core_0.2+0.3rc2.bb
index 1a6fee8..d4d6b6b 100644
--- a/packages/midpath/midpath-core_0.2+0.3rc2.bb
+++ b/packages/midpath/midpath-core_0.2+0.3rc2.bb
@@ -1,6 +1,6 @@
 DESCRIPTION = "MIDPath is a Java library which provides a MIDP2 implementation"
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/midpath/midpath-0.3rc2.tar.gz"
 
@@ -9,6 +9,7 @@ S = "${WORKDIR}/midpath-0.3rc2"
 require midpath-common.inc
 
 SRC_URI += "\
+	file://fix-openfile.patch;patch=1 \
   file://midpath-suitemanager \
   file://midpath-launcher-j2se \
   file://midpath-suitemanager.desktop \





More information about the Openembedded-commits mailing list