Skip to contentSkip to conversation

openjdk-8: add ALTERNATIVE for "keytool"

PATCH New Richard Leitner 1 participant 3 messages Sep 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 openjdk-8: add ALTERNATIVE for "keytool"

As we have ALTERNATIVEs for java and javac we should also provide one for the keytool.

---
 recipes-core/openjdk/openjdk-8_265.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-core/openjdk/openjdk-8_265.bb +4 -1
index bc6ce51..f9049e5 100644
@@ -53,9 +53,12 @@ inherit update-alternatives
 
 ALTERNATIVE_PRIORITY = "100"
 
-ALTERNATIVE_${PN} = "java javac"
+ALTERNATIVE_${PN} = "java javac keytool"
 ALTERNATIVE_LINK_NAME[java] = "${bindir}/java"
 ALTERNATIVE_TARGET[java] = "${JDK_HOME}/bin/java"
 
 ALTERNATIVE_LINK_NAME[javac] = "${bindir}/javac"
 ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac"
+
+ALTERNATIVE_LINK_NAME[keytool] = "${bindir}/keytool"
+ALTERNATIVE_TARGET[keytool] = "${JDK_HOME}/bin/keytool"
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/3 openjre-8: add ALTERNATIVE for "keytool"

As we have ALTERNATIVEs for java and javac we should also provide one for the keytool.

---
 recipes-core/openjdk/openjre-8_265.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
recipes-core/openjdk/openjre-8_265.bb +6 -2
index ce6392a..55ca1ec 100644
@@ -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"
Signature · 1 line
2.26.2
#2 lore raw

PATCH 3/3 openjdk-8-common: fix soundless evaluation

In reply to Richard Leitner

If only alsa and not pulseaudio was in PACKAGECONFIG soundless was configured. This is incorrect for obvious reasons, therefore set soundless only if alsa and pulseaudio isn't set.

---
 recipes-core/openjdk/openjdk-8-common.inc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
recipes-core/openjdk/openjdk-8-common.inc +1 -4
index 04acc59..70585a6 100644
@@ -111,10 +111,7 @@ def package_config_option_cleanup(d):
     if not option_headless and not with_cups:
         option_headless = True
 
-    if not option_soundless and not with_alsa:
-        option_soundless = True
-
-    if not option_soundless and not with_pulseaudio:
+    if not option_soundless and not with_pulseaudio and not with_alsa:
         option_soundless = True
 
     options = {'make': [], 'cpp': [], 'env': [], 'configure': ["--disable-ccache"] }
Signature · 1 line
2.26.2