Date: Sun, 26 Oct 1997 01:00:14 -0400 From: Bill Lloyd <wlloyd@mpd.ca> To: ports@freebsd.org Subject: Port problem. Message-ID: <3452CE5E.43A@mpd.ca>
next in thread | raw e-mail | index | archive | help
I've noticed that sometimes when using a http proxy (apache 1.2.4 specifically) when making ports, I sometimes find that I have to manually download the file. I've been looking into it and have found the following. First I try this, no problems, the file downloads properly. galt# pwd /usr/ports/devel/gmake galt# make >> make-3.76.1.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from ftp://prep.ai.mit.edu/pub/gnu//. Receiving make-3.76.1.tar.gz (631458 bytes): 100% Then I try galt# setenv HTTP_PROXY proxy:80 galt# make >> make-3.76.1.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from ftp://prep.ai.mit.edu/pub/gnu//. fetch: make-3.76.1.tar.gz: proxy: HTTP server returned error code 502 >> Attempting to fetch from ftp://wuarchive.wustl.edu/systems/gnu//. fetch: make-3.76.1.tar.gz: proxy: HTTP server returned error code 502 >> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//. fetch: make-3.76.1.tar.gz: proxy: HTTP server returned error code 502 >> Couldn't fetch it - please try to retrieve this >> port manually into /usr/ports/distfiles/ and try again. If I check out my proxy log I find.. galt.mpd.ca - - [26/Oct/1997:00:43:46 -0400] "GET ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//make-3.76.1.tar.gz HTTP/1.1" 502 170 "-" "fetch/1.0 FreeBSD/2.2-STABLE (i386)" The double // seems to be ruining things for the proxy server. Actually if I cut and paste it into Netscape it doesn't work with the double // either. However if I try this on another port I find galt# pwd /usr/ports/devel/pccts galt# make >> pccts.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from ftp://ftp.parr-research.com/pub/pccts/1.33/. Receiving pccts.tar.gz (248056 bytes): 11%^C fetch: parsing URI: interrupted by signal: int galt# setenv HTTP_PROXY proxy:80 galt# make >> pccts.tar.gz doesn't seem to exist on this system. >> Attempting to fetch from ftp://ftp.parr-research.com/pub/pccts/1.33/. Receiving pccts.tar.gz: 84 Kbytes^C fetch: retrieving file from HTTP/1.x server: interrupted by signal: int It works in both cases... The only difference between the two of them that I find is that the MASTER_SITE definitions in gmake are in /usr/share/mk/bsd.port.mk instead of the the local Makefile. Otherwise they are both of the same format and contain a trailing /. If I chop off the last / everything works properly. MASTER_SITE_GNU+= \ ftp://prep.ai.mit.edu/pub/gnu/%SUBDIR%/ \ ftp://wuarchive.wustl.edu/systems/gnu/%SUBDIR%/ However, I'm not sure this is really how this bug should be fixed. I guess it's probably that SUBDIR evaluates as nothing and it ends up with two //. The system is a yesterday build of 2.2.5 I don't subscribe to ports, please cc me directly.. -bill -- William Lloyd (wlloyd@mpd.ca) | <http://www.mpd.ca>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3452CE5E.43A>