fetch / checksum problems with distcache

Ion-Mihai Tetcu itetcu at FreeBSD.org
Fri Feb 27 14:02:42 EST 2009


Hi,


I wonder if:
- if checksum fails and file was fetched from distcache it shouldn't be
  tried a second time w/o distcache
- if checksum fails and there is a MASTER_SITE_OVERRIDE defined, a
  second fetch should be tried ignoring MASTER_SITE_OVERRIDE

Unfortunately I don't see an easy way to do this in tindy's code.

A solution could be to override do-fetch:/do-checksum but I don't know
if we want to do that since it would be equivalent to run a patched
bsd.port.mk with all potential problems from that could come out of
that.
Not that I think that this kind of behaviour should be the default in
bsd.port.mk (together with dropping -R from FETCH_ARGS).


> ====================<phase 1: make checksum>====================
> => uftp.tar doesn't seem to exist in /tmp/distfiles/.
> => Attempting to fetch from file:///distcache//.
> uftp.tar                                               130 kB 4476
> kBps => MD5 Checksum mismatch for uftp.tar.
> => SHA256 Checksum mismatch for uftp.tar.
> ===>  Refetch for 1 more times files: uftp.tar uftp.tar 
> => uftp.tar doesn't seem to exist in /tmp/distfiles/.
> => Attempting to fetch from file:///distcache//.
> => MD5 Checksum mismatch for uftp.tar.
> => SHA256 Checksum mismatch for uftp.tar.
> ===>  Giving up on fetching files: uftp.tar uftp.tar 
> Make sure the Makefile and distinfo file (/a/ports/ftp/uftp/distinfo)
> are up to date.  If you are absolutely sure you want to override this
> check, type "make NO_CHECKSUM=yes [other args]".
> *** Error code 1


Any better ideas?

-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20090227/062502ce/attachment.bin>


More information about the tinderbox-list mailing list