if bindir directory doesn't exists the link is created wrongly:

file -b 
tmp/work/x86_64-linux/oracle-jse-jdk-x86-64-native/1.8.0-u131r0/image/home/yocto/build/tmp/sysroots/x86_64-linux/usr/bin
symbolic link to
`/home/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/jvm/java-8-oracle/bin/javac'

tested on morty

Signed-off-by: Jan Remmet <j.rem...@phytec.de>
---
v2: remove default -m 0755 from install command 

 recipes-devtools/oracle-java/oracle-jse-jdk.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/oracle-java/oracle-jse-jdk.inc 
b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
index 935ad9bc2d9f..a7210d9ca475 100644
--- a/recipes-devtools/oracle-java/oracle-jse-jdk.inc
+++ b/recipes-devtools/oracle-java/oracle-jse-jdk.inc
@@ -12,11 +12,14 @@ JDK_JRE = "jdk"
 require oracle-jse.inc
 
 do_install_class-native() {
-       install -d -m 0755                      ${D}${libdir_jvm}
+       install -d                              ${D}${libdir_jvm}
        cp -a ${S}/${JDK_JRE}${PV}_${PV_UPDATE} ${D}${JDK_HOME}
 
+       install -d                              ${D}${bindir}
        ln -sf ${JDK_HOME}/bin/java             ${D}${bindir}
        ln -sf ${JDK_HOME}/bin/javac            ${D}${bindir}
+
+       install -d                              ${D}${JDK_HOME}/bin
        ln -sf javah                            ${D}${JDK_HOME}/bin/gjavah
        ln -sf jar                              ${D}${JDK_HOME}/bin/fastjar
 }
-- 
1.9.1

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to