[oe] [meta-java] openjdk-6-common: move java2-vm to RRECOMMENDS

Koen Kooi koen at dominion.thruhere.net
Mon Dec 5 12:31:56 UTC 2011


 Even though a vm is a hard dependency it is set as RRECOMMENDS so a single vm can get uninstalled:

   root at beaglebone:~/java# opkg remove openjdk-6-vm-shark
   No packages removed.
   Collected errors:
    * print_dependents_warning: Package openjdk-6-vm-shark is depended upon by packages:
    * print_dependents_warning:         openjdk-6-java
    * print_dependents_warning: These might cease to work if package openjdk-6-vm-shark is removed.

In the above situation all vms (cacao, zero and shark) were installed, but due to llvm problems[1] shark is currently broken. To fix the java install shark needs to get uninstalled.

In theory this change allows people to break the java installation, but in practice it's already broken due to [1].

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-December/036595.html

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
 recipes-core/openjdk/openjdk-6-common.inc |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/recipes-core/openjdk/openjdk-6-common.inc b/recipes-core/openjdk/openjdk-6-common.inc
index ef1c41d..257fe56 100644
--- a/recipes-core/openjdk/openjdk-6-common.inc
+++ b/recipes-core/openjdk/openjdk-6-common.inc
@@ -10,7 +10,7 @@ ICEDTEA = "NEEDS TO BE SET"
 S = "${WORKDIR}/${ICEDTEA}"
 B = "${S}/build"
 
-INC_PR = "r11"
+INC_PR = "r12"
 
 SRC_URI = "\
   ${ICEDTEA_URI} \
@@ -426,7 +426,14 @@ RPROVIDES_${JDKPN}-vm-shark = "java2-vm"
 RPROVIDES_${JDKPN}-vm-zero = "java2-vm"
 RPROVIDES_${JDKPN}-vm-cacao = "java2-vm"
 
-RDEPENDS_${JDKPN}-java = "java2-vm"
+# Even though a vm is a hard dependency it is set as RRECOMMENDS so a single vm can get uninstalled:
+# root at beaglebone:~/java# opkg remove openjdk-6-vm-shark 
+# No packages removed.
+# Collected errors:
+#  * print_dependents_warning: Package openjdk-6-vm-shark is depended upon by packages:
+#  * print_dependents_warning: 	openjdk-6-java
+#  * print_dependents_warning: These might cease to work if package openjdk-6-vm-shark is removed.
+RRECOMMENDS_${JDKPN}-java = "java2-vm"
 
 # For some reason shark and cacao do not automatically depends on -common.
 # So we add that manually.
-- 
1.7.2.5





More information about the Openembedded-devel mailing list