<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 18.11.2018 um 11:36 schrieb Jens Rehsack <<a href="mailto:sno@NetBSD.org" class="">sno@NetBSD.org</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">That's something I can try to investigate.<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">Am 14.11.2018 um 11:47 schrieb Burton, Ross <<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Getting reports that this breaks cross builds, for example python3-dbus.<br class=""><br class=""><blockquote style="margin:0 0 0 40px;border:none;padding:0px" class="">tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/python3-dbus/1.2.6-r0/recipe-sysroot-native/usr/lib/<a href="http://libpython3.7m.so/" class="">libpython3.7m.so</a>: file not recognized: File format not recognized<br class="">With 3.5.6 the python3-dbus do_configure lokks like "-L/home/dev/medusa/build/yocto/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/python3-dbus/1.2.6-r0/recipe-sysroot/usr/lib -lpython3.5m"<br class="">With the patch 3.7.1 from the ml, it looks like "L/home/dev/medusa-test/build/yocto/build/tmp-glibc/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/python3-dbus/1.2.6-r0/recipe-sysroot-native/usr/lib -lpython3.7m"</blockquote><div class=""><br class=""></div>Looks like the cross/sysconfig/etc code regressed and it's picking up the native sysroot libraries for a cross build.</div></div></blockquote></div></div></div></blockquote><div><br class=""></div>Indeed. <br class=""><div>It's because of <a href="https://github.com/python/cpython/commit/409482251b06fe75c4ee56e85ffbb4b23d934159" class="">https://github.com/python/cpython/commit/409482251b06fe75c4ee56e85ffbb4b23d934159</a> and work based on that.</div><div><br class=""></div><div>In Python 3.5 above patch was applied to target version only, python3-native used the old method for getting vars relying on Makefile and config.h parsing.</div><div>The Makefile and config.h were chosen based on STAGING_INCDIR and STAGING_LIBDIR - but the method in Python 3.7 is using "import _sysconfigdata_{abi}_{platform}_{multiarch}" which might need a dedicated wrapper to "tune" some include path variables.</div><div><br class=""></div><div>I could hack something like meta/recipes-devtools/perl/perl/perl-configpm-switch.patch - but maybe someone who is better in Python could do that smoother ;)</div><div>Please drop me a note ...</div><div><br class=""></div></div>Cheers<br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">-- </div><div class="">Jens Rehsack - <a href="mailto:rehsack@gmail.com" class="">rehsack@gmail.com</a></div></div></div>
</div>
<br class=""></body></html>