From patchwork Wed Jan 14 09:29:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yu, Mingli" X-Patchwork-Id: 78670 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 298D0D31A36 for ; Wed, 14 Jan 2026 09:29:23 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.6570.1768382962931940016 for ; Wed, 14 Jan 2026 01:29:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=AUwZTfZy; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=547401f5f5=mingli.yu@windriver.com) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60E6OAI21532683 for ; Wed, 14 Jan 2026 01:29:22 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PPS06212021; bh=s+t+mqw4Z5mg1xdtMmQm H3u80yUkGwpAnLvQSwPlOqc=; b=AUwZTfZyjaAXZtuzmDzJMFDwv+ksrPFOzAPK yq8TANp9KbidVAkWyvrjwNCbPe6CaZ08DLpbSNOWsF2B4uSmDxEdG8KAN6hK4h7O ciaxD9F2u5Yuv3DXFfKPHHlMIt1NdgV3ndccermzoFP4uaAuCW8THOV+ijldr/es vnCHV3HWEKyikPvruDzZoQfBOPmO1Wf395P1eau37wPrbyGhzJUIwcW2OkIh41jq HA6jTVyGVYFmsp+bvpFcpsOBgEb0Yp80jkGKdfOYdvn2jlHKFCKmVPx8F4DdujT+ rcw9AXsOTLFXiXHNK1j6errY4Mr9TUxOe4B6p7N6JPx8KonnUQ== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4bkjx0v4g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 14 Jan 2026 01:29:22 -0800 (PST) Received: from ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Wed, 14 Jan 2026 01:29:22 -0800 Received: from pek-lpg-core4.wrs.com (10.11.232.110) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Wed, 14 Jan 2026 01:29:21 -0800 From: To: Subject: [meta-oe][PATCH v2] nodejs: Make prune_sources execute at do_patch phase Date: Wed, 14 Jan 2026 17:29:20 +0800 Message-ID: <20260114092920.667147-1-mingli.yu@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: 5Y6qvt2gHRtl6OC06ERN5WcD99v_aiU0 X-Authority-Analysis: v=2.4 cv=e5ULiKp/ c=1 sm=1 tr=0 ts=696761f2 cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=vUbySO9Y5rIA:10 a=VkNPw1HP01LnGYTKEx00:22 a=t7CeM3EgAAAA:8 a=3k9ziyYjAcfRlEKEkpUA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTE0MDA3NSBTYWx0ZWRfXy2bY/K+RPjJ3 ns/agFbbApTu4tM0VKDlDOxavb4j8hxYGE5w4b9oNkOU19nWU+PxuxqB+DW+6SwAr1aFuInKkK+ iRwfqpB9DjpGivo4DLmtDofFIILNY+nhLORnccb2Sj6XvSJO2lMCqf5kgT3rCah8AR/5bbem7+X tL4GhSMTflstJgpbI9x3g45iKL/JRdQSP+ozdohzGHepH52IF/YdHLPDkxmSDg5JFWdRjePzWDB I4ZaHGkZuDy1L5ZJZRwKNt3vnfK9qJ9A8PyLOR8jzf75o6kRo87thGKnzHFWnGp+Lj6fugrGXbo /awDIayrCNnOS6/5aww/f95+G2euNYmhxEvrCpZqIGRt1efW0y8OxlriQVR/lpNmhDfvQILecZe dE7c+dZa+Z1caVXaoGs3epRMCKkNdzXVtJnYpCgvyWWTdGe+HugJrn0E8EG8O8dNfwNUZk6HpkV +HCYFapxc8Q8X/bpWdQ== X-Proofpoint-ORIG-GUID: 5Y6qvt2gHRtl6OC06ERN5WcD99v_aiU0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-14_03,2026-01-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 clxscore=1015 bulkscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601140075 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Jan 2026 09:29:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/123452 From: Mingli Yu 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 in prune_sources when depends on libuv. So postpone prune_sources execute at do_patch phase to fix the gap. Signed-off-by: Mingli Yu --- meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb | 4 ++-- 1 file 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 443cdc430d..ea09a55cb0 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.22.0.bb @@ -69,7 +69,7 @@ ARCHFLAGS:append:mips = " --v8-lite-mode" ARCHFLAGS:append:mipsel = " --v8-lite-mode" ARCHFLAGS ?= "" -PACKAGECONFIG ??= "ares brotli icu zlib" +PACKAGECONFIG ??= "ares brotli icu zlib libuv" PACKAGECONFIG[ares] = "--shared-cares,,c-ares c-ares-native" PACKAGECONFIG[brotli] = "--shared-brotli,,brotli brotli-native" @@ -96,7 +96,7 @@ python prune_sources() { if 'zlib' in d.getVar('PACKAGECONFIG'): shutil.rmtree(d.getVar('S') + '/deps/zlib') } -do_unpack[postfuncs] += "prune_sources" +do_patch[postfuncs] += "prune_sources" # V8's JIT infrastructure requires binaries such as mksnapshot and # mkpeephole to be run in the host during the build. However, these