]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: diagnose bad $buildreq formatting.
authorGary V. Vaughan <gary@gnu.org>
Fri, 23 Aug 2013 09:27:31 +0000 (16:27 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 23 Aug 2013 09:27:31 +0000 (16:27 +0700)
Particularly when porting from gnulib bootstrap to libtool
bootstrap, it's easy to forget the extra URL column used for
error reporting.
* gl/build-aux/bootstrap.in (func_check_versions): A non-URL
pattern in the 3rd column of buildreq triggers a fatal error.
* bootstrap: Regenerate.
Reported by Mike Miller.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/bootstrap.in

index df3ca3ae1318218d422da8d0136098c674187924..5b382d85dc7b8e0bdc9a8001f52c4b7ca9efb702 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -4492,6 +4492,17 @@ func_check_versions ()
       _G_reqver=$1; shift
       _G_url=$1; shift
 
+      # Diagnose bad buildreq formatting.
+      case $_G_url in
+      [a-z]*://*) ;; # looks like a url
+      *) func_fatal_error "\
+'$_G_url' from the buildreq table in
+'bootstrap.conf' does not look like the URL for downloading
+$_G_app. Please ensure that buildreq is a strict newline
+delimited list of triples; 'program min-version url'."
+        ;;
+      esac
+
       # Honor $APP variables ($TAR, $AUTOCONF, etc.)
       _G_appvar=`echo $_G_app |tr '[a-z]' '[A-Z]'`
       test TAR = "$_G_appvar" && _G_appvar=AMTAR
index 74e65175a821649308d6f31c7901dcc9c807e08f..34e4155e6fbba6d84b64ce86c2c009d29d807442 100755 (executable)
@@ -2302,6 +2302,17 @@ func_check_versions ()
       _G_reqver=$1; shift
       _G_url=$1; shift
 
+      # Diagnose bad buildreq formatting.
+      case $_G_url in
+      [a-z]*://*) ;; # looks like a url
+      *) func_fatal_error "\
+'$_G_url' from the buildreq table in
+'bootstrap.conf' does not look like the URL for downloading
+$_G_app. Please ensure that buildreq is a strict newline
+delimited list of triples; 'program min-version url'."
+        ;;
+      esac
+
       # Honor $APP variables ($TAR, $AUTOCONF, etc.)
       _G_appvar=`echo $_G_app |tr '[a-z]' '[A-Z]'`
       test TAR = "$_G_appvar" && _G_appvar=AMTAR