chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] bootstrap.sh: Use ftp instead of wget on OpenBSD


From: Mario Domenech Goulart
Subject: Re: [PATCH] bootstrap.sh: Use ftp instead of wget on OpenBSD
Date: Thu, 19 Dec 2024 20:03:30 +0100

Hi Peter and all,

On Thu, 19 Dec 2024 09:22:11 +0100 Peter Bex <peter@more-magic.net> wrote:

> NetBSD has ftp as well, unfortunately no -C flag.  But that's not
> super important I think.
>
> So, I would suggest using ftp on both NetBSD and OpenBSD without -C,
> and possibly MirBSD and DragonFly BSD as well (though I don't know
> if we support these otherwise).
>
> Actually, it's a bit annoying: it looks like FreeBSD's ftp(1) is the
> only one which DOESN'T support https (it does support http, however).
> Otherwise we could add a catch-all for all the BSDs, which would be
> much simpler.  Perhaps someone with access to a FreeBSD box can check
> if it really doesn't support https or if it simply isn't documented.
>
> Also, maybe add a comment stating that the ftp program supports
> HTTP(S) because it is definitely counter-intuitive for someone
> coming from another OS to use ftp for doing HTTP transfers.

Since the situation regarding fetchers in BSDs seems to be quite
fragmented, and will probably be difficult for us to test all cases, how
about leaving up to users to specify which fetch command to use (through
an environment variable, say, FETCHCMD), falling back to "wget -c" in
case FETCHCMD is not set?

This approach should also provide more flexiblity to other systems
(including Linux) where wget might not be available.

All the best.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]