diff options
author | Ross Burton <ross.burton@intel.com> | 2019-10-30 17:38:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-04 13:39:05 +0000 |
commit | 79018ee8d93cbc11d9206caa7138773b83124cf6 (patch) | |
tree | 9f3256e925ce9365f039e967beb6c4e4e4a6dab1 /meta/classes | |
parent | f954018d8d18ad895abf13cb00389959141f2665 (diff) | |
download | poky-79018ee8d93cbc11d9206caa7138773b83124cf6.tar.gz |
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>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 705062bc86..a14bf53883 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -622,13 +622,14 @@ def check_sanity_version_change(status, d): | |||
622 | # In other words, these tests run once in a given build directory and then | 622 | # In other words, these tests run once in a given build directory and then |
623 | # never again until the sanity version or host distrubution id/version changes. | 623 | # never again until the sanity version or host distrubution id/version changes. |
624 | 624 | ||
625 | # Check the python install is complete. glib-2.0-natives requries | 625 | # Check the python install is complete. Examples that are often removed in |
626 | # xml.parsers.expat | 626 | # minimal installations: glib-2.0-natives requries # xml.parsers.expat and icu |
627 | # requires distutils.sysconfig. | ||
627 | try: | 628 | try: |
628 | import xml.parsers.expat | 629 | import xml.parsers.expat |
629 | except ImportError: | 630 | import distutils.sysconfig |
630 | status.addresult('Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n') | 631 | except ImportError as e: |
631 | import stat | 632 | 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) |
632 | 633 | ||
633 | status.addresult(check_make_version(d)) | 634 | status.addresult(check_make_version(d)) |
634 | status.addresult(check_patch_version(d)) | 635 | status.addresult(check_patch_version(d)) |
@@ -664,6 +665,7 @@ def check_sanity_version_change(status, d): | |||
664 | status.addresult('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n') | 665 | status.addresult('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n') |
665 | 666 | ||
666 | # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS) | 667 | # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS) |
668 | import stat | ||
667 | tmpdir = d.getVar('TMPDIR') | 669 | tmpdir = d.getVar('TMPDIR') |
668 | status.addresult(check_create_long_filename(tmpdir, "TMPDIR")) | 670 | status.addresult(check_create_long_filename(tmpdir, "TMPDIR")) |
669 | tmpdirmode = os.stat(tmpdir).st_mode | 671 | tmpdirmode = os.stat(tmpdir).st_mode |