Skip to contentSkip to conversation

mraa/upm: enable nodejs bindings by default

PATCH Superseded Mikko Ylinen 3 participants 10 messages Oct 11, 2017 – Oct 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mraa/upm: enable nodejs bindings by default

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default.

---
 meta-oe/recipes-extended/mraa/mraa_git.bb | 2 +-
 meta-oe/recipes-extended/upm/upm_git.bb   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +1 -1
index 616048fac..56557cca8 100644
@@ -31,7 +31,7 @@ FILES_${PN}-utils = "${bindir}/"
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-mraa="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
meta-oe/recipes-extended/upm/upm_git.bb +1 -1
index 38065ce53..a258ac8b2 100644
@@ -26,7 +26,7 @@ inherit distutils3-base cmake
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-upm="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
Signature · 1 line
2.11.0
#1 lore raw

Breaks qemuarm builds:

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'nodejs' (but /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/mraa/mraa_git.bb, /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/upm/upm_git.bb RDEPENDS on or otherwise requires it)
nodejs was skipped: incompatible with machine qemuarm (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'nodejs' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['nodejs']
NOTE: Runtime target 'upm-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['upm-dev', 'mraa', 'nodejs']
NOTE: Runtime target 'upm' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['upm', 'mraa', 'nodejs']
NOTE: Runtime target 'mraa' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['mraa', 'nodejs']
ERROR: Nothing RPROVIDES 'mraa-dev' (but /home/jenkins/oe/world/shr-core/meta-openembedded/meta-oe/recipes-extended/mraa/mraa_git.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'mraa-dev'
NOTE: Runtime target 'mraa-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['mraa-dev']

Quoted 56 lines · Mikko Ylinen

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default.

---
 meta-oe/recipes-extended/mraa/mraa_git.bb | 2 +-
 meta-oe/recipes-extended/upm/upm_git.bb   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -1
index 616048fac..56557cca8 100644
@@ -31,7 +31,7 @@ FILES_${PN}-utils = "${bindir}/"
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-mraa="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS')

or '0') else '' }"
+BINDINGS ??= "python nodejs"

PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}',
'nodejs', '', d)} \
${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '',
d)}"

meta-oe/recipes-extended/upm/upm_git.bb +0 -1
index 38065ce53..a258ac8b2 100644
@@ -26,7 +26,7 @@ inherit distutils3-base cmake
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-upm="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS')

or '0') else '' }"
+BINDINGS ??= "python nodejs"

PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}',
'nodejs', '', d)} \
${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '',
d)}"
--
2.11.0

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

PATCH v2 1/1 mraa/upm: enable nodejs bindings by default

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with an exception for qemuarm/armv5 where nodejs isn't available).

---
 meta-oe/recipes-extended/mraa/mraa_git.bb | 5 ++++-
 meta-oe/recipes-extended/upm/upm_git.bb   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +4 -1
index 616048fac..b22691ca4 100644
@@ -31,7 +31,10 @@ FILES_${PN}-utils = "${bindir}/"
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-mraa="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv5 architecture
+BINDINGS_qemuarm ??= "python"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
meta-oe/recipes-extended/upm/upm_git.bb +4 -1
index 38065ce53..eea5ae80a 100644
@@ -26,7 +26,10 @@ inherit distutils3-base cmake
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-upm="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv5 architecture
+BINDINGS_qemuarm ??= "python"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
Signature · 1 line
2.11.0
#3 lore raw
Quoted 20 lines · Mikko Ylinen

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with an exception for qemuarm/armv5 where nodejs isn't available).

---
 meta-oe/recipes-extended/mraa/mraa_git.bb | 5 ++++-
 meta-oe/recipes-extended/upm/upm_git.bb   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -0
index 616048fac..b22691ca4 100644

meta-oe/recipes-extended/mraa/mraa_git.bb FILES_${PN}-utils = "${bindir}/" · line 37

Quoted 8 lines
meta-oe/recipes-extended/mraa/mraa_git.bb +4 -1
@@ -31,7 +31,10 @@ FILES_${PN}-utils = "${bindir}/"
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-mraa="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv5 architecture
+BINDINGS_qemuarm ??= "python"

qemuarm isn't the only armv4 and armv5 MACHINE OE supports, use the same 3 overrides nodejs recipe is using.

Quoted 26 lines
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -0
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
meta-oe/recipes-extended/upm/upm_git.bb +4 -1
index 38065ce53..eea5ae80a 100644
@@ -26,7 +26,10 @@ inherit distutils3-base cmake
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-upm="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv5 architecture
+BINDINGS_qemuarm ??= "python"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
Signature · 7 lines
2.11.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw

PATCH v3 1/1 mraa/upm: enable nodejs bindings by default

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with exceptions for armv4 and armv5 where nodejs isn't available).

---
 meta-oe/recipes-extended/mraa/mraa_git.bb | 6 +++++-
 meta-oe/recipes-extended/upm/upm_git.bb   | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +5 -1
index 616048fac..b93fd72c8 100644
@@ -31,7 +31,11 @@ FILES_${PN}-utils = "${bindir}/"
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-mraa="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
meta-oe/recipes-extended/upm/upm_git.bb +5 -1
index 38065ce53..da1e4add5 100644
@@ -26,7 +26,11 @@ inherit distutils3-base cmake
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-upm="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
Signature · 1 line
2.11.0
#5 lore raw
Quoted 20 lines · Mikko Ylinen

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with exceptions for armv4 and armv5 where nodejs isn't available).

---
 meta-oe/recipes-extended/mraa/mraa_git.bb | 6 +++++-
 meta-oe/recipes-extended/upm/upm_git.bb   | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -0
index 616048fac..b93fd72c8 100644

meta-oe/recipes-extended/mraa/mraa_git.bb FILES_${PN}-utils = "${bindir}/" · line 38

Quoted 9 lines
meta-oe/recipes-extended/mraa/mraa_git.bb +5 -1
@@ -31,7 +31,11 @@ FILES_${PN}-utils = "${bindir}/"
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-mraa="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"

Still missing one, aren't you?

Quoted 27 lines
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -0
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
meta-oe/recipes-extended/upm/upm_git.bb +5 -1
index 38065ce53..da1e4add5 100644
@@ -26,7 +26,11 @@ inherit distutils3-base cmake
 # override this in local.conf to get needed bindings.
 # BINDINGS_pn-upm="python"
 # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
  ${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
Signature · 7 lines
2.11.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw

Hi,

Quoted 16 lines · Martin Jansa
Quoted 15 lines · Mikko Ylinen

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with exceptions for armv4 and armv5 where nodejs isn't available).

---
  meta-oe/recipes-extended/mraa/mraa_git.bb | 6 +++++-
  meta-oe/recipes-extended/upm/upm_git.bb   | 6 +++++-
  2 files changed, 10 insertions(+), 2 deletions(-)
Quoted 16 lines
Quoted 5 lines
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -0
index 616048fac..b93fd72c8 100644

meta-oe/recipes-extended/mraa/mraa_git.bb FILES_${PN}-utils = "${bindir}/" · line 38

Quoted 9 lines
meta-oe/recipes-extended/mraa/mraa_git.bb +5 -1
@@ -31,7 +31,11 @@ FILES_${PN}-utils = "${bindir}/"
  # override this in local.conf to get needed bindings.
  # BINDINGS_pn-mraa="python"
  # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS') or '0') else '' }"
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"

Still missing one, aren't you?

With qemumips64 I got:

ERROR: Nothing PROVIDES 'mraa'
mraa was skipped: incompatible with host mips64-refkit-linux (not in COMPATIBLE_HOST)

So I left it out.

-- Mikko

#7 lore raw

Fails to build:
http://errors.yoctoproject.org/Errors/Details/157425/

Quoted 53 lines · Mikko Ylinen

Hi,

Quoted 27 lines · Martin Jansa
Quoted 25 lines · Mikko Ylinen

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with exceptions for armv4 and armv5 where nodejs isn't available).

---
  meta-oe/recipes-extended/mraa/mraa_git.bb | 6 +++++-
  meta-oe/recipes-extended/upm/upm_git.bb   | 6 +++++-
  2 files changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -1
index 616048fac..b93fd72c8 100644
@@ -31,7 +31,11 @@ FILES_${PN}-utils = "${bindir}/"
  # override this in local.conf to get needed bindings.
  # BINDINGS_pn-mraa="python"
  # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS')
Quoted 10 lines

meta-oe/recipes-extended/mraa/mraa_git.bb FILES_${PN}-utils = "${bindir}/" · line 38

Quoted 7 lines

or '0') else '' }"

