diff mbox series

[meta-tensorflow] bazel: add whitespace around assignments

Message ID 20250402160008.3586728-1-martin.jansa@gmail.com
State New
Headers show
Series [meta-tensorflow] bazel: add whitespace around assignments | expand

Commit Message

Martin Jansa April 2, 2025, 4 p.m. UTC
From: Martin Jansa <martin.jansa@gmail.com>

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"'

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
---
 classes/bazel-base.bbclass | 2 +-
 classes/bazel.bbclass      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/classes/bazel-base.bbclass b/classes/bazel-base.bbclass
index 8d90e9b..4741f4e 100644
--- a/classes/bazel-base.bbclass
+++ b/classes/bazel-base.bbclass
@@ -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"
diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass
index 160d50d..8fca205 100644
--- a/classes/bazel.bbclass
+++ b/classes/bazel.bbclass
@@ -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"