Date: Mon, 29 May 2006 21:15:47 +0200 From: Benjamin Lutz <benlutz@datacomm.ch> To: freebsd-ports@freebsd.org Subject: RANDOMIZE_MASTER_SITES Message-ID: <200605292115.53214.benlutz@datacomm.ch>
next in thread | raw e-mail | index | archive | help
--nextPart1685776.UKK8GviYbr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, Still busy with updating Enemy Territory :) I decided to make use of the=20 MASTER_SITE_IDSOFTWARE variable exclusively now, since I'm getting fed up=20 with mirrors dying all the time. Now, due to the two files that are needed= =20 being in two different directories, I figured I'd list the variable twice: MASTER_SITES=3D ${MASTER_SITE_IDSOFTWARE:S|$|et/linux/|} \ ${MASTER_SITE_IDSOFTWARE:S|$|et/} This works, but there's two issues with it: - When downloading the file in the second dir, it checks all servers with the first dir first. This means at least 12 attempts are needed in total. - I'm not happy with the order of the servers listed in MASTER_SITE_IDSOFTWARE. The first link is to a russian site, which is quite slow (plus the link is dead anyway, I assume the .3 is wrong). Fast servers being named first would make more sense to me. Looking for a solution I found RANDOMIZE_MASTER_SITES. This will solve both= =20 problems often: the chance that more than 4 attempts are needed to download= =20 both files is only 25%, assuming all sites work. The chance that the russia= n=20 site is hit in the first 4 attempts is 40%. It seems to me that this var is= =20 not intended to be used inside port makefiles, it's probably meant=20 for /etc/make.conf. I feel that using it for my port would be a win. So what are the authoritative comments on this? Btw, speaking of MASTER_SITE_IDSOFTWARE, http://www.idstuff.org/ lists some= =20 more that could be added to the list. Should I file a PR for them, or is=20 there a special procedure for updating master sites? Cheers Benjamin --nextPart1685776.UKK8GviYbr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEe0hpgShs4qbRdeQRAkZZAJ97xF+WfZQtmN32kBsndNoUDbEcSwCeK5ml TztWP+Lrqn0hr9L4F5OK6gg= =NMrI -----END PGP SIGNATURE----- --nextPart1685776.UKK8GviYbr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605292115.53214.benlutz>