diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass index e0159ba..b3e72f3 100644 --- a/classes/java-library.bbclass +++ b/classes/java-library.bbclass @@ -16,7 +16,7 @@ inherit java PACKAGE_ARCH ?= "all" # Fully expanded - so it applies the overrides as well PACKAGE_ARCH_EXPANDED := "${PACKAGE_ARCH}" -inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED') == 'all', 'allarch', '')} +inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED', False) == 'all', 'allarch', '')} # use java_stage for native packages JAVA_NATIVE_STAGE_INSTALL = "1" diff --git a/classes/openjdk-build-helper.bbclass b/classes/openjdk-build-helper.bbclass index 01ed591..8bf0ced 100644 --- a/classes/openjdk-build-helper.bbclass +++ b/classes/openjdk-build-helper.bbclass @@ -23,7 +23,7 @@ def openjdk_build_helper_get_parallel_make(d): # version. def openjdk_build_helper_get_cflags_by_cc_version(d, version): if version.isdigit(): - return d.getVar('FLAGS_GCC%d' % int(version)) or '' + return d.getVar('FLAGS_GCC%d' % int(version), False) or '' return '' def openjdk_build_helper_get_build_cflags(d): @@ -33,7 +33,7 @@ def openjdk_build_helper_get_build_cflags(d): cc = Popen(cmd, stdout=PIPE, stderr=PIPE) return cc.communicate()[0].decode('utf-8')[0] - build_cc = d.getVar('BUILD_CC') + build_cc = d.getVar('BUILD_CC', False) version = get_build_cc_version(build_cc) return openjdk_build_helper_get_cflags_by_cc_version(d, version) @@ -43,7 +43,7 @@ def openjdk_build_helper_get_target_cflags(d): # in the cross case, trust that GCCVERSION is correct. This won't # work if the native toolchain is Clang, but as of this writing that # doesn't work anyway. - version = d.getVar('GCCVERSION')[0] + version = d.getVar('GCCVERSION', False)[0] # skip non digit characters at the beginning, e.g. from "linaro-6.2%" match = re.search("\d", version) if match: @@ -83,7 +83,7 @@ def openjdk_build_helper_get_llvm_configure_arch(d): elif arch == "arm": arch = "arm" else: - if 'shark' in d.getVar('PACKAGECONFIG').split(): + if 'shark' in d.getVar('PACKAGECONFIG', False).split(): bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN', True), arch) ); return arch diff --git a/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb b/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb index feaa7dc..977d89e 100644 --- a/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb +++ b/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb @@ -32,7 +32,7 @@ B = "${WORKDIR}/build" JARFILENAME = "${BPN}.jar" python () { - runtime = d.getVar("PREFERRED_RPROVIDER_java2-runtime") or "" + runtime = d.getVar("PREFERRED_RPROVIDER_java2-runtime", False) or "" if not runtime in ("openjdk-8", "openjre-8"): raise bb.parse.SkipRecipe("PREFERRED_RPROVIDER_java2-runtime '%s' unsupported" % runtime) }