build: don't mandate availability of a fetcher program
PATCH 1/1 build: don't mandate availability of a fetcher program
It is common that build hosts are isolated from outside world. They don't necessarily have wget or ftp installed.
Turn the error into warning in configure. And point FETCHER to `false' command if neither wget nor ftp is available, so any attempt to download will result in error.
--- m4/fetcher.m4 | 4 +++- stubdom/configure | 46 +++++++++++++++++++++++++++++++++++++++++++++- tools/configure | 46 +++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 93 insertions(+), 3 deletions(-)
m4/fetcher.m4 +3 -1
@@ -1,5 +1,6 @@ AC_DEFUN([AX_CHECK_FETCHER], [ AC_PATH_PROG([WGET],[wget], [no]) +AC_PATH_PROG([FALSE],[false], [/bin/false]) AS_IF([test x"$WGET" != x"no"], [ FETCHER="$WGET -c -O" ], [
@@ -7,7 +8,8 @@ AS_IF([test x"$WGET" != x"no"], [ AS_IF([test x"$FTP" != x"no"], [ FETCHER="$FTP -o" ], [ - AC_MSG_ERROR([cannot find wget or ftp]) + FETCHER="$FALSE" + AC_MSG_WARN([cannot find wget or ftp]) ]) ]) AC_SUBST(FETCHER)
stubdom/configure +45 -1
64 lines not on this page · raw message
tools/configure +45 -1
64 lines not on this page · raw message
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Wei Liu
It is common that build hosts are isolated from outside world. They don't necessarily have wget or ftp installed.
Turn the error into warning in configure. And point FETCHER to `false' command if neither wget nor ftp is available, so any attempt to download will result in error.
Signed-off-by Wei Liu <[email protected]>
Ping?
This one is rather low risk. I intend to commit it if I don't hear back by next week.
Wei.
Quoted 18 lines
--- m4/fetcher.m4 | 4 +++- stubdom/configure | 46 +++++++++++++++++++++++++++++++++++++++++++++- tools/configure | 46 +++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 93 insertions(+), 3 deletions(-)m4/fetcher.m4 +1
-0@@ -1,5 +1,6 @@ AC_DEFUN([AX_CHECK_FETCHER], [ AC_PATH_PROG([WGET],[wget], [no]) +AC_PATH_PROG([FALSE],[false], [/bin/false]) AS_IF([test x"$WGET" != x"no"], [ FETCHER="$WGET -c -O" ], [
m4/fetcher.m4 AS_IF([test x"$WGET" != x"no"], [ · line 15
Quoted 9 lines
m4/fetcher.m4 +2
-1@@ -7,7 +8,8 @@ AS_IF([test x"$WGET" != x"no"], [ AS_IF([test x"$FTP" != x"no"], [ FETCHER="$FTP -o" ], [ - AC_MSG_ERROR([cannot find wget or ftp]) + FETCHER="$FALSE" + AC_MSG_WARN([cannot find wget or ftp]) ]) ]) AC_SUBST(FETCHER)
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Andrew Cooper
Acked-byQuoted 8 lines · Wei Liu
Quoted 7 lines · Wei Liu
It is common that build hosts are isolated from outside world. They don't necessarily have wget or ftp installed.
Turn the error into warning in configure. And point FETCHER to `false' command if neither wget nor ftp is available, so any attempt to download will result in error.
Quoted 5 lines
Quoted 1 line
Signed-off-by Wei Liu <[email protected]>Ping?
This one is rather low risk. I intend to commit it if I don't hear back by next week.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel