[oe-commits] Marcin Juszkiewicz : java.bbclass: stage all JAR files outside of ARCH related directories

git version control git at git.openembedded.org
Tue Dec 22 09:48:03 UTC 2009


Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: bedc7cb2e83bcfde2cf28ff5774d7f4829d8f0bd
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bedc7cb2e83bcfde2cf28ff5774d7f4829d8f0bd

Author: Marcin Juszkiewicz <marcin at buglabs.net>
Date:   Wed Dec 16 16:43:32 2009 +0100

java.bbclass: stage all JAR files outside of ARCH related directories

When Java things are build for more then one architecture strange things
happen:

- first architecture builds fine
- next architectures fails to build

Thats due to lack of JAR files as they were built as PACKAGE_ARCH="all"
but staged as PACKAGE_ARCH="TARGET_ARCH" so BitBake do not build them
again but Java classes are unable to find them.

Solution is to stage JAR files to non-ARCH directory. I used
staging/java for it and build tested with stable/2009 and
org.openembedded.dev branches.

Signed-off-by: Marcin Juszkiewicz <marcin at buglabs.net>

---

 classes/java.bbclass |    2 +-
 conf/bitbake.conf    |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/classes/java.bbclass b/classes/java.bbclass
index b68035c..d4cf5aa 100644
--- a/classes/java.bbclass
+++ b/classes/java.bbclass
@@ -13,7 +13,7 @@ libdir_jni ?= ${libdir}/jni
 # JVM bundle location on target
 libdir_jvm ?= ${libdir}/jvm
 
-STAGING_DATADIR_JAVA ?= ${STAGING_DATADIR}/java
+STAGING_DATADIR_JAVA ?= ${STAGING_DIR_JAVA}
 STAGING_LIBDIR_JNI ?= ${STAGING_LIBDIR}/jni
 STAGING_LIBDIR_JVM ?= ${STAGING_LIBDIR}/jvm
 
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 48e098d..3a68959 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -297,6 +297,7 @@ B = "${S}"
 
 STAGING_DIR = "${TMPDIR}/staging"
 
+STAGING_DIR_JAVA = "${STAGING_DIR}/java"
 STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}"
 STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}"
 STAGING_BINDIR_CROSS  = "${STAGING_DIR_NATIVE}${bindir_native}/${MULTIMACH_HOST_SYS}"





More information about the Openembedded-commits mailing list