Bug 15607 - devtool/npm does not build and more issues
Summary: devtool/npm does not build and more issues
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 5.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on: 16105
Blocks:
  Show dependency tree
 
Reported: 2024-10-04 10:59 UTC by Robert Berger
Modified: 2026-04-01 18:37 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Berger 2024-10-04 10:59:59 UTC
On styhead branch 6ffecc808365f7399fb58d53dcd07ff951eba3c7

Please note, that this is the example used in selftests[1]

[1] meta/lib/oeqa/selftest/cases/devtool.py

1) devtool add savoirfairelinux-node-server-example "npm://registry.npmjs.org;package=@savoirfairelinux/node-server-example;version=1.0.0"

Generates the usual license Unknown stuff, but also unparseable code:

unparsed line: 'LICENSE:${PN}-@-execute = "MIT"'

1.1) I fixed the Unknown stuff manually

2) devtool find-recipe savoirfairelinux-node-server-example

/workdir/build/multi-v7-ml-debug-training-master/workspace/recipes/savoirfairelinux-node-server-example/savoirfairelinux-node-server-example_1.0.0.bb

$ cat /workdir/build/multi-v7-ml-debug-training-master/workspace/recipes/savoirfairelinux-node-server-example/savoirfairelinux-node-server-example_1.0.0.bb
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)

