Skip to contentSkip to conversation

Fix build issue due at the use of bb.data instead of d: Exception: AttributeError: module 'bb.data' has no attribute 'getVar'

PATCH In review Thomas Perrot 2 participants 3 messages Dec 7, 2016 – Dec 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build issue due at the use of bb.data instead of d: Exception: AttributeError: module 'bb.data' has no attribute 'getVar'

---
 recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb     | 6 +++---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 6 +++---
 recipes-ti/devtools/ti-cgt6x_8.1.0.bb                  | 8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)
recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb +3 -3
index 45c8d519..394d1e4a 100644
@@ -14,11 +14,11 @@ SRCREV = "ab0ca5bff345f6c13807fea3c4acabf5f2b9b10a"
 
 # There's only hardfp version available
 python __anonymous() {
-    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    tunes = d.getVar("TUNE_FEATURES", d, 1)
     if not tunes:
         return
-    pkgn = bb.data.getVar("PN", d, 1)
-    pkgv = bb.data.getVar("PV", d, 1)
+    pkgn = d.getVar("PN", d, 1)
+    pkgv = d.getVar("PV", d, 1)
     if "callconvention-hard" not in tunes:
         bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
         raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +3 -3
index 770cda21..5cec40e8 100644
@@ -12,11 +12,11 @@ SRCREV = "a5152f0b90bf3916eb1f478ac9fefe7d7ebe8bd9"
 
 # There's only hardfp version available
 python __anonymous() {
-    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    tunes = d.getVar("TUNE_FEATURES", d, 1)
     if not tunes:
         return
-    pkgn = bb.data.getVar("PN", d, 1)
-    pkgv = bb.data.getVar("PV", d, 1)
+    pkgn = d.getVar("PN", d, 1)
+    pkgv = d.getVar("PV", d, 1)
     if "callconvention-hard" not in tunes:
         bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
         raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
recipes-ti/devtools/ti-cgt6x_8.1.0.bb +4 -4
index 79b562a9..5e97927b 100644
@@ -13,14 +13,14 @@ COMPATIBLE_HOST_class-target = "arm.*-linux"
 
 # For now we only have hardfp version for target class
 python __anonymous() {
-    c = bb.data.getVar("CLASSOVERRIDE", d, 1)
+    c = d.getVar("CLASSOVERRIDE", d, 1)
 
     if c == "class-target":
-        tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+        tunes = d.getVar("TUNE_FEATURES", d, 1)
         if not tunes:
             return
-        pkgn = bb.data.getVar("PN", d, 1)
-        pkgv = bb.data.getVar("PV", d, 1)
+        pkgn = d.getVar("PN", d, 1)
+        pkgv = d.getVar("PV", d, 1)
         if "callconvention-hard" not in tunes:
             bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
             raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
Signature · 1 line
2.11.0
#1 lore raw

Thanks, I've seen the API deprecation change in bitbake[1], but haven't had a chance to make updates yet.
BTW, your commit log got merged with the subject...

[1] http://cgit.openembedded.org/bitbake/commit/?id=1825604d46fcd29fad6cfd325f1cb1e1b457d2c9

Signature · 1 line
Denys
Quoted 76 lines · Thomas Perrot
---
 recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb     | 6 +++---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 6 +++---
 recipes-ti/devtools/ti-cgt6x_8.1.0.bb                  | 8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)
recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb +3 -3
index 45c8d519..394d1e4a 100644
@@ -14,11 +14,11 @@ SRCREV = "ab0ca5bff345f6c13807fea3c4acabf5f2b9b10a"
 
 # There's only hardfp version available
 python __anonymous() {
-    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    tunes = d.getVar("TUNE_FEATURES", d, 1)
     if not tunes:
         return
-    pkgn = bb.data.getVar("PN", d, 1)
-    pkgv = bb.data.getVar("PV", d, 1)
+    pkgn = d.getVar("PN", d, 1)
+    pkgv = d.getVar("PV", d, 1)
     if "callconvention-hard" not in tunes:
         bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
         raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +3 -3
index 770cda21..5cec40e8 100644
@@ -12,11 +12,11 @@ SRCREV = "a5152f0b90bf3916eb1f478ac9fefe7d7ebe8bd9"
 
 # There's only hardfp version available
 python __anonymous() {
-    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    tunes = d.getVar("TUNE_FEATURES", d, 1)
     if not tunes:
         return
-    pkgn = bb.data.getVar("PN", d, 1)
-    pkgv = bb.data.getVar("PV", d, 1)
+    pkgn = d.getVar("PN", d, 1)
+    pkgv = d.getVar("PV", d, 1)
     if "callconvention-hard" not in tunes:
         bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
         raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
recipes-ti/devtools/ti-cgt6x_8.1.0.bb +4 -4
index 79b562a9..5e97927b 100644
@@ -13,14 +13,14 @@ COMPATIBLE_HOST_class-target = "arm.*-linux"
 
 # For now we only have hardfp version for target class
 python __anonymous() {
-    c = bb.data.getVar("CLASSOVERRIDE", d, 1)
+    c = d.getVar("CLASSOVERRIDE", d, 1)
 
     if c == "class-target":
-        tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+        tunes = d.getVar("TUNE_FEATURES", d, 1)
         if not tunes:
             return
-        pkgn = bb.data.getVar("PN", d, 1)
-        pkgv = bb.data.getVar("PV", d, 1)
+        pkgn = d.getVar("PN", d, 1)
+        pkgv = d.getVar("PV", d, 1)
         if "callconvention-hard" not in tunes:
             bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
             raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
Signature · 7 lines
2.11.0

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 3 lines · Denys Dmytriyenko

Thanks, I've seen the API deprecation change in bitbake[1], but haven't had a chance to make updates yet.
BTW, your commit log got merged with the subject...

Ping. Would you like to fix your commit log or should I?

Quoted 88 lines

[1] http://cgit.openembedded.org/bitbake/commit/?id=1825604d46fcd29fad6cfd325f1cb1e1b457d2c9

Signature · 1 line
Denys
Quoted 76 lines · Thomas Perrot
---
 recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb     | 6 +++---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 6 +++---
 recipes-ti/devtools/ti-cgt6x_8.1.0.bb                  | 8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)
recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb +3 -3
index 45c8d519..394d1e4a 100644
@@ -14,11 +14,11 @@ SRCREV = "ab0ca5bff345f6c13807fea3c4acabf5f2b9b10a"
 
 # There's only hardfp version available
 python __anonymous() {
-    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    tunes = d.getVar("TUNE_FEATURES", d, 1)
     if not tunes:
         return
-    pkgn = bb.data.getVar("PN", d, 1)
-    pkgv = bb.data.getVar("PV", d, 1)
+    pkgn = d.getVar("PN", d, 1)
+    pkgv = d.getVar("PV", d, 1)
     if "callconvention-hard" not in tunes:
         bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
         raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb +3 -3
index 770cda21..5cec40e8 100644
@@ -12,11 +12,11 @@ SRCREV = "a5152f0b90bf3916eb1f478ac9fefe7d7ebe8bd9"
 
 # There's only hardfp version available
 python __anonymous() {
-    tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+    tunes = d.getVar("TUNE_FEATURES", d, 1)
     if not tunes:
         return
-    pkgn = bb.data.getVar("PN", d, 1)
-    pkgv = bb.data.getVar("PV", d, 1)
+    pkgn = d.getVar("PN", d, 1)
+    pkgv = d.getVar("PV", d, 1)
     if "callconvention-hard" not in tunes:
         bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
         raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
recipes-ti/devtools/ti-cgt6x_8.1.0.bb +4 -4
index 79b562a9..5e97927b 100644
@@ -13,14 +13,14 @@ COMPATIBLE_HOST_class-target = "arm.*-linux"
 
 # For now we only have hardfp version for target class
 python __anonymous() {
-    c = bb.data.getVar("CLASSOVERRIDE", d, 1)
+    c = d.getVar("CLASSOVERRIDE", d, 1)
 
     if c == "class-target":
-        tunes = bb.data.getVar("TUNE_FEATURES", d, 1)
+        tunes = d.getVar("TUNE_FEATURES", d, 1)
         if not tunes:
             return
-        pkgn = bb.data.getVar("PN", d, 1)
-        pkgv = bb.data.getVar("PV", d, 1)
+        pkgn = d.getVar("PN", d, 1)
+        pkgv = d.getVar("PV", d, 1)
         if "callconvention-hard" not in tunes:
             bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
             raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
Signature · 7 lines
2.11.0

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti