From owner-freebsd-ports@FreeBSD.ORG Mon May 29 19:16:00 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FF3216A87E for ; Mon, 29 May 2006 19:16:00 +0000 (UTC) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C84343D46 for ; Mon, 29 May 2006 19:15:59 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id 6AE7C2E07D for ; Mon, 29 May 2006 21:15:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2YNCScH0gg51 for ; Mon, 29 May 2006 21:15:58 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 25B722E07A for ; Mon, 29 May 2006 21:15:58 +0200 (CEST) From: Benjamin Lutz To: freebsd-ports@freebsd.org Date: Mon, 29 May 2006 21:15:47 +0200 User-Agent: KMail/1.8.3 X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"_+R 2@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@g?4f,\c7|Gh wb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1685776.UKK8GviYbr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605292115.53214.benlutz@datacomm.ch> Subject: RANDOMIZE_MASTER_SITES X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 19:16:18 -0000 --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--