poky/bitbake/lib/bb/fetch2
Matthias Schiffer 482da97cfc bitbake: fetch2: runfetchcmd(): unset _PYTHON_SYSCONFIGDATA_NAME
Since warrior, python3native.bbclass sets _PYTHON_SYSCONFIGDATA_NAME;
unfortunately, this also affects Python scripts run as fetch commands like
git-make-shallow, breaking it with a message like

    Failed to import the site module
    Traceback (most recent call last):
      File "/usr/lib/python3.6/site.py", line 570, in <module>
        main()
      File "/usr/lib/python3.6/site.py", line 556, in main
        known_paths = addusersitepackages(known_paths)
      File "/usr/lib/python3.6/site.py", line 288, in addusersitepackages
        user_site = getusersitepackages()
      File "/usr/lib/python3.6/site.py", line 264, in getusersitepackages
        user_base = getuserbase() # this will also set USER_BASE
      File "/usr/lib/python3.6/site.py", line 254, in getuserbase
        USER_BASE = get_config_var('userbase')
      File "/usr/lib/python3.6/sysconfig.py", line 607, in get_config_var
        return get_config_vars().get(name)
      File "/usr/lib/python3.6/sysconfig.py", line 550, in get_config_vars
        _init_posix(_CONFIG_VARS)
      File "/usr/lib/python3.6/sysconfig.py", line 421, in _init_posix
        _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
    ModuleNotFoundError: No module named '_sysconfigdata'

on an Ubuntu 18.04 system (and likely others) when building with
BB_GIT_SHALLOW and BB_GENERATE_SHALLOW_TARBALLS.

Unset _PYTHON_SYSCONFIGDATA_NAME in runfetchcmd() to work around this.

(Bitbake rev: d94ccd506d04aff182ab48f501f6f366d5dd14f5)

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-30 12:37:03 +01:00
..
__init__.py bitbake: fetch2: runfetchcmd(): unset _PYTHON_SYSCONFIGDATA_NAME 2019-05-30 12:37:03 +01:00
bzr.py bitbake: bitbake: Drop duplicate license boilerplace text 2019-05-04 10:44:10 +01:00
clearcase.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
cvs.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
git.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
gitannex.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
gitsm.py bitbake: gitsm: Fix a bug where the wrong path was used for the submodule init 2019-05-16 09:17:15 +01:00
hg.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
local.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
npm.py bitbake: bitbake: fetch2/npm: fix npw view parsing 2019-05-21 12:56:34 +01:00
osc.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
perforce.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
repo.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
s3.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
sftp.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
ssh.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
svn.py bitbake: svn.py: Stop SVN from directly pulling from an external layer w/o fetcher 2019-05-21 12:56:34 +01:00
wget.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00