[oe] [meta-java][PATCH 1/3] cacao: create the link /usr/bin/java in cacao-native

Hugo Vasconcelos Saldanha hugo.saldanha at aker.com.br
Tue Feb 24 16:05:37 UTC 2015


In native build, the link is not created by update-alternatives.
Some package builds were failing, like gnumail and gnujaf, if cacao
was the PREFERRED_PROVIDER_virtual/java-native.

Something similiar is currently done with jamvm-native.

Signed-off-by: Hugo Vasconcelos Saldanha <hugo.saldanha at aker.com.br>
---
 recipes-core/cacao/cacao_1.6.1.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
index 0cb2fbc..2bd06c6 100644
--- a/recipes-core/cacao/cacao_1.6.1.bb
+++ b/recipes-core/cacao/cacao_1.6.1.bb
@@ -59,6 +59,10 @@ do_install_append () {
     rm ${D}/${bindir}/java
 }
 
+do_install_append_class-native () {
+    ln -sf cacao ${D}/${bindir}/java
+}
+
 FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}"
 FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
 FILES_${PN}-doc += "${datadir}/gc"
-- 
2.3.0





More information about the Openembedded-devel mailing list