Subject: install/18228: 'make install' fails to install all files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bpstark@pacbell.net>
List: netbsd-bugs
Date: 09/07/2002 17:00:46
>Number:         18228
>Category:       install
>Synopsis:       make install fails to install files in DESTDIR
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 07 17:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Brian Stark
>Release:        NetBSD 1.6G
>Organization:

Brian Stark
bpstark@pacbell.net
>Environment:
	
	
System: NetBSD rainforest.private.net 1.6G NetBSD 1.6G (CALLISTO) #0: Thu Sep 5 22:39:59 PDT 2002 bstark@rainforest.private.net:/usr/src/sys/arch/i386/compile/CALLISTO i386
Architecture: i386
Machine: i386
>Description:

Using CVS sources from September 7, 2002, define DESTDIR in /etc/mk.conf
to /usr/local/destdir, build system, and try to install. The postinstall
checks issue messages like the following:

(cd /usr/src && make postinstall-check)
   === Post installation checks ===
sh /usr/src/etc/postinstall -s /usr/src -d /usr/local/destdir/ check
Source directory: /usr/src
Target directory: /usr/local/destdir/
defaults check:
        /usr/local/destdir//etc/defaults/daily.conf does not exist
        /usr/local/destdir//etc/defaults/monthly.conf does not exist
        /usr/local/destdir//etc/defaults/rc.conf does not exist
        /usr/local/destdir//etc/defaults/security.conf does not exist
        /usr/local/destdir//etc/defaults/weekly.conf does not exist
mtree check:
        /usr/local/destdir//etc/mtree/NetBSD.dist does not exist
        /usr/local/destdir//etc/mtree/special does not exist
gid check:
        /usr/local/destdir//etc/group doesn't exist; can't check for missing gro
ups
uid check:
        /usr/local/destdir//etc/master.passwd doesn't exist; can't check for mis
sing users
periodic check:
        /usr/local/destdir//etc/daily does not exist
        /usr/local/destdir//etc/weekly does not exist
        /usr/local/destdir//etc/monthly does not exist
        /usr/local/destdir//etc/security does not exist

	

>How-To-Repeat:
	
Build NetBSD, then run "make install" in /usr/src.
 
My DESTDIR does not contain a trailing slash. If it helps, here is my
/etc/mk.conf:

rainforest:{root}# cat /etc/mk.conf
#
# NetBSD operating system environment variables
#
DESTDIR=/usr/local/destdir
#
COPTS+=-march=pentium -pipe
#MKKERBEROS=no
OBJMACHINE=yes
MKOBJDIRS=yes
#
# NetBSD package system environment variables
#
DISTDIR=/usr/local/distfiles
WRKOBJDIR=/usr/pkgsrc.work/${MACHINE}
USA_RESIDENT=YES
NS_ENCRYPTION=us
ACCEPTABLE_LICENSES+=shareware
ACCEPTABLE_LICENSES+=adobe-acrobat-license
ACCEPTABLE_LICENSES+=fee-based-commercial-use
ACCEPTABLE_LICENSES+=pine-license
ACCEPTABLE_LICENSES+=jdk13-license
rainforest:{root}# 

This isn't a case of the lack of file system space in $DESTDIR. The
file system that contains $DESTDIR still has about 89 MB of space left:

rainforest:{root}# cd /usr/local/destdir
rainforest:{root}# df -k `pwd`
Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/wd2h     4877045  3739191    894001    80%    /usr/local
rainforest:{root}# 


>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: