Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2002 16:24:24 -0500 (EST)
From:      Trevor Johnson <trevor@jpj.net>
To:        FUJISHIMA Satsuki <sf@freebsd.org>
Cc:        ports@freebsd.org
Subject:   patch to sort master sites for port ftp/wget
Message-ID:  <20020308161856.X11684-100000@blues.jpj.net>

next in thread | raw e-mail | index | archive | help
Here is a patch to speed up "make fetch":

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/ftp/wget/Makefile,v
retrieving revision 1.49
diff -u -r1.49 Makefile
--- Makefile	5 Jan 2002 10:41:15 -0000	1.49
+++ Makefile	8 Mar 2002 20:46:14 -0000
@@ -13,10 +13,10 @@
 		ftp://ftp.informatik.hu-berlin.de/gnu/wget/ \
 		ftp://ftp.uni-mainz.de/pub/gnu/wget/ \
 		ftp://ftp.max.irk.ru/unix/net/www/wget/ \
-		http://www3.big.or.jp/~sian/linux/products/
+		http://www3.big.or.jp/~sian/linux/products/:ja_po
 MASTER_SITE_SUBDIR=	wget
 DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
-		${EXTRA_PO}
+		${EXTRA_PO}:ja_po
 EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

 MAINTAINER=	sf@FreeBSD.org

Without the patch, "make fetch" takes a long time because it looks for
wget-1.8.1.ja.po.gz on all the GNU sites:

# mkdir distfiles;DISTDIR=`pwd`/distfiles time make fetch
>> wget-1.8.1.tar.gz doesn't seem to exist in
/usr/ports/ftp/wget/distfiles/.
>> Attempting to fetch from ftp://ftp.gnu.org/gnu/wget/.
Receiving wget-1.8.1.tar.gz (1097780 bytes): 100%
1097780 bytes transferred in 2.0 seconds (524.49 kBps)
>> wget-1.8.1.ja.po.gz doesn't seem to exist in
/usr/ports/ftp/wget/distfiles/.
>> Attempting to fetch from ftp://ftp.gnu.org/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://gatekeeper.dec.com/pub/GNU/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.uu.net/archive/systems/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.de.uu.net/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from
ftp://ftp.sourceforge.net/pub/mirrors/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.funet.fi/pub/gnu/prep/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.leo.org/pub/comp/os/unix/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.digex.net/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.wustl.edu/systems/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.kddlabs.co.jp/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.chg.ru/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: Operation timed out
>> Attempting to fetch from ftp://ftp.dnsbalance.ring.gr.jp/pub/GNU/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from
http://www.dnsbalance.ring.gr.jp/archives/GNU/wget/.
fetch: wget-1.8.1.ja.po.gz: Not Found
>> Attempting to fetch from ftp://ftp.shellhung.org/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from
ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from
ftp://sunsite.org.uk/Mirrors/ftp.gnu.org/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.informatik.hu-berlin.de/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.uni-mainz.de/pub/gnu/wget/.
fetch: wget-1.8.1.ja.po.gz: File unavailable (e.g., file not found, no
access)
>> Attempting to fetch from ftp://ftp.max.irk.ru/unix/net/www/wget/.
fetch: wget-1.8.1.ja.po.gz: Not logged in
>> Attempting to fetch from http://www3.big.or.jp/~sian/linux/products/.
Receiving wget-1.8.1.ja.po.gz (11361 bytes): 100%
11361 bytes transferred in 0.5 seconds (22.87 kBps)
      138.19 real         0.56 user         0.56 sys

With the patch, wget-1.8.1.ja.po.gz is retrieved immediately from
the site which hosts it:

# mkdir distfiles;DISTDIR=`pwd`/distfiles time make fetch
>> wget-1.8.1.tar.gz doesn't seem to exist in
/usr/ports/ftp/wget/distfiles/.
>> Attempting to fetch from ftp://ftp.gnu.org/gnu/wget/.
Receiving wget-1.8.1.tar.gz (1097780 bytes): 100%
1097780 bytes transferred in 3.2 seconds (331.09 kBps)
>> wget-1.8.1.ja.po.gz doesn't seem to exist in
/usr/ports/ftp/wget/distfiles/.
>> Attempting to fetch from http://www3.big.or.jp/~sian/linux/products/.
Receiving wget-1.8.1.ja.po.gz (11361 bytes): 100%
11361 bytes transferred in 0.5 seconds (22.96 kBps)
        6.92 real         0.42 user         0.20 sys

Please apply this patch, or permit me to apply it.
-- 
Trevor Johnson


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020308161856.X11684-100000>