From: Mingli Yu <[email protected]>

Fixes:
  ERROR: nodejs-22.21.1-r0 do_patch: Applying patch 
'0001-deps-disable-io_uring-support-in-libuv.patch' on target directory 
'/build/tmp/work/core2-32-poky-linux/nodejs/22.21.1/sources/node-v22.21.1'
  CmdError('quilt --quiltrc 
/build/tmp/work/core2-32-poky-linux/nodejs/22.21.1/recipe-sysroot-native/etc/quiltrc
 push', 0, "stdout: Applying patch 
0001-deps-disable-io_uring-support-in-libuv.patch
  can't find file to patch at input line 27

The sources which related to libuv as deps/uv/ are removed when depends on
libuv.

So make the 0001-deps-disable-io_uring-support-in-libuv.patch conditionally
to fix the gap.

Signed-off-by: Mingli Yu <[email protected]>
---
 meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb 
b/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb
index ccaf9f7bb2..489fcbde45 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb
@@ -27,7 +27,7 @@ SRC_URI = "https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
            file://system-c-ares.patch \
            file://0001-liftoff-Correct-function-signatures.patch \
            file://libatomic.patch \
-           file://0001-deps-disable-io_uring-support-in-libuv.patch \
+           ${@bb.utils.contains('PACKAGECONFIG', 'libuv', '', 
'file://0001-deps-disable-io_uring-support-in-libuv.patch', d)} \
            file://0001-positional-args.patch \
            file://0001-custom-env.patch \
            file://0001-build-remove-redundant-mXX-flags-for-V8.patch \
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123364): 
https://lists.openembedded.org/g/openembedded-devel/message/123364
Mute This Topic: https://lists.openembedded.org/mt/117220566/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to