siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
131 stars 77 forks source link

old nodejs version #480

Closed maxvaneck closed 12 months ago

maxvaneck commented 1 year ago

greetings,

I am trying to use the preinstalled node red on a self built example image version 1.3.1 . I need to install some extra packages for extra functionality . unfortunately i am getting the error below. which i have come to understand means that my nodejs version is too old. it is however the latest version available in the repository. soo do I have to install a newer version some other way or do I jut compile from scratch as explained here ? https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms

WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'responselike@3.0.0', npm WARN EBADENGINE required: { node: '>=14.16' }, npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }

thx in advance, Max

jan-kiszka commented 1 year ago

The 1.3.1 image was using Debian 11 (bullseye) as basis, thus had nodejs 12 only. You would have to use current master to get bookworm and nodejs 18. Or you need to select an older version of that node which still worked with nodejs 12.

maxvaneck commented 1 year ago

i'll try the current master then. will report back

maxvaneck commented 1 year ago

ok so master doesn't build for me . i will try option 2 lowering the node package version

ERROR: isar-bootstrap-target-1.0-r0 do_bootstrap: ExecutionError('/build/tmp/work/iot2050-debian-arm64/isar-bootstrap-target/1.0-r0/temp/run.do_bootstrap.2382', 1, None, None) ERROR: Logfile of failure stored in: /build/tmp/work/iot2050-debian-arm64/isar-bootstrap-target/1.0-r0/temp/log.do_bootstrap.2382 Log data follows: | DEBUG: Executing python function sstate_task_prefunc | DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_bootstrap | W: qemu-debootstrap is deprecated. Please use regular debootstrap directly | I: Running command: debootstrap --verbose --variant=minbase --include=locales --arch=arm64 --components=main,contrib,non-free bullseye-backports /build/tmp/work/iot2050-debian-arm64/isar-bootstrap-target/1.0-r0/rootfs http://deb.debian.org/debian | E: No such script: /usr/share/debootstrap/scripts/bullseye-backports | WARNING: exit code 1 from a shell command. ERROR: Task (/build/../work/isar/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb:do_bootstrap) failed with exit code '1' NOTE: Tasks Summary: Attempted 32 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed: /build/../work/isar/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb:do_bootstrap Summary: There was 1 ERROR message, returning a non-zero exit code. 2023-09-15 09:12:28 - ERROR - Command "/work/isar/bitbake/bin/bitbake -c build iot2050-image-example" failed with error 1 sages@maxlapto

maxvaneck commented 1 year ago

unfortunately i went back 4 years in releases but that also didn't work now i got warn EBADENGINE Unsupported engine { 669 warn EBADENGINE package: 'unique-slug@4.0.0', 669 warn EBADENGINE required: { node: '^14.17.0 || ^16.13.0 || >=18.0.0' }, 669 warn EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }

jan-kiszka commented 1 year ago

Then let's fix your build of master - our CI is building it fine: Did you try a clean build (kas-container --isar cleansstate first)?

maxvaneck commented 1 year ago

this was a clean slate git clone but yes i ran it and no luck . interestingly if i disable use release debian packages it seems to build just fine. (still building on my poor laptop)

jan-kiszka commented 1 year ago

Yes, sorry, that switch for the released package set makes no sense: last release was Debian 11, now we are building Debian 12. The feed will get updated soon.

maxvaneck commented 1 year ago

final verdict using the latest version of master worked like a charm. building only worked with the release packages option turned off however