[meta-java,2/3] openjre-8: add ALTERNATIVE for "keytool"

Submitted by Richard Leitner on Sept. 11, 2020, 10:21 a.m. | Patch ID: 176414

Details

Message ID 20200911102116.597001-2-richard.leitner@skidata.com
State Master Next
Delegated to: Richard Leitner
Headers show

Commit Message

Richard Leitner Sept. 11, 2020, 10:21 a.m.
As we have ALTERNATIVEs for java and javac we should also provide one
for the keytool.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
---
 recipes-core/openjdk/openjre-8_265.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/recipes-core/openjdk/openjre-8_265.bb b/recipes-core/openjdk/openjre-8_265.bb
index ce6392a..55ca1ec 100644
--- a/recipes-core/openjdk/openjre-8_265.bb
+++ b/recipes-core/openjdk/openjre-8_265.bb
@@ -38,7 +38,11 @@  RPROVIDES_${PN} = "java2-runtime"
 
 inherit update-alternatives
 
-ALTERNATIVE_${PN} = "java"
+ALTERNATIVE_PRIORITY = "100"
+
+ALTERNATIVE_${PN} = "java keytool"
 ALTERNATIVE_LINK_NAME[java] = "${bindir}/java"
 ALTERNATIVE_TARGET[java] = "${JRE_HOME}/bin/java"
-ALTERNATIVE_PRIORITY[java] = "100"
+
+ALTERNATIVE_LINK_NAME[keytool] = "${bindir}/keytool"
+ALTERNATIVE_TARGET[keytool] = "${JRE_HOME}/bin/keytool"