PHP Download site
Matthew Seaman
matthew at FreeBSD.org
Tue May 3 14:43:02 UTC 2016
On 03/05/2016 15:14, Jim Ohlstein wrote:
> I'm upgrading lang/php56 this morning using poudriere and we're still in
> the "fetch" phase after almost ten minutes. Looking at the log, it is
> fetching from http://de.php.net/. I've noticed this same slowness before
> as well with php70 being downloaded from Germany.
>
> Is there a reason for this default, especially where it is so slow?
This used to be a much more common occurrence before the widespread
prevalence of CDNs with points of presence all round the world. Seems
PHP has not (yet) jumped on that bandwagon.
There's a number of things you can add to /etc/make.conf to help speed
things up. Try:
MASTER_SORT= .in
which means 'prefer sites which are in .in' (yes, I know you aren't
physically in India: just choose a country close to where you actually
are...)
Or this:
RANDOMIZE_MASTER_SITES= yes
which means shuffle the list of download sites randomly
Or this:
MASTER_SITE_FREEBSD= yes
which means initially, ignore the official download sites, and always go
try the FreeBSD distfiles mirror at first.
Those may be more or less effective at speeding up your download
depending on exactly on where you're downloading from and where your
downloading to. You'll have to experiment.
If you only want to apply this sort of thing to a specific port, use the
form:
.if ${.CURDIR:M*portname}
RANDOMIZE_MASTER_SITES= yes
.endif
Cheers,
Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160503/03ec669f/attachment.sig>
More information about the freebsd-ports
mailing list