Subject: pkg/36595: pkgtools/tnftp does not install, causing massive bulk build failure
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <he@NetBSD.org>
List: pkgsrc-bugs
Date: 07/02/2007 17:40:00
>Number:         36595
>Category:       pkg
>Synopsis:       pkgtools/tnftp does not install, causing massive bulk build failure
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 02 17:40:00 +0000 2007
>Originator:     Havard Eidnes
>Release:        NetBSD 3.1_STABLE
>Organization:
	I try...
>Environment:
System: NetBSD gravensten.urc.uninett.no 3.1_STABLE NetBSD 3.1_STABLE (GRAVENSTEN, from GENERIC-$Revision: 1.194.4.7 $) #0: Sun Dec 17 16:18:11 UTC 2006  he@gravensten.urc.uninett.no:/usr/obj/sys/arch/macppc/compile/GRAVENSTEN macppc
Architecture: macppc
Machine: powerpc
>Description:
	
	In a recently started pkgsrc bulk build for 2007Q2, I found
	that a *lot* of packages had failed to build.

	When looking at the build log, it appears that /usr/bin/ftp in
	the chroot I was using was *gone*.

	The reason appears to be in the pkgtools/tnftp package, the
	relevant of the build log has been pasted here with
	greater-than chars substituted with ":" so that GNATS doesn't
	mistreat the ordering of the lines:

===: Installing for tnftp-20050625
=: Generating pre-install file lists
install ===: libedit
install ===: libnetbsd
install ===: src
mkdir -p /usr/bin
/usr/bin/install -c -o root -g wheel -m 555 ftp /usr/bin/`echo ftp|sed 's,x,x,'`
mkdir -p /usr/share/man/cat1
/usr/bin/install -c -o root -g wheel -m 444 ./ftp.cat1 /usr/share/man/cat1/`echo ftp|sed 's,x,x,'`.0
=: Automatic manual page handling
=: Generating post-install file lists
=: Registering installation for tnftp-20050625
=: Checking file-check results for tnftp-20050625
ERROR: ************************************************************
ERROR: The following files are in /usr but not in the PLIST:
ERROR:         /usr/pkgsrc/pkgtools/tnftp/work/.PLIST
ERROR:         /usr/pkgsrc/pkgtools/tnftp/work/.PLIST_nokeywords
ERROR:         /usr/pkgsrc/pkgtools/tnftp/work/.prefix.post
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/tnftp
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/tnftp
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/tnftp

===: Warnings from the wrapper log (sorted):

BULK: tnftp-20050625 was marked as broken:
-rw-r--r--  1 root  wheel  20842 Jun 28 20:36 /usr/pkgsrc/pkgtools/tnftp/.broken.html
/usr/bin/make deinstall
===: Deinstalling for tnftp-20050625
Running /usr/sbin/pkg_delete -K /var/db/pkg  tnftp-20050625
BULK: Marking all packages which depend upon tnftp-20050625 as broken:
===: Cleaning for tnftp-20050625
BULK: Build for tnftp-20050625 was not successful, aborting.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/tnftp
	
	Because it has apparently seen fit to install ftp in /usr/bin,
	it also promptly removes it, leaving most of the rest of the
	pkgsrc bulk build in a ditch.


>How-To-Repeat:
	Update to pkgsrc-2007Q2, do a pkgsrc bulk build.

>Fix:
	I've no idea why this program is even being installed; isn't
	the ftp I have on my NetBSD 3.1_STABLE system good enough?!?
	
	For now I've reinstalled the original ftp, and marked
	pkgtools/tnftp as BROKEN.