bazel: add whitespace around assignments
PATCH 1/1 bazel: add whitespace around assignments
From: Martin Jansa <[email protected]>
With:
https://lists.openembedded.org/g/bitbake-devel/message/17508
there are many WARNINGs from this layer
Fixes:
WARNING: meta-tensorflow/classes/bazel.bbclass:10 has a lack of whitespace around the assignment: 'export USER="unused-bazel-user"'
WARNING: meta-tensorflow/classes/bazel.bbclass:15 has a lack of whitespace around the assignment: 'export BAZEL_STARTUP_OPTIONS="--output_user_root=${BAZEL_DIR}/user_root --output_base=${BAZEL_OUTPUTBASE_DIR} --bazelrc=${S}/bazelrc --batch "'
WARNING: meta-tensorflow/classes/bazel.bbclass:156 has a lack of whitespace around the assignment: 'export YOCTO_NATIVE_SYSROOT="${BAZEL_OUTPUTBASE_DIR}/external/yocto_compiler/recipe-sysroot-native"'
WARNING: meta-tensorflow/classes/bazel-base.bbclass:1 has a lack of whitespace around the assignment: 'export JAVA_HOME="${STAGING_LIBDIR_NATIVE}/jvm/openjdk-11-native"'
WARNING: meta-tensorflow/classes/bazel-base.bbclass:1 has a lack of whitespace around the assignment: 'export JAVA_HOME="${STAGING_LIBDIR_NATIVE}/jvm/openjdk-11-native"'
--- classes/bazel-base.bbclass | 2 +- classes/bazel.bbclass | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
classes/bazel-base.bbclass +1 -1
@@ -1,4 +1,4 @@ -export JAVA_HOME="${STAGING_LIBDIR_NATIVE}/jvm/openjdk-11-native" +export JAVA_HOME = "${STAGING_LIBDIR_NATIVE}/jvm/openjdk-11-native" # %25 of total number of local CPU cores BAZEL_JOBS ??= "HOST_CPUS*.25"
classes/bazel.bbclass +3 -3
@@ -7,8 +7,8 @@ inherit bazel-base BAZEL_DIR ?= "${WORKDIR}/bazel" BAZEL_OUTPUTBASE_DIR ?= "${BAZEL_DIR}/output_base" -export USER="unused-bazel-user" -export BAZEL_STARTUP_OPTIONS="--output_user_root=${BAZEL_DIR}/user_root \ +export USER = "unused-bazel-user" +export BAZEL_STARTUP_OPTIONS = "--output_user_root=${BAZEL_DIR}/user_root \ --output_base=${BAZEL_OUTPUTBASE_DIR} \ --bazelrc=${S}/bazelrc \ --batch \
@@ -153,7 +153,7 @@ PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/bazel" inherit unsupportarch -export YOCTO_NATIVE_SYSROOT="${BAZEL_OUTPUTBASE_DIR}/external/yocto_compiler/recipe-sysroot-native" +export YOCTO_NATIVE_SYSROOT = "${BAZEL_OUTPUTBASE_DIR}/external/yocto_compiler/recipe-sysroot-native" do_rm_work[prefuncs] += "clean_bazel" do_clean[prefuncs] += "clean_bazel"