diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-05 15:46:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-06 10:29:23 +0100 |
commit | c1436b32cf6b86434fed0c71e8352541575101b2 (patch) | |
tree | 3ed424a7e1792a28c6548df760d7ef19381946d3 /meta | |
parent | 672545b74b60a86cba6d98dd93eaf3fa22ff1872 (diff) | |
download | poky-c1436b32cf6b86434fed0c71e8352541575101b2.tar.gz |
sanity: Increase minimum git version to 1.8.3.1
The kernel tools assume git > 1.7.9.5, I'm unsure of the exact version but
the oldest in our infrastructure is 1.8.3.1. The git fetcher also currently
has nasty workarounds for git < 1.7.9.2.
Moving to 1.8.3.1 as our minimum version seems sane at this point as the oldest
we're testing/supporting.
[YOCTO #6162]
(From OE-Core rev: dbae075f62ecceadacc6d847e5697b9f3339b168)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 662f764533..d229938c93 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -531,14 +531,16 @@ def check_tar_version(sanity_data): | |||
531 | return None | 531 | return None |
532 | 532 | ||
533 | # We use git parameters and functionality only found in 1.7.8 or later | 533 | # We use git parameters and functionality only found in 1.7.8 or later |
534 | # The kernel tools assume git >= 1.8.3.1 (verified needed > 1.7.9.5) see #6162 | ||
535 | # The git fetcher also had workarounds for git < 1.7.9.2 which we've dropped | ||
534 | def check_git_version(sanity_data): | 536 | def check_git_version(sanity_data): |
535 | from distutils.version import LooseVersion | 537 | from distutils.version import LooseVersion |
536 | status, result = oe.utils.getstatusoutput("git --version 2> /dev/null") | 538 | status, result = oe.utils.getstatusoutput("git --version 2> /dev/null") |
537 | if status != 0: | 539 | if status != 0: |
538 | return "Unable to execute git --version, exit code %s\n" % status | 540 | return "Unable to execute git --version, exit code %s\n" % status |
539 | version = result.split()[2] | 541 | version = result.split()[2] |
540 | if LooseVersion(version) < LooseVersion("1.7.8"): | 542 | if LooseVersion(version) < LooseVersion("1.8.3.1"): |
541 | return "Your version of git is older than 1.7.8 and has bugs which will break builds. Please install a newer version of git.\n" | 543 | return "Your version of git is older than 1.8.3.1 and has bugs which will break builds. Please install a newer version of git.\n" |
542 | return None | 544 | return None |
543 | 545 | ||
544 | # Check the required perl modules which may not be installed by default | 546 | # Check the required perl modules which may not be installed by default |