On Fri, 2020-07-10 at 22:41 +0200, Alexander Kanavin wrote: > I am able to do 'devtool modify gpgme' without any errors. In what > setting does it fail for you?
Forgot to mention: it is reproducible with host Python 3.6+. The Python should have the patch that handles _PYTHON_SYSCONFIGDATA_NAME: https://github.com/python/cpython/commit/92dec548ff14 I'm currently reproducing this on the latest Poky on Ubuntu 20.04 (has Python 3.8.2). This is also reproducible on previous branches, like Zeus. > The purpose of _sysconfigdata is to substitute configuration values > that are specific for target python when running native python in > cross builds with requests from target component build systems to > supply those values. For that to work, the recipe also needs to have > target python3 in its DEPENDS. It What configuration does it aim to replace? When I compare default _sysconfigdata__linux_x86_64-linux-gnu.py with _sysconfigdata.py, then I see this: % diff -u ./usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py ./usr/lib/python-sysconfigdata/_sysconfigdata.py --- ./usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py 2020-07-10 01:33:47.193574344 -0700 +++ ./usr/lib/python-sysconfigdata/_sysconfigdata.py 2020-07-10 01:33:47.197574384 -0700 @@ -577,12 +577,12 @@ 'HAVE_ZLIB_COPY': 1, 'HAVE__GETPTY': 0, 'HOST_GNU_TYPE': 'x86_64-pc-linux-gnu', - 'INCLDIRSTOMAKE': 'FIXMESTAGINGDIRHOST/usr/include ' - 'FIXMESTAGINGDIRHOST/usr/include ' + 'INCLDIRSTOMAKE': 'FIXMESTAGINGDIRHOSTFIXMESTAGINGDIRHOST/usr/include ' + 'FIXMESTAGINGDIRHOSTFIXMESTAGINGDIRHOST/usr/include ' 'FIXMESTAGINGDIRHOST/usr/include/python3.8 ' 'FIXMESTAGINGDIRHOST/usr/include/python3.8', 'INCLUDEDIR': 'FIXMESTAGINGDIRHOST/usr/include', - 'INCLUDEPY': 'FIXMESTAGINGDIRHOST/usr/include/python3.8', + 'INCLUDEPY': 'FIXMESTAGINGDIRHOSTFIXMESTAGINGDIRHOST/usr/include/python3.8', 'INSTALL': 'FIXME_HOSTTOOLS_DIR/install -c', 'INSTALL_DATA': 'FIXME_HOSTTOOLS_DIR/install -c -m ' '644', The only replaced parameters seems to be replaced with wrong values. Also FIXMESTAGINGDIRHOST will point to recipe-sysroot-native which is not target-specific. What am I missing? > I feel the patch is fixing the symptom rather than the issue somehow Agree, it is a workaround, hence I've posted it as RFC. Note, there is similar workaround already merged for PR server 4b26eaf7152f ("prservice.py: fix do_package with newer Python in Ubuntu 20.04").
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#140546): https://lists.openembedded.org/g/openembedded-core/message/140546 Mute This Topic: https://lists.openembedded.org/mt/75425436/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-