summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2025-06-30 11:56:36 +0200
committerKhem Raj <raj.khem@gmail.com>2025-07-01 08:11:11 -0700
commit040ba697122ce4f4c6684abe22d4c18dda9b562f (patch)
tree03d7feb20dc429ea8257a9bf938faa290de1fee1
parente02d4b3bbd7334eb9f76a59be35d32fc7d7a39be (diff)
downloadmeta-openembedded-040ba697122ce4f4c6684abe22d4c18dda9b562f.tar.gz
Revert "nodejs: inherit qemu class conditionally"
Plenty of other recipes inherit qemu unconditionally, including some pretty foundational ones like python3, and they do not need this fix. I think something else is going on here, and that issue needs to be properly investigated. There's a request to provide steps to observe the issue, but the original patch author so far hasn't been able to reproduce it on demand: https://lists.openembedded.org/g/openembedded-devel/topic/113861973 This reverts commit b2a950a75b15c93f625bfe6514bc248c9310813f. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb14
1 files changed, 6 insertions, 8 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb b/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb
index 679acafabf..4bc829f140 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_22.16.0.bb
@@ -6,11 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b4f41dcacabc8f07b9ca7dee2f188a00"
6CVE_PRODUCT = "nodejs node.js" 6CVE_PRODUCT = "nodejs node.js"
7 7
8DEPENDS = "openssl openssl-native file-replacement-native python3-packaging-native" 8DEPENDS = "openssl openssl-native file-replacement-native python3-packaging-native"
9DEPENDS:append:class-target = " qemu-native"
9DEPENDS:append:class-native = " c-ares-native" 10DEPENDS:append:class-native = " c-ares-native"
10 11
11inherit pkgconfig python3native ptest siteinfo 12inherit pkgconfig python3native qemu ptest siteinfo
12inherit_defer ${@bb.utils.contains('HOST_AND_TARGET_SAME_WIDTH', '0', 'qemu', '', d)}
13
14 13
15COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*" 14COMPATIBLE_MACHINE:armv4 = "(!.*armv4).*"
16COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*" 15COMPATIBLE_MACHINE:armv5 = "(!.*armv5).*"
@@ -109,11 +108,11 @@ python do_create_v8_qemu_wrapper () {
109 on the host.""" 108 on the host."""
110 qemu_libdirs = [d.expand('${STAGING_DIR_HOST}${libdir}'), 109 qemu_libdirs = [d.expand('${STAGING_DIR_HOST}${libdir}'),
111 d.expand('${STAGING_DIR_HOST}${base_libdir}')] 110 d.expand('${STAGING_DIR_HOST}${base_libdir}')]
112 qemu_cmd = "" 111 qemu_cmd = qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'),
112 qemu_libdirs)
113 113
114 if d.getVar("HOST_AND_TARGET_SAME_WIDTH") == "0": 114 if d.getVar("HOST_AND_TARGET_SAME_WIDTH") == "1":
115 qemu_cmd = qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), 115 qemu_cmd = ""
116 qemu_libdirs)
117 116
118 wrapper_path = d.expand('${B}/v8-qemu-wrapper.sh') 117 wrapper_path = d.expand('${B}/v8-qemu-wrapper.sh')
119 with open(wrapper_path, 'w') as wrapper_file: 118 with open(wrapper_path, 'w') as wrapper_file:
@@ -210,7 +209,6 @@ python __anonymous () {
210 # 32 bit target and 64 bit host (x86-64 or aarch64) have different bit width 209 # 32 bit target and 64 bit host (x86-64 or aarch64) have different bit width
211 if d.getVar("SITEINFO_BITS") == "32" and "64" in d.getVar("BUILD_ARCH"): 210 if d.getVar("SITEINFO_BITS") == "32" and "64" in d.getVar("BUILD_ARCH"):
212 d.setVar("HOST_AND_TARGET_SAME_WIDTH", "0") 211 d.setVar("HOST_AND_TARGET_SAME_WIDTH", "0")
213 d.appendVar("DEPENDS:class-target", " qemu-native")
214 else: 212 else:
215 d.setVar("HOST_AND_TARGET_SAME_WIDTH", "1") 213 d.setVar("HOST_AND_TARGET_SAME_WIDTH", "1")
216} 214}