diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-02-09 21:56:30 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-10 21:11:45 -0800 |
| commit | d4c3fdca5f2c04b2bf3dd9f7f914918b45369762 (patch) | |
| tree | aa42709025109c6e0baca21a9b2b0f38aa49f9bf | |
| parent | f9d3d703caca04e87652452501bb3d1feeee1199 (diff) | |
| download | meta-openembedded-d4c3fdca5f2c04b2bf3dd9f7f914918b45369762.tar.gz | |
nodejs: add missing native nghttp2 and libuv dependencies
In case nghttp2 and/or libuv PACKAGECONFIGs are enabled, nodejs
will build some binaries for the build system also, linking to
native binaries and using headers from the native sysroot.
However in case the dependencies are missing from the native sysroot,
then it falls back to the build system's sysroot, and use the files
that it can find there. If the build system doesn't have nghttp2/libuv
installed, then compilation fails:
libuv:
../tools/executable_wrapper.h:5:10: fatal error: uv.h: No such file or directory
ngtthp2:
<...snip...>/build/tmp/hosttools/ld: cannot find -lnghttp2: No such file or directory
To avoid falling back to the build system's sysroot, add the missing
libuv-native and nghttp2-native dependencies.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb index b3a4fb4245..afe3d2ddf1 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb | |||
| @@ -74,8 +74,8 @@ PACKAGECONFIG ??= "ares brotli icu zlib" | |||
| 74 | PACKAGECONFIG[ares] = "--shared-cares,,c-ares c-ares-native" | 74 | PACKAGECONFIG[ares] = "--shared-cares,,c-ares c-ares-native" |
| 75 | PACKAGECONFIG[brotli] = "--shared-brotli,,brotli brotli-native" | 75 | PACKAGECONFIG[brotli] = "--shared-brotli,,brotli brotli-native" |
| 76 | PACKAGECONFIG[icu] = "--with-intl=system-icu,--without-intl,icu icu-native" | 76 | PACKAGECONFIG[icu] = "--with-intl=system-icu,--without-intl,icu icu-native" |
| 77 | PACKAGECONFIG[libuv] = "--shared-libuv,,libuv" | 77 | PACKAGECONFIG[libuv] = "--shared-libuv,,libuv libuv-native" |
| 78 | PACKAGECONFIG[nghttp2] = "--shared-nghttp2,,nghttp2" | 78 | PACKAGECONFIG[nghttp2] = "--shared-nghttp2,,nghttp2 nghttp2-native" |
| 79 | PACKAGECONFIG[shared] = "--shared" | 79 | PACKAGECONFIG[shared] = "--shared" |
| 80 | PACKAGECONFIG[zlib] = "--shared-zlib,,zlib" | 80 | PACKAGECONFIG[zlib] = "--shared-zlib,,zlib" |
| 81 | 81 | ||
