Skip to contentSkip to conversation

Fix openjdk-7 build for daisy

PATCH New Alex Gonzalez 2 participants 3 messages Dec 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix openjdk-7 build for daisy

Building openjdk-7 with daisy fails with the following error:

| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_install
| cp: cannot stat '/opt/yocto/fsl-community-bsp/wandboard-quad-openjdk-daisy/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/

build/openjdk.build/j2sdk-image': No such file or directory
| WARNING: /opt/yocto/fsl-community-bsp/wandboard-quad-openjdk-daisy/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/temp/run .do_install.32726:1 exit 1 from
| cp -R /opt/yocto/fsl-community-bsp/wandboard-quad-openjdk-daisy/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/build/ope
njdk.build/j2sdk-image /opt/yocto/fsl-community-bsp/wandboard-quad-openjdk-daisy/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/openjdk-7-jre/25b30-2.3.12-r 5.1/image/usr/lib/jvm/java-7-openjdk
| ERROR: Function failed: do_install (log file is located at /opt/yocto/fsl-community-bsp/wandboard-quad-openjdk-daisy/tmp/work/cortexa9hf-vfp-neon-poky-linu x-gnueabi/openjdk-7-jre/25b30-2.3.12-r5.1/temp/log.do_install.32726)

This commit from the https://github.com/woglinde/meta-java pull request list fixes it.

Max Krummenacher (1):
openjdk: fix do_install for out of source builds

 recipes-core/openjdk/openjdk-6-common.inc | 2 +-
 recipes-core/openjdk/openjdk-7-common.inc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
#1 lore raw

PATCH 1/1 openjdk: fix do_install for out of source builds

From: Max Krummenacher <[email protected]>

use ${B} to specify the build directory, thus keep working for daisy and older versions as well as for dizzy and newer.

---
 recipes-core/openjdk/openjdk-6-common.inc | 2 +-
 recipes-core/openjdk/openjdk-7-common.inc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
recipes-core/openjdk/openjdk-6-common.inc +1 -1
index 5aa435dc16a1..4254c9f3e13e 100644
@@ -234,7 +234,7 @@ do_compile() {
 
 do_install() {
 	install -d ${D}${libdir_jvm}
-	cp -R ${WORKDIR}/build/${BUILD_DIR}/j2sdk-image ${D}${JDK_HOME}
+	cp -R ${B}/${BUILD_DIR}/j2sdk-image ${D}${JDK_HOME}
 
 	chmod u+rw -R ${D}${JDK_HOME}
 
recipes-core/openjdk/openjdk-7-common.inc +1 -1
index 32fab1612465..e14603c2daba 100644
@@ -172,7 +172,7 @@ do_compile() {
 
 do_install() {
 	install -d ${D}${libdir_jvm}
-	cp -R ${WORKDIR}/build/${BUILD_DIR}/j2sdk-image ${D}${JDK_HOME}
+	cp -R ${B}/${BUILD_DIR}/j2sdk-image ${D}${JDK_HOME}
 
 	chmod u+rw -R ${D}${JDK_HOME}
 
#2 lore raw

Re: [openembedded-devel][meta-java][PATCH] openjdk: fix do_install for out of source builds

Quoted 4 lines · Alex Gonzalez

From: Max Krummenacher <[email protected]>

use ${B} to specify the build directory, thus keep working for daisy and older versions as well as for dizzy and newer.

Applied.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750