SUMMARY = "Node Server Example"
HOMEPAGE = "https://github.com/savoirfairelinux/node-server-example#readme"
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
#
# The following license files were not able to be identified and are
# represented as "Unknown" below, you will need to check them yourself:
#   node_modules/Base64/LICENSE
# NOTE: Original package / source metadata indicates license is: MIT
#
# NOTE: multiple licenses have been detected; they have been separated with &
# in the LICENSE value for now since it is a reasonable assumption that all
# of the licenses apply. If instead there is a choice between the multiple
# licenses then you should change the value to separate the licenses with |
# instead of &. If there is any doubt, check the accompanying documentation
# to determine which situation is applicable.
LICENSE = "BSD-3-Clause & ISC & MIT & Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=270527dc0b85e7700b1910fc8c760eb5 \
                    file://${UNPACKDIR}/node_modules/Base64/LICENSE;md5=198563dbfe6cc579de37fbef010aa10e \
                    file://${UNPACKDIR}/node_modules/accepts/LICENSE;md5=bf1f9ad1e2e1d507aef4883fff7103de \
                    file://${UNPACKDIR}/node_modules/array-flatten/LICENSE;md5=44088ba57cb871a58add36ce51b8de08 \
                    file://${UNPACKDIR}/node_modules/bindings/LICENSE.md;md5=471723f32516f18ef36e7ef63580e4a8 \
                    file://${UNPACKDIR}/node_modules/body-parser/LICENSE;md5=0afd201e48c7d095454eed4ac1184e40 \
                    file://${UNPACKDIR}/node_modules/bytes/LICENSE;md5=013e95467eddb048f19a6f5b42820f86 \
                    file://${UNPACKDIR}/node_modules/call-bind/LICENSE;md5=0eb2c73daa0ecf037cbdf3d0bb0c98d5 \
                    file://${UNPACKDIR}/node_modules/content-disposition/LICENSE;md5=13babc4f212ce635d68da544339c962b \
                    file://${UNPACKDIR}/node_modules/content-type/LICENSE;md5=f4b767f006864f81a4901347fe4efdab \
                    file://${UNPACKDIR}/node_modules/cookie/LICENSE;md5=bc85b43b6f963e8ab3f88e63628448ca \
                    file://${UNPACKDIR}/node_modules/debug/LICENSE;md5=ddd815a475e7338b0be7a14d8ee35a99 \
                    file://${UNPACKDIR}/node_modules/define-data-property/LICENSE;md5=06aae85028f50ba69e6f83b6c9402b26 \
                    file://${UNPACKDIR}/node_modules/depd/LICENSE;md5=ebc30494fd072dc98368da73e1821715 \
                    file://${UNPACKDIR}/node_modules/destroy/LICENSE;md5=d5eb22cf6cc99e645b98b28ee3503ddf \
                    file://${UNPACKDIR}/node_modules/ee-first/LICENSE;md5=c8d3a30332ecb31cfaf4c0a06da18f5c \
                    file://${UNPACKDIR}/node_modules/encodeurl/LICENSE;md5=272621efa0ff4f18a73221e49ab60654 \
                    file://${UNPACKDIR}/node_modules/es-define-property/LICENSE;md5=8fe23ea421aaf9f9d687709f6a6a09b7 \
                    file://${UNPACKDIR}/node_modules/es-errors/LICENSE;md5=8fe23ea421aaf9f9d687709f6a6a09b7 \
                    file://${UNPACKDIR}/node_modules/escape-html/LICENSE;md5=f8746101546eeb9e4f6de64bb8bdf595 \
                    file://${UNPACKDIR}/node_modules/etag/LICENSE;md5=6e8686b7b13dd7ac8733645a81842c4a \
                    file://${UNPACKDIR}/node_modules/express/LICENSE;md5=5513c00a5c36cd361da863dd9aa8875d \
                    file://${UNPACKDIR}/node_modules/file-uri-to-path/LICENSE;md5=9513dc0b97137379cfabc81b60889174 \
                    file://${UNPACKDIR}/node_modules/finalhandler/LICENSE;md5=462b10b32bb9175b97944aabef4aa171 \
                    file://${UNPACKDIR}/node_modules/forwarded/LICENSE;md5=13babc4f212ce635d68da544339c962b \
                    file://${UNPACKDIR}/node_modules/fresh/LICENSE;md5=373c2cf0978b37e434394a43b4cbbdb4 \
                    file://${UNPACKDIR}/node_modules/function-bind/LICENSE;md5=e7417c1a8ad83f88bcac21ad440d48b2 \
                    file://${UNPACKDIR}/node_modules/get-intrinsic/LICENSE;md5=0eb2c73daa0ecf037cbdf3d0bb0c98d5 \
                    file://${UNPACKDIR}/node_modules/gopd/LICENSE;md5=8478c87d16770f6d32a4578c475d3930 \
                    file://${UNPACKDIR}/node_modules/has-property-descriptors/LICENSE;md5=d237eac07663bde2409de740ba75ec97 \
                    file://${UNPACKDIR}/node_modules/has-proto/LICENSE;md5=d237eac07663bde2409de740ba75ec97 \
                    file://${UNPACKDIR}/node_modules/has-symbols/LICENSE;md5=afee57a289508ed4df3456667778aaf6 \
                    file://${UNPACKDIR}/node_modules/hasown/LICENSE;md5=19283ee92f78c91154834571c1f05a94 \
                    file://${UNPACKDIR}/node_modules/http-errors/LICENSE;md5=607209623abfcc77b9098f71a0ef52f9 \
                    file://${UNPACKDIR}/node_modules/iconv-lite/LICENSE;md5=f942263d98f0d75e0e0101884e86261d \
                    file://${UNPACKDIR}/node_modules/inherits/LICENSE;md5=5b2ef2247af6d355ae9d9f988092d470 \
                    file://${UNPACKDIR}/node_modules/ipaddr.js/LICENSE;md5=88f60a4b6e44cb849b5d907a7664c0ef \
                    file://${UNPACKDIR}/node_modules/media-typer/LICENSE;md5=c6e0ce1e688c5ff16db06b7259e9cd20 \
                    file://${UNPACKDIR}/node_modules/merge-descriptors/LICENSE;md5=aaf57ba8c5c9bf256fea7e943991a81a \
                    file://${UNPACKDIR}/node_modules/methods/LICENSE;md5=c16a7dd9f946172f07086576d135d9d3 \
                    file://${UNPACKDIR}/node_modules/mime-db/LICENSE;md5=175b28b58359f8b4a969c9ab7c828445 \
                    file://${UNPACKDIR}/node_modules/mime-types/LICENSE;md5=bf1f9ad1e2e1d507aef4883fff7103de \
                    file://${UNPACKDIR}/node_modules/mime/LICENSE;md5=8e8ea2ad138ce468f8570a0edbadea65 \
                    file://${UNPACKDIR}/node_modules/ms/license.md;md5=fd56fd5f1860961dfa92d313167c37a6 \
                    file://${UNPACKDIR}/node_modules/negotiator/LICENSE;md5=6417a862a5e35c17c904d9dda2cbd499 \
                    file://${UNPACKDIR}/node_modules/object-inspect/LICENSE;md5=288162f1d1bfa064f127f2b42d2a656f \
                    file://${UNPACKDIR}/node_modules/on-finished/LICENSE;md5=1b1f7f9cec194121fdf616b971df7a7b \
                    file://${UNPACKDIR}/node_modules/parseurl/LICENSE;md5=e7842ed4f188e53e53c3e8d9c4807e89 \
                    file://${UNPACKDIR}/node_modules/path-to-regexp/LICENSE;md5=44088ba57cb871a58add36ce51b8de08 \
                    file://${UNPACKDIR}/node_modules/proxy-addr/LICENSE;md5=6e8686b7b13dd7ac8733645a81842c4a \
                    file://${UNPACKDIR}/node_modules/qs/LICENSE.md;md5=b289135779dd930509ae81e6041690c0 \
                    file://${UNPACKDIR}/node_modules/range-parser/LICENSE;md5=d4246fb961a4f121eef5ffca47f0b010 \
                    file://${UNPACKDIR}/node_modules/raw-body/LICENSE;md5=f22163d3bc6b4bc1bbbdf654fe30af5b \
                    file://${UNPACKDIR}/node_modules/safe-buffer/LICENSE;md5=badd5e91c737e7ffdf10b40c1f907761 \
                    file://${UNPACKDIR}/node_modules/safer-buffer/LICENSE;md5=3baebc2a17b8f5bff04882cd0dc0f76e \
                    file://${UNPACKDIR}/node_modules/send/LICENSE;md5=5f1a8369a899b128aaa8a59d60d00b40 \
                    file://${UNPACKDIR}/node_modules/send/node_modules/encodeurl/LICENSE;md5=272621efa0ff4f18a73221e49ab60654 \
                    file://${UNPACKDIR}/node_modules/send/node_modules/ms/license.md;md5=2b8bc52ae6b7ba58e1629deabd53986f \
                    file://${UNPACKDIR}/node_modules/serve-static/LICENSE;md5=27b1707520b14d0bc890f4e75cd387b0 \
                    file://${UNPACKDIR}/node_modules/set-function-length/LICENSE;md5=19283ee92f78c91154834571c1f05a94 \
                    file://${UNPACKDIR}/node_modules/setprototypeof/LICENSE;md5=4846f1626304c2c0f806a539bbc7d54a \
                    file://${UNPACKDIR}/node_modules/side-channel/LICENSE;md5=375dc7ca936a14e9c29418d5263bd066 \
                    file://${UNPACKDIR}/node_modules/statuses/LICENSE;md5=36e2bc837ce69a98cc33a9e140d457e5 \
                    file://${UNPACKDIR}/node_modules/toidentifier/LICENSE;md5=1a261071a044d02eb6f2bb47f51a3502 \
                    file://${UNPACKDIR}/node_modules/type-is/LICENSE;md5=0afd201e48c7d095454eed4ac1184e40 \
                    file://${UNPACKDIR}/node_modules/unpipe/LICENSE;md5=934ab86a8ab081ea0326add08d550739 \
                    file://${UNPACKDIR}/node_modules/utils-merge/LICENSE;md5=1cf0906082187f374cb9a63c54eb782c \
                    file://${UNPACKDIR}/node_modules/vary/LICENSE;md5=13babc4f212ce635d68da544339c962b \
                    file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = " \
    npm://registry.npmjs.org/;package=@savoirfairelinux/node-server-example;version=${PV} \
    npmsw://${THISDIR}/${BPN}/npm-shrinkwrap.json \
    "

