Subject: misc/33758: checkflist fails when MKSHARE=no on -rnetbsd-3
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <lavalamp@spiritual-machines.org>
List: netbsd-bugs
Date: 06/18/2006 07:40:01
>Number:         33758
>Category:       misc
>Synopsis:       checkflist fails when MKSHARE=no on -rnetbsd-3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 18 07:40:01 +0000 2006
>Originator:     Brian A. Seklecki
>Release:        NetBSD 3.0_STABLE
>Organization:
Spiritual Machines
>Environment:
NetBSD thunderwing 3.0_STABLE NetBSD 3.0_STABLE (GENERIC.MPACPI-NOIPV6+IPSEC) #1: Tue May 23 12:36:58 EDT 2006  root@thunderwing:/home/nbsd/objdir/sys/arch/i386/compile/GENERIC.MPACPI-NOIPV6+IPSEC i386

>Description:
build.sh failure on 3-stable:

#    create  set lists
cd /home/nbsd/src/distrib/sets &&  DESTDIR=/home/nbsd/dstdir.jun16_01 
MACHINE=i386 MACHINE_ARCH=i386  CKSUM=/home/nbsd/tools/bin/nbcksum 
MAKE=/home/nbsd/tools/bin/nbmake MTREE=/home/nbsd/tools/bin/nbmtree 
MKTEMP=/home/nbsd/tools/bin/nbmktemp PAX=/home/nbsd/tools/bin/nbpax 
HOST_SH=sh  sh ./maketars -S -d /home/nbsd/dstdir.jun16_01   -N 
/home/nbsd/src/etc  -t /home/nbsd/reldir/i386/binary/sets
postinstall-fix-obsolete ===> .
    === Removing obsolete files ===
sh /home/nbsd/src/usr.sbin/postinstall/postinstall -s /home/nbsd/src -d 
/home/nbsd/dstdir.jun16_01/ fix obsolete
Source directory: /home/nbsd/src
Target directory: /home/nbsd/dstdir.jun16_01/
obsolete fix:
postinstall fixes passed: obsolete
postinstall fixes failed:
    ===============================
checkflist ===> distrib/sets
cd /home/nbsd/src/distrib/sets &&  DESTDIR=/home/nbsd/dstdir.jun16_01 
MACHINE=i386 MACHINE_ARCH=i386  CKSUM=/home/nbsd/tools/bin/nbcksum 
MAKE=/home/nbsd/tools/bin/nbmake MTREE=/home/nbsd/tools/bin/nbmtree 
MKTEMP=/home/nbsd/tools/bin/nbmktemp PAX=/home/nbsd/tools/bin/nbpax 
HOST_SH=sh  sh ./checkflist

============  22 extra files  ===============
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
------------------------------------------

./usr/share/zoneinfo/Africa
./usr/share/zoneinfo/America
./usr/share/zoneinfo/America/Argentina
./usr/share/zoneinfo/America/Indiana
./usr/share/zoneinfo/America/Kentucky
./usr/share/zoneinfo/America/North_Dakota
./usr/share/zoneinfo/Antarctica
./usr/share/zoneinfo/Arctic
./usr/share/zoneinfo/Asia
./usr/share/zoneinfo/Atlantic
./usr/share/zoneinfo/Australia
./usr/share/zoneinfo/Brazil
./usr/share/zoneinfo/Canada
./usr/share/zoneinfo/Chile
./usr/share/zoneinfo/Etc
./usr/share/zoneinfo/Europe
./usr/share/zoneinfo/Indian
./usr/share/zoneinfo/Mexico
./usr/share/zoneinfo/Mideast
./usr/share/zoneinfo/Pacific
./usr/share/zoneinfo/SystemV
./usr/share/zoneinfo/US
=========  end of 22 extra files  ===========

>How-To-Repeat:
build.sh release
>Fix:
I'm not sure if this is supposed to be accounted for in  src/share/zoneinfo/Makefile or in sets/lists/base/mi.  It's only  complaining about the directory stubs and non the 600+ zoneinfo files inside.

In the mean time, a work-around is:

src/distrib/sets/Makefile:

checkflist: .PRECIOUS .PHONY check_DESTDIR
        ${SETSCMD} ./checkflist -e -m \
            ${MAKEFLIST_FLAGS} ${CHECKFLIST_FLAGS} ${METALOG.unpriv}


When I have a moment, I will script(1) the build process and see what Makefile target in src/share/zoneinfo/ is causing $DESTDIR/share/zoneinfo to be created.

But generally speaking mk.conf(5) variables should cause release target to fail...should they?