Patchwork [meta-networking,v2] lowpan-tools: configure python files installation path

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Oct. 28, 2013, 2:20 a.m.
Message ID <1382926827-13170-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/60537/
State Accepted, archived
Commit f855787fb3e7fac8bbd2f3d23d1ea6884e776c66
Headers show

Comments

rongqing.li@windriver.com - Oct. 28, 2013, 2:20 a.m.
From: Roy Li <rongqing.li@windriver.com>

configure python files installation path or else it will use the
default value /usr/lib/python*, which is wrong on 64bit and multilibs
enabled system

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Joe MacDonald - Oct. 29, 2013, 2:37 p.m.
Merged, thanks.
-J.

[[oe] [PATCH meta-networking v2] lowpan-tools: configure python files installation path] On 13.10.28 (Mon 10:20) rongqing.li@windriver.com wrote:

> From: Roy Li <rongqing.li@windriver.com>
> 
> configure python files installation path or else it will use the
> default value /usr/lib/python*, which is wrong on 64bit and multilibs
> enabled system
> 
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
>  meta-networking/recipes-support/lowpan-tools/lowpan-tools_git.bb |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> 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..152ee49 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,9 @@ SRCREV = "a1d9615adde6d1a568813c24a128273ed755af04"
>  
>  S = "${WORKDIR}/git"
>  
> -inherit autotools
> +inherit autotools python-dir
> +
> +CACHED_CONFIGUREVARS += "am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR}/lowpan-tools"
>  
>  do_install_append() {
>  	rmdir ${D}${localstatedir}/run

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..152ee49 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,9 @@  SRCREV = "a1d9615adde6d1a568813c24a128273ed755af04"
 
 S = "${WORKDIR}/git"
 
-inherit autotools
+inherit autotools python-dir
+
+CACHED_CONFIGUREVARS += "am_cv_python_pythondir=${PYTHON_SITEPACKAGES_DIR}/lowpan-tools"
 
 do_install_append() {
 	rmdir ${D}${localstatedir}/run