S = "${WORKDIR}/npm"

inherit npm

LICENSE:${PN}-execute = "MIT"
LICENSE:${PN}-accepts = "MIT"
LICENSE:${PN}-array-flatten = "MIT"
LICENSE:${PN}-base64 = "Apache-2.0 | WTFPL"
LICENSE:${PN}-bindings = "MIT"
LICENSE:${PN}-body-parser = "MIT"
LICENSE:${PN}-bytes = "MIT"
LICENSE:${PN}-call-bind = "MIT"
LICENSE:${PN}-content-disposition = "MIT"
LICENSE:${PN}-content-type = "MIT"
LICENSE:${PN}-cookie = "MIT"
LICENSE:${PN}-cookie-signature = "MIT"
LICENSE:${PN}-debug = "MIT"
LICENSE:${PN}-define-data-property = "MIT"
LICENSE:${PN}-depd = "MIT"
LICENSE:${PN}-destroy = "MIT"
LICENSE:${PN}-ee-first = "MIT"
LICENSE:${PN}-encodeurl = "MIT"
LICENSE:${PN}-es-define-property = "MIT"
LICENSE:${PN}-es-errors = "MIT"
LICENSE:${PN}-escape-html = "MIT"
LICENSE:${PN}-etag = "MIT"
LICENSE:${PN}-express = "MIT"
LICENSE:${PN}-file-uri-to-path = "MIT"
LICENSE:${PN}-finalhandler = "MIT"
LICENSE:${PN}-forwarded = "MIT"
LICENSE:${PN}-fresh = "MIT"
LICENSE:${PN}-function-bind = "MIT"
LICENSE:${PN}-get-intrinsic = "MIT"
LICENSE:${PN}-gopd = "MIT"
LICENSE:${PN}-has-property-descriptors = "MIT"
LICENSE:${PN}-has-proto = "MIT"
LICENSE:${PN}-has-symbols = "MIT"
LICENSE:${PN}-hasown = "MIT"
LICENSE:${PN}-http-errors = "MIT"
LICENSE:${PN}-iconv-lite = "MIT"
LICENSE:${PN}-inherits = "ISC"
LICENSE:${PN}-ipaddrjs = "MIT"
LICENSE:${PN}-media-typer = "MIT"
LICENSE:${PN}-merge-descriptors = "MIT"
LICENSE:${PN}-methods = "MIT"
LICENSE:${PN}-mime = "MIT"
LICENSE:${PN}-mime-db = "MIT"
LICENSE:${PN}-mime-types = "MIT"
LICENSE:${PN}-ms = "MIT"
LICENSE:${PN}-negotiator = "MIT"
LICENSE:${PN}-object-inspect = "MIT"
LICENSE:${PN}-on-finished = "MIT"
LICENSE:${PN}-parseurl = "MIT"
LICENSE:${PN}-path-to-regexp = "MIT"
LICENSE:${PN}-proxy-addr = "MIT"
LICENSE:${PN}-qs = "BSD-3-Clause"
LICENSE:${PN}-range-parser = "MIT"
LICENSE:${PN}-raw-body = "MIT"
LICENSE:${PN}-safe-buffer = "MIT"
LICENSE:${PN}-safer-buffer = "MIT"
LICENSE:${PN}-send = "MIT"
LICENSE:${PN}-send-encodeurl = "MIT"
LICENSE:${PN}-send-ms = "MIT"
LICENSE:${PN}-serve-static = "MIT"
LICENSE:${PN}-set-function-length = "MIT"
LICENSE:${PN}-setprototypeof = "ISC"
LICENSE:${PN}-side-channel = "MIT"
LICENSE:${PN}-statuses = "MIT"
LICENSE:${PN}-toidentifier = "MIT"
LICENSE:${PN}-type-is = "MIT"
LICENSE:${PN}-unpipe = "MIT"
LICENSE:${PN}-utils-merge = "MIT"
LICENSE:${PN}-vary = "MIT"
LICENSE:${PN} = "MIT"

3) devtool build savoirfairelinux-node-server-example

NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /workdir/persistent_master/prserv.sqlite3, Address: 127.0.0.1:35497, PID: 18468
ERROR: No recipe named 'savoirfairelinux-node-server-example' in your workspace

????
Comment 1 Robert Berger 2024-10-04 11:10:39 UTC
4) bitbake savoirfairelinux-node-server-example

builds :)
Comment 2 Robert Berger 2024-10-04 11:11:50 UTC
5) bitbake-layers show-recipes savoirfairelinux-node-server-example
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /workdir/persistent_master/prserv.sqlite3, Address: 127.0.0.1:36599, PID: 20537
Loading cache: 100% |##########################################################################################################################################################| Time: 0:00:00
Loaded 4968 entries from dependency cache.
=== Matching recipes: ===
savoirfairelinux-node-server-example:
  workspace            1.0.0
Comment 3 Tim Orling 2024-10-10 14:35:15 UTC
We don't currently have anyone working in this area, any help is appreciated.
Comment 4 Robert Berger 2024-10-24 21:36:46 UTC
The eSDK also seems to freak out:

<pre>You are about to install the SDK to &quot;/opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand&quot;. Proceed [Y/n]? Y
Extracting SDK..................................................................................................................................................................................................................................................................done
Setting it up...
Extracting buildtools...
Preparing build system...
NOTE: bitbake server is not running.
<font color="#EF2929"><b>ERROR</b></font>: <font color="#CC0000">Unable to parse /opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/layers/poky-training-master/bitbake/lib/bb/parse/parse_py/ConfHandler.py</font>
Traceback (most recent call last):
  File &quot;/opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/layers/poky-training-master/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 200, in feeder(lineno=14, s=&apos;PRAUTO$@savoirfairelinux-node-server-example-1.0.0-r0$armv7at2hf-neon$30e6c5373424e1088876dffbaf0d0290ce61b8470960dc4b9aaf7a4dd99251e8 = &quot;0&quot;&apos;, fn=&apos;/opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/conf/prserv.inc&apos;, statements=[&lt;bb.parse.ast.DataNode object at 0x7f17dade0e00&gt;], baseconfig=False, conffile=False):
     
    &gt;    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
     
bb.parse.ParseError: ParseError at /opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/conf/prserv.inc:14: unparsed line: &apos;PRAUTO$@savoirfairelinux-node-server-example-1.0.0-r0$armv7at2hf-neon$30e6c5373424e1088876dffbaf0d0290ce61b8470960dc4b9aaf7a4dd99251e8 = &quot;0&quot;&apos;

Importing from file /opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/conf/prserv.inc failed!
ERROR: PR data import failed: error log written to /opt/ext-sdk/resy/5.1.66/multi-v7-ml/imx6q-phytec-mira-rdk-nand/preparing_build_system.log
</pre>
Comment 5 Randy MacLeod 2025-01-30 16:06:37 UTC
Bulk move to 5.2-M3.
Comment 6 Randy MacLeod 2025-01-30 16:17:03 UTC
Bulk move to 5.2-M3 and this time I'll actually specify M3!
Comment 7 Randy MacLeod 2025-03-18 19:31:01 UTC
Robert,
Is this issue still happening?
Comment 8 Randy MacLeod 2025-05-01 14:09:07 UTC
Bulk move of most 5.2-M4 unassigned bugs to 5.3-M2.
Comment 9 Randy MacLeod 2026-04-01 18:37:30 UTC
Also blocked by npm fetcher being disabled so move to 6.99.

fetch2/npm/npmsw: Disable npm and npmsw fetchers due to security concerns

https://git.openembedded.org/bitbake/commit/?id=355cd226e0720a9ed7683bb01c8c0a58eee03664