commit:     537cf3c7be556926c8d69eaf738d3bbf991be837
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  4 10:36:13 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan  4 10:36:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=537cf3c7

scripts/bootstrap-prefix: add fallback for cmake bootstrap

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 0dda8055df..68a8a5c4fa 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1108,7 +1108,7 @@ bootstrap_python() {
        einfo "${A%.tar.*} bootstrapped"
 }
 
-bootstrap_cmake() {
+bootstrap_cmake_core() {
        PV=${1:-3.16.5}
        A=cmake-${PV}.tar.gz
 
@@ -1155,6 +1155,10 @@ bootstrap_cmake() {
        einfo "${A%.tar.*} bootstrapped"
 }
 
+bootstrap_cmake() {
+       bootrstrap_cmake_core 3.16.5 || bootrstrap_cmake_core 3.0.2
+}
+
 bootstrap_zlib_core() {
        # use 1.2.8 by default, current bootstrap guides
        PV="${1:-1.2.8}"

Reply via email to