meta-oe/recipes-extended/mraa/mraa_git.bb +5 -0
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"

Still missing one, aren't you?

With qemumips64 I got:

ERROR: Nothing PROVIDES 'mraa'
mraa was skipped: incompatible with host mips64-refkit-linux (not in COMPATIBLE_HOST)

So I left it out.

-- Mikko

#8 lore raw
Quoted 3 lines · Martin Jansa

Fails to build:
http://errors.yoctoproject.org/Errors/Details/157425/

and fails on musl too

http://errors.yoctoproject.org/Errors/Build/47646/

Quoted 61 lines
Quoted 45 lines · Mikko Ylinen

Hi,

Quoted 27 lines · Martin Jansa
Quoted 25 lines · Mikko Ylinen

HAVE_NODEJS is a leftover from meta-refkit-core where the layer had to adapt to different BBLAYER combinations (some where nodejs wasn't available but mraa/upm were).

Since that check is no longer needed and nodejs is in fact part of meta-oe, nodejs bindings can be enabled by default (with exceptions for armv4 and armv5 where nodejs isn't available).

---
  meta-oe/recipes-extended/mraa/mraa_git.bb | 6 +++++-
  meta-oe/recipes-extended/upm/upm_git.bb   | 6 +++++-
  2 files changed, 10 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/mraa/mraa_git.bb +0 -1
index 616048fac..b93fd72c8 100644
@@ -31,7 +31,11 @@ FILES_${PN}-utils = "${bindir}/"
  # override this in local.conf to get needed bindings.
  # BINDINGS_pn-mraa="python"
  # will result in only the python bindings being built/packaged.
-BINDINGS ??= "python ${@ 'nodejs' if oe.types.boolean(d.getVar('HAVE_NODEJS')
Quoted 10 lines

meta-oe/recipes-extended/mraa/mraa_git.bb FILES_${PN}-utils = "${bindir}/" · line 38

Quoted 7 lines

or '0') else '' }"

meta-oe/recipes-extended/mraa/mraa_git.bb +5 -0
+BINDINGS ??= "python nodejs"
+
+# nodejs isn't available for armv4/armv5 architectures
+BINDINGS_armv4 ??= "python"
+BINDINGS_armv5 ??= "python"

Still missing one, aren't you?

With qemumips64 I got:

Quoted 8 lines

ERROR: Nothing PROVIDES 'mraa'
mraa was skipped: incompatible with host mips64-refkit-linux (not in COMPATIBLE_HOST)

So I left it out.

-- Mikko

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#9 lore raw

Hi,

Quoted 9 lines · Khem Raj
Quoted 3 lines · Martin Jansa

Fails to build:
http://errors.yoctoproject.org/Errors/Details/157425/

and fails on musl too

http://errors.yoctoproject.org/Errors/Build/47646/

We've been using nodejs bindings via HAVE_NODEJS but with nodejs 6.x (which I used in my testing too).

It looks the errors are because nodejs >7.x- break swig bindings: https://github.com/swig/swig/pull/968

Until oe-core gets the new version of swig, we'll have to keep the nodejs bindings disabled. Let's scratch my previous patches and I'll submit a new one that just cleans out that HAVE_NODEJS leftover.

-- Mikko