[meta-intel] Fwd: [PATCH] mraa: use correct path for python and node modules
Rees, Kevron
kevron.m.rees at intel.com
Mon Dec 14 11:22:02 PST 2015
---------- Forwarded message ----------
From: Kevron Rees <kevron.m.rees at intel.com>
Date: Fri, Nov 13, 2015 at 3:39 PM
Subject: [PATCH] mraa: use correct path for python and node modules
To: meta-intel at yoctoproject.org
Cc: brendan.le.foll at intel.com, tripzero.kev at gmail.com, Kevron Rees
<kevron.m.rees at intel.com>
Using ${libdir} will result in an invalid install path when compiled
with multilib. This
patch fixes the install path so that python/node will be able to find
the modules when
compiled with multilib support.
Signed-off-by: Kevron Rees <kevron.m.rees at intel.com>
---
recipes-devtools/mraa/mraa.inc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/recipes-devtools/mraa/mraa.inc b/recipes-devtools/mraa/mraa.inc
index 7a3dbfd..8057b79 100644
--- a/recipes-devtools/mraa/mraa.inc
+++ b/recipes-devtools/mraa/mraa.inc
@@ -11,9 +11,13 @@ inherit distutils-base pkgconfig python-dir cmake
FILES_${PN}-doc += "${datadir}/mraa/examples/"
-FILES_${PN}-dbg += "${libdir}/node_modules/mraajs/.debug/ \
+FILES_${PN}-dbg += "${prefix}/lib/node_modules/mraajs/.debug/ \
${PYTHON_SITEPACKAGES_DIR}/.debug/"
+FILES_${PN} += "${prefix}/lib/python2.7 "
+FILES_${PN} += "${prefix}/lib/node_modules/mraa "
+
+
PACKAGECONFIG ??= "python nodejs"
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF,
swig-native python"
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF,
swig-native nodejs"
--
2.1.4
More information about the meta-intel
mailing list