Skip to contentSkip to conversation

nodejs: install gen-regexp-special-case only when icu is enabled

PATCH New Khem Raj 1 participant 1 message Mar 12, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 nodejs: install gen-regexp-special-case only when icu is enabled

From: Jaga <[email protected]>

Fixes install errors when icu packageconfig is disabled

---
 meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/nodejs/nodejs_12.14.1.bb +3 -1
index 1ea438c5b0..a482c6b4ca 100644
@@ -138,7 +138,9 @@ do_install_append_class-native() {
     install -d ${D}${bindir}
     install -m 0755 ${S}/out/Release/torque ${D}${bindir}/torque
     install -m 0755 ${S}/out/Release/bytecode_builtins_list_generator ${D}${bindir}/bytecode_builtins_list_generator
-    install -m 0755 ${S}/out/Release/gen-regexp-special-case ${D}${bindir}/gen-regexp-special-case
+    if ${@bb.utils.contains('PACKAGECONFIG','icu','true','false',d)}; then
+        install -m 0755 ${S}/out/Release/gen-regexp-special-case ${D}${bindir}/gen-regexp-special-case
+    fi
     install -m 0755 ${S}/out/Release/mkcodecache ${D}${bindir}/mkcodecache
     install -m 0755 ${S}/out/Release/node_mksnapshot ${D}${bindir}/node_mksnapshot
 }
Signature · 1 line
2.25.1