All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Re: [PATCH] build: don't mandate availability of a fetcher program
Date: Thu, 4 Apr 2019 14:13:38 +0100	[thread overview]
Message-ID: <20190404131338.GN14641@zion.uk.xensource.com> (raw)
In-Reply-To: <20190314140847.19328-1-wei.liu2@citrix.com>

On Thu, Mar 14, 2019 at 02:08:47PM +0000, Wei Liu wrote:
> 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 <wei.liu2@citrix.com>

Ping?

This one is rather low risk. I intend to commit it if I don't hear back
by next week.

Wei.

> ---
>  m4/fetcher.m4     |  4 +++-
>  stubdom/configure | 46 +++++++++++++++++++++++++++++++++++++++++++++-
>  tools/configure   | 46 +++++++++++++++++++++++++++++++++++++++++++++-
>  3 files changed, 93 insertions(+), 3 deletions(-)
> 
> diff --git a/m4/fetcher.m4 b/m4/fetcher.m4
> index 86f33b3937..c1a72c189c 100644
> --- a/m4/fetcher.m4
> +++ b/m4/fetcher.m4
> @@ -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)

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-04-04 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14 14:08 [PATCH] build: don't mandate availability of a fetcher program Wei Liu
2019-04-04 13:13 ` Wei Liu [this message]
2019-04-04 13:15   ` Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190404131338.GN14641@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.