Skip to contentSkip to conversation

bazel-native: inherit pythonnative to fix do_compile error

PATCH New Chen Qi 1 participant 2 messages Feb 21, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/2 bazel-native: inherit pythonnative to fix do_compile error

The compilation process needs python (python2) to be there, so fix it by making bazel-native inherit pythonnative.

---
 recipes-devtools/bazel/bazel-native_0.21.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/bazel/bazel-native_0.21.0.bb +1 -1
index 3395c2f..03c3e8d 100644
@@ -9,7 +9,7 @@ SRC_URI = "https://github.com/bazelbuild/bazel/releases/download/${PV}/bazel-${P
            file://0001-HttpDownloader-save-download-tarball-to-distdir.patch \
 "
 
-inherit native
+inherit native pythonnative
 
 INHIBIT_SYSROOT_STRIP = "1"
 
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 layer.conf: depend on meta-python2

bazel-native needs python2-native, so depend on meta-python2. Also update the README file.

---
 README.md       | 4 ++++
 conf/layer.conf | 1 +
 2 files changed, 5 insertions(+)
README.md +4 -0
index dbd349e..a04946a 100644
@@ -33,6 +33,10 @@ URI: git://github.com/openembedded/meta-openembedded.git
 layers: meta-python, meta-oe
 branch: master
 revision: HEAD
+
+URI: git://git.openembedded.org/meta-python2
+branch: master
+revision: HEAD
 ```
 ### 2. Based on Wind River Linux
 Wind River Linux (CI/CD branch)
conf/layer.conf +1 -0
index a1ad84d..0da7b2e 100644
@@ -17,6 +17,7 @@ LAYERDEPENDS_meta-tensorflow = " \
     core \
     meta-python \
     openembedded-layer \
+    meta-python2 \
 "
 
 LAYER_PATH_meta-tensorflow = "${LAYERDIR}"
Signature · 1 line
2.17.1