Subject: misc/17275: postinstall checks install, rather than full build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <g.mcgarry@ieee.org>
List: netbsd-bugs
Date: 06/16/2002 18:21:39
>Number:         17275
>Category:       misc
>Synopsis:       postinstall runs without populated ${DESTDIR}/etc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 15 23:22:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gregory McGarry
>Release:        NetBSD 1.6
>Organization:
	
>Environment:

NetBSDi/i386 1.6 host, sparc target

>Description:

Cross-build NetBSD/sparc 1.6 on i386 host with the following:
(uses /etc/mk.conf)

$ sh ./build.sh -T /storage/tools -m sparc

and see these:

   === Post installation checks ===
sh /storage/netbsd/netbsd-1.6/src/etc/postinstall -s /storage/netbsd/netbsd-1.6/src -d /storage/scratch/netbsd/bin/netbsd-1.6/sparc/ check
Source directory: /storage/netbsd/netbsd-1.6/src
Target directory: /storage/scratch/netbsd/bin/netbsd-1.6/sparc/
defaults check:
	/storage/scratch/netbsd/bin/netbsd-1.6/sparc//etc/defaults/daily.conf does not exist
[...]

That's because I haven't done a make snapshot/release yet...

>How-To-Repeat:

As above.

>Fix:

Only do the check if a full snapshot/release is being built.
Or perhaps, only if DESTDIR=/ ?
>Release-Note:
>Audit-Trail:
>Unformatted: