Skip to content

fix(nodejs): package-split between nodejs and nodejs-npm#668

Closed
janfeemers wants to merge 1 commit intoopenembedded:masterfrom
janfeemers:fix/nodejsPackageSplit
Closed

fix(nodejs): package-split between nodejs and nodejs-npm#668
janfeemers wants to merge 1 commit intoopenembedded:masterfrom
janfeemers:fix/nodejsPackageSplit

Conversation

@janfeemers
Copy link
Copy Markdown

The nodejs package contains a symbolic link /usr/bin/corepack to a file from the nodejs-npm package.

build/tmp/work/core2-64-poky-linux/nodejs/18.14.2-r0/packages-split/nodejs/usr/bin$ ls -l
total 31932
lrwxrwxrwx 1 jan jan       45 Feb 21 05:08 corepack -> ../lib/node_modules/corepack/dist/corepack.js
-rwxr-xr-x 2 jan jan 32694304 Feb 21 05:08 node

build/tmp/work/core2-64-poky-linux/nodejs/18.14.2-r0/packages-split/nodejs-npm/usr/lib/node_modules/corepack/dist$ ls -l
total 2428
-rwxr-xr-x 2 jan jan  614216 Feb 21 05:08 corepack.js

Due to the link, the build system detects a dependency from package
nodejs to package nodejs-npm.
Since the nodejs-npm package depends on plenty more packages the link
should be moved to the nodejs-npm package.

The nodejs package contains a symbolic link `/usr/bin/corepack` to a
file from the nodejs-npm package.

```shell
build/tmp/work/core2-64-poky-linux/nodejs/18.14.2-r0/packages-split/nodejs/usr/bin$ ls -l
total 31932
lrwxrwxrwx 1 jan jan       45 Feb 21 05:08 corepack -> ../lib/node_modules/corepack/dist/corepack.js
-rwxr-xr-x 2 jan jan 32694304 Feb 21 05:08 node

build/tmp/work/core2-64-poky-linux/nodejs/18.14.2-r0/packages-split/nodejs-npm/usr/lib/node_modules/corepack/dist$ ls -l
total 2428
-rwxr-xr-x 2 jan jan  614216 Feb 21 05:08 corepack.js
```

Due to the link, the build system detects a dependency from package
`nodejs` to package `nodejs-npm`.
Since the `nodejs-npm` package depends on plenty more packages the link
should be moved to the `nodejs-npm` package.
@kraj
Copy link
Copy Markdown
Contributor

kraj commented Apr 3, 2023

applied with 4488418

@kraj kraj closed this Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants