Subject: misc/29968: distribution build fails if some MK* variables are set to 'no'
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2005.salmi.ch>
List: netbsd-bugs
Date: 04/14/2005 09:19:00
>Number:         29968
>Category:       misc
>Synopsis:       distribution build fails if some MK* variables are set to 'no'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 14 09:19:00 +0000 2005
>Originator:     Jukka Salmi
>Release:        NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD moray.salmi.ch 3.99.3 NetBSD 3.99.3 (GENERIC.APM) #0: Thu Apr 14 09:48:06 CEST 2005 build@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/GENERIC.APM i386
Architecture: i386
Machine: i386
>Description:
While building a distribution and having set some MK* variables to 'no', I
observed two problems. The MK variables I set to 'no' are:

MKBFD, MKBINUTILS, MKCATPAGES, MKCVS, MKDOC, MKGCCCMDS, MKGDB, MKHESIOD,
MKHTML, MKINET6, MKINFO, MKKERBEROS4, MKMAN, MKPAM, MKPF, MKPOSTFIX, MKPROFILE,
MKSENDMAIL, MKSKEY, MKSTATICLIB, MKUUCP, MKYP

- First problem:

#   install  /opt/dst/i386.embed/usr/lib/libfl.a
STRIP=/opt/tools/i386/bin/i386--netbsdelf-strip /opt/tools/i386/bin/nbinstall -U
-M /opt/dst/i386.embed/METALOG -D /opt/dst/i386.embed -h sha1 -N /usr/src/etc  
-l h -r /opt/dst/i386.embed/usr/lib/libl.a
/opt/dst/i386.embed/usr/lib/libfl.anbinstall: link
/opt/dst/i386.embed/usr/lib/libl.a -> /opt/dst/i386.embed/usr/lib/libfl.a: No  
such file or directory

*** Failed target:  linksinstall
*** Failed command: (set /usr/lib/libl.a /usr/lib/libfl.a; while test $# -ge 2; 
do l=/opt/dst/i386.embed$1; shift; t=/opt/dst/i386.embed$1; shift; if
ldevino=`/opt/tools/i386/bin/nbstat -qf '%d %i' $l` &&
tdevino=`/opt/tools/i386/bin/nbstat -qf '%d %i' $t` && [ "$ldevino" =
"$tdevino" ]; then continue ; fi ; echo '# ' "install " $t; echo
STRIP=/opt/tools/i386/bin/i386--netbsdelf-strip /opt/tools/i386/bin/nbinstall  
-U -M /opt/dst/i386.embed/METALOG -D /opt/dst/i386.embed -h sha1 -N
/usr/src/etc -l h -r $l $t; STRIP=/opt/tools/i386/bin/i386--netbsdelf-strip
/opt/tools/i386/bin/nbinstall -U -M /opt/dst/i386.embed/METALOG -D
/opt/dst/i386.embed -h sha1 -N /usr/src/etc -l h -r $l $t; done ; )
*** Error code 1

Commenting out MKSTATICLIB=no worked around this problem.

- Second problem:

============  23 extra files  ===============
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
------------------------------------------
./usr/share/examples/pf
./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 23 extra files  ===========

>How-To-Repeat:
Set the MK* variables described above to 'no' and build a distribution.
>Fix:
n/a