pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/47525 (fetch from sourceforge fails if user sets own FTPUSERAGENT)
The following reply was made to PR pkg/47525; it has been noted by GNATS.
From: Daniel Horecki <morr%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/47525 (fetch from sourceforge fails if user sets own
FTPUSERAGENT)
Date: Mon, 04 Feb 2013 15:02:40 +0100
Hi,
Revision 1.57 of pkgsrc/mk/fetch/fetch.mk broke fetching of x11/rxvt-unicode:
Trying 2001:470:987b::a00:13:80 ...
Requesting http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.16.tar.bz2
ftp: Error retrieving file `500 Internal Server Error'
fetch: Unable to fetch expected file rxvt-unicode-9.16.tar.bz2
Trying 2001:470:987b::a00:13:80 ...
Requesting http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-9.16.tar.bz2
ftp: Error retrieving file `500 Internal Server Error'
fetch: Unable to fetch expected file rxvt-unicode-9.16.tar.bz2
It looks like webserver doesn't like empty User-Agent. I just allowed to
overwrite FTPUSERAGENT to unbreak it.
As FTPUSERAGENT is usually not set, it is working for both cases.
I've checked user test case with default User-Agent of our ftp and it worked
without problem:
# env FTPUSERAGENT="NetBSD-ftp/20100605" make fetch
=> Bootstrap dependency digest>=20010302: found digest-20121220
=> Fetching mlterm-3.1.7.tar.gz
=> Total size: 3535404 bytes
Requesting
http://downloads.sourceforge.net/sourceforge/mlterm/mlterm-3.1.7.tar.gz
Redirected to
http://downloads.sourceforge.net/project/mlterm/01release/mlterm-3.1.7/mlterm-3.1.7.tar.gz
Requesting
http://downloads.sourceforge.net/project/mlterm/01release/mlterm-3.1.7/mlterm-3.1.7.tar.gz
Redirected to
http://freefr.dl.sourceforge.net/project/mlterm/01release/mlterm-3.1.7/mlterm-3.1.7.tar.gz
Trying 2001:1b48:10f::7:80 ...
Requesting
http://freefr.dl.sourceforge.net/project/mlterm/01release/mlterm-3.1.7/mlterm-3.1.7.tar.gz
100%
|*************************************************************************************************************************************|
3452 KiB 210.67 KiB/s 00:00 ETA
3535404 bytes retrieved in 00:16 (210.67 KiB/s)
# make checksum
=> Bootstrap dependency digest>=20010302: found digest-20121220
=> Checksum SHA1 OK for mlterm-3.1.7.tar.gz
=> Checksum RMD160 OK for mlterm-3.1.7.tar.gz
Why this variable was cleaned in first place?
Regards,
--
Daniel Horecki
http://morr.pl http://linux.pl http://netbsd.pl http://netbsd.org
HAIL ERIS!
BOFH since 1999.
Home |
Main Index |
Thread Index |
Old Index