Skip to contentSkip to conversation

ca-certificates-java: add support for openjdk-7

PATCH In review Richard Leitner 1 participant 2 messages Aug 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ca-certificates-java: add support for openjdk-7

As this package should be fully comaptible with openjdk-7{-jre} add support for it.

Furthermore depend on icedtea7-native instead of openjdk-8-native because it should be availabe already. Otherwise openjdk-8-native would be built only for this recipe if we use openjdk-7{-jre} only.

---
 recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb +4 -2
index 2db1915..52443ed 100644
@@ -14,7 +14,9 @@ DEPENDS = "virtual/javac-native fastjar-native"
 # We can't use virtual/javac-native, because that would create a
 # keystore that can't be read on the target (as virtual/javac-native
 # usually is either too old, or plain incompatible with this)
-PACKAGE_WRITE_DEPS += "openjdk-8-native"
+# Therefore we use icedtea7-native as it's a dependency for all our openjdk
+# versions and should therefore be available already.
+PACKAGE_WRITE_DEPS += "icedtea7-native"
 
 SRC_URI = "\
 	git://salsa.debian.org/java-team/ca-certificates-java.git \
@@ -33,7 +35,7 @@ JARFILENAME = "${BPN}.jar"
 
 python () {
     runtime = d.getVar("PREFERRED_RPROVIDER_java2-runtime") or ""
-    if not runtime in ("openjdk-8", "openjre-8"):
+    if not runtime in ("openjdk-8", "openjre-8", "openjdk-7-jre"):
         raise bb.parse.SkipRecipe("PREFERRED_RPROVIDER_java2-runtime '%s' unsupported" % runtime)
 }
 
Signature · 1 line
2.11.0
#1 lore raw

Hi,
please just ignore this patch... I sent it by accident... Sorry!

regards;Richard.L

Quoted 37 lines · Richard Leitner

As this package should be fully comaptible with openjdk-7{-jre} add support for it.

Furthermore depend on icedtea7-native instead of openjdk-8-native because it should be availabe already. Otherwise openjdk-8-native would be built only for this recipe if we use openjdk-7{-jre} only.

---
 recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb +4 -2
index 2db1915..52443ed 100644
@@ -14,7 +14,9 @@ DEPENDS = "virtual/javac-native fastjar-native"
 # We can't use virtual/javac-native, because that would create a
 # keystore that can't be read on the target (as virtual/javac-native
 # usually is either too old, or plain incompatible with this)
-PACKAGE_WRITE_DEPS += "openjdk-8-native"
+# Therefore we use icedtea7-native as it's a dependency for all our openjdk
+# versions and should therefore be available already.
+PACKAGE_WRITE_DEPS += "icedtea7-native"
 
 SRC_URI = "\
 	git://salsa.debian.org/java-team/ca-certificates-java.git \
@@ -33,7 +35,7 @@ JARFILENAME = "${BPN}.jar"
 
 python () {
     runtime = d.getVar("PREFERRED_RPROVIDER_java2-runtime") or ""
-    if not runtime in ("openjdk-8", "openjre-8"):
+    if not runtime in ("openjdk-8", "openjre-8", "openjdk-7-jre"):
         raise bb.parse.SkipRecipe("PREFERRED_RPROVIDER_java2-runtime '%s' unsupported" % runtime)
 }