Subject: pkg/35090: NO_BIN_ON_FTP flag for p5-perl-headers-3.0nb3 breaks 'pkg_add kde'.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <netbsd001@freeode.co.uk>
List: pkgsrc-bugs
Date: 11/20/2006 22:05:00
>Number:         35090
>Category:       pkg
>Synopsis:       NO_BIN_ON_FTP flag for p5-perl-headers-3.0nb3 breaks 'pkg_add kde'.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 20 22:05:00 +0000 2006
>Originator:     John Murphy
>Release:        NetBSD 3.1
>Organization:
	
>Environment:
	
	
System: NetBSD chucky.freeode.co.uk 3.1 NetBSD 3.1 (GENERIC_LAPTOP) #0: Tue Oct 31 04:32:05 UTC 2006 builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
'pkg_add kde' is broken by the absence of p5-perl-headers-3.0nb3 in the
packages section of the NetBSD ftp server. I presume it's missing because
'NO_BIN_ON_FTP' is set in its Makefile, but I haven't seen the Makefile
so I can't be sure. The fact that it's not at .../3.0/i386/All or in the
'vulnerable' folder means that 'pkg_add kde' fails spectacularly. A loop
is entered in which other files (eg. nas-1.8nb1.tgz) is fetched multiple
times. Experimenting with my own ftp server showed nas-1.8nb1.tgz was
downloaded 84 times in 10 minutes! The full results of the experiment can
be seen here: http://mail-index.netbsd.org/netbsd-help/2006/11/19/0007.html
	
>How-To-Repeat:
'export PKG_PATH="ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/i386/All;ftp://ftp.NetBSD.org/pub/NetBSD/packages/2.0/i386/vulnerable"'

'pkg_add kde' and leave it running overnight for worst effect.

Check the server's xferlog if you have access to it, or check the
bandwidth used by some other means.

	
>Fix:
	

>Unformatted: