openjdk-8-native: fix incorrect do_install
PATCH 1/1 openjdk-8-native: fix incorrect do_install
From: Jackie Huang <[email protected]>
do_install should not install files directly into
staging dirs, or the ${D} and sstate is empty and
builds from sstate cache will fail.
--- recipes-core/openjdk/openjdk-8-native.inc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
recipes-core/openjdk/openjdk-8-native.inc +5 -7
@@ -68,15 +68,13 @@ do_compile_append() { } do_install() { - rm -rf ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} - mkdir -p ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} - cp -rp ${B}/images/j2sdk-image/* ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} + mkdir -p ${D}/${libdir_jvm}/${JDK_DIR} + cp -rp ${B}/images/j2sdk-image/* ${D}/${libdir_jvm}/${JDK_DIR} -# clean up the mess from bootstrap + # clean up the mess from bootstrap + mkdir -p ${D}/${bindir} for tool in jar java javac keytool pack200 unpack200 do - rm -f ${STAGING_BINDIR_NATIVE}/$tool - - ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${STAGING_BINDIR_NATIVE}/$tool + ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}/${bindir}/$tool done }
Signature · 1 line
2.3.5
Quoted 19 lines · On Dec 17, 2015, at 7:39 PM, [email protected] wrote:
From: Jackie Huang <[email protected]>
do_installshould not install files directly into staging dirs, or the ${D} and sstate is empty and builds from sstate cache will fail.Signed-off-by Jackie Huang <[email protected]>---
recipes-core/openjdk/openjdk-8-native.inc | 12 +++++-------1 file changed, 5 insertions(+), 7 deletions(-)recipes-core/openjdk/openjdk-8-native.inc +0
-0
recipes-core/openjdk/openjdk-8-native.inc do_compile_append() { · line 72
Quoted 8 lines
recipes-core/openjdk/openjdk-8-native.inc +2
-3@@ -68,15 +68,13 @@ do_compile_append() { } do_install() { - rm -rf ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} - mkdir -p ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} - cp -rp ${B}/images/j2sdk-image/* ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} + mkdir -p ${D}/${libdir_jvm}/${JDK_DIR} + cp -rp ${B}/images/j2sdk-image/* ${D}/${libdir_jvm}/${JDK_DIR}
slash between D and libdir_jvm is not needed. Also on line above this one is same problem.
Quoted 20 lines
recipes-core/openjdk/openjdk-8-native.inc +3
-5-# clean up the mess from bootstrap + # clean up the mess from bootstrap + mkdir -p ${D}/${bindir} for tool in jar java javac keytool pack200 unpack200 do - rm -f ${STAGING_BINDIR_NATIVE}/$tool - - ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${STAGING_BINDIR_NATIVE}/$tool + ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}/${bindir}/$tool done } --2.3.5
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 31 lines
-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Khem Raj
Sent: Friday, December 18, 2015 12:11 PM
To: [email protected]
Subject: Re: [oe] [meta-java][PATCH] openjdk-8-native: fix incorrectdo_installrecipes-core/openjdk/openjdk-8-
Quoted 14 lines · On Dec 17, 2015, at 7:39 PM, [email protected] wrote:
From: Jackie Huang <[email protected]>
do_installshould not install files directly into staging dirs, or the ${D} and sstate is empty and builds from sstate cache will fail.Signed-off-by Jackie Huang <[email protected]>---
recipes-core/openjdk/openjdk-8-native.inc | 12 +++++-------1 file changed, 5 insertions(+), 7 deletions(-)recipes-core/openjdk/openjdk-8- renamed from recipes-core/openjdk/openjdk-8-native.inc +0
-0native.inc
Quoted 6 lines
index 7813ec2..a75f9e0 100644
recipes-core/openjdk/openjdk-8-native.inc +0
-0@@ -68,15 +68,13 @@ do_compile_append() { }
Quoted 8 lines
recipes-core/openjdk/openjdk-8-native.inc do_compile_append() { · line 72
Quoted 6 lines
recipes-core/openjdk/openjdk-8-native.inc +2
-3do_install() { - rm -rf ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} - mkdir -p ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} - cp -rp ${B}/images/j2sdk-image/* ${STAGING_LIBDIR_NATIVE}/jvm/${JDK_DIR} + mkdir -p ${D}/${libdir_jvm}/${JDK_DIR} + cp -rp ${B}/images/j2sdk-image/* ${D}/${libdir_jvm}/${JDK_DIR}slash between D and
libdir_jvmis not needed. Also on line above this one is same problem.
Ok, I will remove the slashes and re-send.
Thanks,
Jackie
Quoted 21 lines
Quoted 21 lines
recipes-core/openjdk/openjdk-8-native.inc +3
-5-# clean up the mess from bootstrap + # clean up the mess from bootstrap + mkdir -p ${D}/${bindir} for tool in jar java javac keytool pack200 unpack200 do - rm -f ${STAGING_BINDIR_NATIVE}/$tool - - ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${STAGING_BINDIR_NATIVE}/$tool + ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}/${bindir}/$tool done } --2.3.5
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel