1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

sanity: check for more bits of Python

(From OE-Core rev: d3dfaf8acdb072fb26346d2568c47d8742ea4fed)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2019-10-30 17:38:15 +00:00
committed by Richard Purdie
parent f954018d8d
commit 79018ee8d9
+7 -5
View File
@@ -622,13 +622,14 @@ def check_sanity_version_change(status, d):
# In other words, these tests run once in a given build directory and then # In other words, these tests run once in a given build directory and then
# never again until the sanity version or host distrubution id/version changes. # never again until the sanity version or host distrubution id/version changes.
# Check the python install is complete. glib-2.0-natives requries # Check the python install is complete. Examples that are often removed in
# xml.parsers.expat # minimal installations: glib-2.0-natives requries # xml.parsers.expat and icu
# requires distutils.sysconfig.
try: try:
import xml.parsers.expat import xml.parsers.expat
except ImportError: import distutils.sysconfig
status.addresult('Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n') except ImportError as e:
import stat status.addresult('Your Python 3 is not a full install. Please install the module %s (see the Getting Started guide for further information).\n' % e.name)
status.addresult(check_make_version(d)) status.addresult(check_make_version(d))
status.addresult(check_patch_version(d)) status.addresult(check_patch_version(d))
@@ -664,6 +665,7 @@ def check_sanity_version_change(status, d):
status.addresult('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n') status.addresult('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n')
# Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS) # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS)
import stat
tmpdir = d.getVar('TMPDIR') tmpdir = d.getVar('TMPDIR')
status.addresult(check_create_long_filename(tmpdir, "TMPDIR")) status.addresult(check_create_long_filename(tmpdir, "TMPDIR"))
tmpdirmode = os.stat(tmpdir).st_mode tmpdirmode = os.stat(tmpdir).st_mode