Patchwork [meta-networking] lowpan-tools: input python library and executable file dir

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Oct. 25, 2013, 6:04 a.m.
Message ID <1382681074-9340-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/60493/
State Superseded, archived
Headers show

Comments

rongqing.li@windriver.com - Oct. 25, 2013, 6:04 a.m.
From: Roy Li <rongqing.li@windriver.com>

input python library and executable file dir, or else it will use the default
value /usr/lib/python*, which is wrong when enable multilibs

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Khem Raj - Oct. 25, 2013, 12:24 p.m.
On Thu, Oct 24, 2013 at 11:04 PM,  <rongqing.li@windriver.com> wrote:
> +EXTRA_OECONF += "am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR} \
> +               am_cv_python_pyexecdir=${PYTHON_SITEPACKAGES_DIR}"
>

use CACHED_CONFIGUREVARS variable to pass the am_cv_* autotools variables.

Patch

diff --git a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
index cf78b45..6e603ac 100644
--- a/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
+++ b/meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb
@@ -13,7 +13,10 @@  SRCREV = "a1d9615adde6d1a568813c24a128273ed755af04"
 
 S = "${WORKDIR}/git"
 
-inherit autotools
+inherit autotools python-dir
+
+EXTRA_OECONF += "am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR} \
+               am_cv_python_pyexecdir=${PYTHON_SITEPACKAGES_DIR}"
 
 do_install_append() {
 	rmdir ${D}${localstatedir}/run