Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2001 14:44:35 -0600
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        Peter Pentchev <roam@orbitel.bg>
Cc:        Dan Nelson <dnelson@emsphone.com>, freebsd-arch@FreeBSD.ORG
Subject:   Re: [PATCH] add a SITE MD5 command to ftpd
Message-ID:  <20010314144434.A2658@hamlet.nectar.com>
In-Reply-To: <20010314182106.A422@ringworld.oblivion.bg>; from roam@orbitel.bg on Wed, Mar 14, 2001 at 06:21:06PM %2B0200
References:  <20010313211544.B17733@ringworld.oblivion.bg> <200103140459.VAA03061@usr05.primenet.com> <20010314084651.A23104@ringworld.oblivion.bg> <20010314012132.A91957@dragon.nuxi.com> <20010314112651.C23104@ringworld.oblivion.bg> <20010314101440.A5965@dan.emsphone.com> <20010314182106.A422@ringworld.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 14, 2001 at 06:21:06PM +0200, Peter Pentchev wrote:
> Hmm.. because we do not record this in our port metadata?
> 
> Actually, after a discussion with David O'Brien on IRC today,
> I'm having second thoughts about this feature.  Maybe in a day
> or two, after I've slept on it, I'll change my mind about it :)

It sounds reasonable to me.  At a minimum, it could be used by the 
ports system to avoid downloading files that appear like they will
not match the MD5 checksum anyway.  This would be very handy when
the distfile changes, but the maintainer has not yet caught on, e.g.

   % cd /usr/ports/devel/foo && make
   >> foo-8.32.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
   >> Attempting to fetch from ftp://ftp.fooland.com/pub/superfoo/
   SITE MD5 reports checksum mismatch, moving on
   >> Attempting to fetch from ftp://ftp.mirror.com/pub/mirrors/fooland/superfoo/
   SITE MD5 reports checksum mismatch, moving on
   >> Attempting to fetch from ftp://ftp.freebsd.org/pub/distfiles/
   Receiving foo-8.32.tar.gz: 100% 
   4294967295 bytes transferred in 2678401 seconds (1.56 kBps)
   ===>  Extracting for foo-8.32.tar.gz
   >> Checksum OK for foo-8.32.tar.gz

The way it works today, you'll download foo from the first site, and the
checksum will fail, which is annoying.


OTOH, more and more distfiles are distributed via HTTP, and not FTP,
marginalizing the payback of adding this functionality to ftpd.
HTTP/1.1 has Content-MD5, but the standard is mostly broken.

Cheers,
-- 
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org

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




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