Skip to contentSkip to conversation

python3-wxgtk4: Use cross prefix with native wx-config

PATCH In review Khem Raj 2 participants 2 messages Mar 31, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-wxgtk4: Use cross prefix with native wx-config

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

---
 .../recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb +1 -1
index af7b51d83b..e61b00efa4 100644
@@ -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 \
Signature · 1 line
2.35.1
#1 lore raw
Quoted 15 lines · Khem Raj

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

---
  .../recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb     | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb +0 -0
index af7b51d83b..e61b00efa4 100644

meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb S = "${WORKDIR}/wxPython-${PV}" · line 24

Quoted 8 lines
meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb +1 -1
@@ -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.

Signature · 2 lines
Kai Kang
Wind River Linux