[meta-python] python3-wxgtk4: Use cross prefix with native wx-config

Message ID 20220331005935.3921128-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python] python3-wxgtk4: Use cross prefix with native wx-config | expand

Commit Message

Khem Raj March 31, 2022, 12:59 a.m. UTC
This ensures that it relocates the returns of queries w.r.t. target
sysroot and not based on native sysroot where this tool itself resides
and uses that by default. Fixes build issues seen on mips architecture

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Kai Kang <kai.kang@windriver.com>
---
 .../recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kai March 31, 2022, 1:12 a.m. UTC | #1
On 3/31/22 8:59 AM, Khem Raj wrote:
> This ensures that it relocates the returns of queries w.r.t. target
> sysroot and not based on native sysroot where this tool itself resides
> and uses that by default. Fixes build issues seen on mips architecture
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Cc: Kai Kang <kai.kang@windriver.com>
> ---
>   .../recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb     | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
> index af7b51d83b..e61b00efa4 100644
> --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
> +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
> @@ -18,7 +18,7 @@ S = "${WORKDIR}/wxPython-${PV}"
>   
>   inherit pypi setuptools3 pkgconfig
>   
> -export WX_CONFIG = "${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config"
> +export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR}'"
>   
>   RDEPENDS:${PN} = "\
>       python3-difflib \

Thanks a lot.

Patch

diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
index af7b51d83b..e61b00efa4 100644
--- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
@@ -18,7 +18,7 @@  S = "${WORKDIR}/wxPython-${PV}"
 
 inherit pypi setuptools3 pkgconfig
 
-export WX_CONFIG = "${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config"
+export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR}'"
 
 RDEPENDS:${PN} = "\
     python3-difflib \