summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchana Polampalli <archana.polampalli@windriver.com>2022-12-20 05:43:23 +0000
committerArmin Kuster <akuster808@gmail.com>2022-12-20 10:00:29 -0500
commit1c7063e57d576b9dcb266837c5d7204ce28968f2 (patch)
tree9e47e61538d03967c51d97a16929953e51a9f577
parent98097845bdc4d1797346cb1245da6abe59bfef2f (diff)
downloadmeta-openembedded-1c7063e57d576b9dcb266837c5d7204ce28968f2.tar.gz
Nodejs: Fixed python3 DeprecationWarning
Distutils package and pipes are deprecated and slated for removal in Python 3.13 for Nodejs 16.18 Replaced distutils with setuptools Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-Nodejs-Fixed-pipes-DeprecationWarning.patch35
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb3
2 files changed, 37 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Nodejs-Fixed-pipes-DeprecationWarning.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Nodejs-Fixed-pipes-DeprecationWarning.patch
new file mode 100644
index 0000000000..1f54d444d7
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Nodejs-Fixed-pipes-DeprecationWarning.patch
@@ -0,0 +1,35 @@
1From 70a008c59992b0ac6a868530bc3e249b7777ab95 Mon Sep 17 00:00:00 2001
2From: Archana Polampalli <archana.polampalli@windriver.com>
3Date: Fri, 16 Dec 2022 05:19:06 +0000
4Subject: [PATCH] Nodejs: Fixed pipes DeprecationWarning
5
6DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
7
8Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
9---
10 configure.py | 3 +--
11 1 file changed, 1 insertion(+), 2 deletions(-)
12
13diff --git a/configure.py b/configure.py
14index d3192ca04c..8d279220fd 100755
15--- a/configure.py
16+++ b/configure.py
17@@ -5,7 +5,6 @@ import sys
18 import errno
19 import argparse
20 import os
21-import pipes
22 import pprint
23 import re
24 import shlex
25@@ -2041,7 +2040,7 @@ write('config.gypi', do_not_edit +
26 pprint.pformat(output, indent=2, width=1024) + '\n')
27
28 write('config.status', '#!/bin/sh\nset -x\nexec ./configure ' +
29- ' '.join([pipes.quote(arg) for arg in original_argv]) + '\n')
30+ ' '.join([shlex.quote(arg) for arg in original_argv]) + '\n')
31 os.chmod('config.status', 0o775)
32
33
34--
352.34.1
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb
index a67948320d..e755d0c9aa 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_16.18.1.bb
@@ -7,7 +7,7 @@ DEPENDS = "openssl"
7DEPENDS:append:class-target = " qemu-native" 7DEPENDS:append:class-target = " qemu-native"
8DEPENDS:append:class-native = " c-ares-native" 8DEPENDS:append:class-native = " c-ares-native"
9 9
10inherit pkgconfig python3native qemu 10inherit pkgconfig python3native qemu setuptools3
11 11
12COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*" 12COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*"
13COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*" 13COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*"
@@ -25,6 +25,7 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \
25 file://system-c-ares.patch \ 25 file://system-c-ares.patch \
26 file://0001-liftoff-Correct-function-signatures.patch \ 26 file://0001-liftoff-Correct-function-signatures.patch \
27 file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \ 27 file://0001-mips-Use-32bit-cast-for-operand-on-mips32.patch \
28 file://0001-Nodejs-Fixed-pipes-DeprecationWarning.patch \
28 " 29 "
29SRC_URI:append:class-target = " \ 30SRC_URI:append:class-target = " \
30 file://0001-Using-native-binaries.patch \ 31 file://0001-Using-native-binaries.patch \