Skip to contentSkip to conversation

mozjs: fix multilib conflict

PATCH New Changqing Li 1 participant 1 message Aug 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mozjs: fix multilib conflict

From: Changqing Li <[email protected]>

fix error:
.do_rootfs.2023872:4562: file /usr/bin/js60-config conflicts between attempted installs of mozjs-dev-60.9.0-r0.core2_64 and lib32-mozjs-dev-60.9.0-r0.core2_32 log.do_rootfs.2023872:4563: file /usr/include/mozjs-60/js-config.h conflicts between attempted installs of mozjs-dev-60.9.0-r0.core2_64 and lib32-mozjs-dev-60.9.0-r0.core2_32

---
 .../meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb    | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb +8 -0
index f13a184b6..554d8338b 100644
@@ -117,6 +117,14 @@ do_install_prepend() {
     export PYTHONPATH=`cat ${B}/PYTHONPATH`
 }
 
+inherit multilib_script multilib_header
+
+MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js60-config"
+
+do_install_append() {
+       oe_multilib_header mozjs-60/js-config.h
+}
+
 PACKAGES =+ "lib${BPN}"
 FILES_lib${BPN} += "${libdir}/lib*.so"
 FILES_${PN}-dev += "${bindir}/js60-config"
Signature · 1 line
2.17.1