Subject: pkg/12347: Spurious checksum failure after downloading distfile
To: None <gnats-bugs@gnats.netbsd.org>
From: Rhialto <rhialto@polderland.nl>
List: netbsd-bugs
Date: 03/07/2001 17:34:53
>Number:         12347
>Category:       pkg
>Synopsis:       Spurious checksum failure after downloading distfile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 07 08:35:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Olaf "Rhialto" Seibert
>Release:        pkgsrc of today (via cvs)
>Organization:
	
>Environment:
	
System: NetBSD klei.intern.polderland.nl 1.4.2 NetBSD 1.4.2 (KIELDRECHT) #11: Wed Jul 19 14:00:31 CEST 2000 root@kieldrecht:/usr/src/sys/arch/i386/compile/KIELDRECHT i386


>Description:
	After downloading a distfile, it is claimed that the checksum
	is incorrect. The next download site is tried (if any, and if
	settings allow) but eventually the download fails. Repeating
	the make command now likes the downloaded file anyway.

	Example fragment from updating Lyx, where the xforms distfile
	is fetched:

===> Returning to build of lyx-1.1.6
===> Required installed package ispell-3.1.20: ispell-3.1.20 found
===> Required installed package teTeX>=1.0.6: teTeX-1.0.7 found
===> Required package xforms>=0.88nb1: NOT found
===> Verifying reinstall for ../../x11/xforms  
===> Validating dependencies for xforms-0.88nb1
=> bxform-088.tgz doesn't seem to exist on this system.
=> Attempting to fetch bxform-088.tgz from ftp://ncmir.ucsd.edu/pub/xforms/netBS
D-alpha/.
Connected to ncmir.ucsd.edu.
...
227 Entering Passive Mode (132,239,16,23,250,156)
150 Opening BINARY mode data connection for bxform-088.tgz (1197562 bytes).
100% |*************************************|  1169 KB   24.56 KB/s    00:00 ETA
226 Transfer complete.
1197562 bytes received in 00:49 (23.81 KB/s)   
221-You have transferred 1197562 bytes in 1 files.
221-Total traffic for this session was 1199071 bytes in 1 transfers.
221-Thank you for using the FTP service on ncmir.
221 Goodbye.
=> Checksum failure - trying next site.
=> Attempting to fetch bxform-088.tgz from ftp://ftp.fi.netbsd.org/pub/NetBSD/packages/distfiles/xforms-alpha/.
Connected to ftp.funet.fi.
...  etc.

Second try, note the "Checksum OK":

azenomei.4:/vol1/rhialto/cvs/pkgsrc/print/lyx$ make
===> Validating dependencies for lyx-1.1.6
=> Checksum OK for lyx-1.1.6.tar.gz.
===> Extracting for lyx-1.1.6
===> Required file /usr/pkg/share/mk/bsd.perl.mk: found
===> Required installed package ispell-3.1.20: ispell-3.1.20 found
===> Required installed package teTeX>=1.0.6: teTeX-1.0.7 found
===> Required package xforms>=0.88nb1: NOT found
===> Verifying reinstall for ../../x11/xforms
===> Validating dependencies for xforms-0.88nb1
=> Checksum OK for xforms-alpha/bxform-088.tgz.
===> Extracting for xforms-0.88nb1
===> Required package libtool>=1.4.20010219nb2: NOT found
===> Verifying reinstall for ../../devel/libtool
===> Validating dependencies for libtool-1.4.20010219nb2
===> Extracting for libtool-1.4.20010219nb2
===> Required package libtool-base-1.4.20010219nb2: NOT found
===> Verifying reinstall for ../libtool-base
=> libtool-ml-20010219.tar.gz doesn't seem to exist on this system.
=> Attempting to fetch libtool-ml-20010219.tar.gz from ftp://ftp.fi.netbsd.org/p
ub/NetBSD/packages/distfiles/LOCAL_PORTS/.
Connected to ftp.funet.fi.
...

	and there I get the same problem again with libtool-ml-20010219.tar.gz...

>How-To-Repeat:
	cd pkgsrc/print/lyx && make
>Fix:
	workaround: re-run the make command after the file was downloaded.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@polder --Soep van de dag, wat zal dat zijn
\X/ land.nl     --wat kan dat wezen, beter maar het ergste vrezen -Boy Bensdorp
>Release-Note:
>Audit-Trail:
>Unformatted: