summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2025-09-15 11:00:46 +0200
committerAnuj Mittal <anuj.mittal@intel.com>2025-09-23 09:59:39 +0800
commitdb93848ead8c679acd6f778029aa66ecfeb16071 (patch)
tree714efb48106775530807df9517a892c1b66d1a9a /meta-oe/recipes-devtools
parent3702195a7ebb1947c8dfc9bba1196d6b42ae6253 (diff)
downloadmeta-openembedded-db93848ead8c679acd6f778029aa66ecfeb16071.tar.gz
nodejs: fix build with gcc-15 on host
Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-src-fix-build-with-GCC-15.patch33
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_20.18.2.bb1
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-src-fix-build-with-GCC-15.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-src-fix-build-with-GCC-15.patch
new file mode 100644
index 0000000000..9d09f4f482
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-src-fix-build-with-GCC-15.patch
@@ -0,0 +1,33 @@
1From bade7a1866618b9e46358b839fe5fdf16b1db2be Mon Sep 17 00:00:00 2001
2From: tjuhaszrh <tjuhasz@redhat.com>
3Date: Sat, 25 Jan 2025 10:34:54 +0100
4Subject: [PATCH] src: fix build with GCC 15
5
6Added cstdint to worker_inspector as on more recent version of gcc
7the build was failing due to changes to libstdc++ and the removal
8of transitive includes.
9
10PR-URL: https://github.com/nodejs/node/pull/56740
11Fixes: https://github.com/nodejs/node/issues/56731
12Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
13Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
14Reviewed-By: Richard Lau <rlau@redhat.com>
15Reviewed-By: James M Snell <jasnell@gmail.com>
16
17Upstream-Status: Backport [https://github.com/nodejs/node/commit/bade7a1866618b9e46358b839fe5fdf16b1db2be]
18---
19 src/inspector/worker_inspector.h | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/src/inspector/worker_inspector.h b/src/inspector/worker_inspector.h
23index d3254d5aa0ebe4..24403bb1704c40 100644
24--- a/src/inspector/worker_inspector.h
25+++ b/src/inspector/worker_inspector.h
26@@ -5,6 +5,7 @@
27 #error("This header can only be used when inspector is enabled")
28 #endif
29
30+#include <cstdint>
31 #include <memory>
32 #include <string>
33 #include <unordered_map>
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_20.18.2.bb b/meta-oe/recipes-devtools/nodejs/nodejs_20.18.2.bb
index bef62f88eb..8af90e782a 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_20.18.2.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_20.18.2.bb
@@ -27,6 +27,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
27 file://libatomic.patch \ 27 file://libatomic.patch \
28 file://182d9c05e78.patch \ 28 file://182d9c05e78.patch \
29 file://zlib-fix-pointer-alignment.patch \ 29 file://zlib-fix-pointer-alignment.patch \
30 file://0001-src-fix-build-with-GCC-15.patch \
30 file://run-ptest \ 31 file://run-ptest \
31 " 32 "
32SRC_URI:append:class-target = " \ 33SRC_URI:append:class-target = " \