Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2021 09:49:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255046] Ports should fetch distfiles in parallel
Message-ID:  <bug-255046-7788-rO4dT17yn0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255046-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255046-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255046

--- Comment #1 from Mathieu Arnold <mat@FreeBSD.org> ---
I don't think ports SHOULD fetch distribution files in parallel, not everyo=
ne
has DSL or faster internet connections, and not everyone needs to be fast.

We could add an option to do it, but you already can do fetch in parallel
yourself. `make fetch-list` returns the list of commands it will run to fet=
ch
distfiles, one per line.

So, all one needs is to add an & at the end of each lines, and run it in a
shell.

For example by doing:

make fetch-list | sed -e 's/$/ \&/' | sh

If you only want the command to return when it has finished, this can be
expanded to something like this:

{make fetch-list | sed -e 's/$/ \&/'; echo wait} | sh

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255046-7788-rO4dT17yn0>