Subject: toolchain/16161: UNPRIVED builds get ownership of files in kern sets wrong
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 04/01/2002 20:57:43
>Number:         16161
>Category:       toolchain
>Synopsis:       UNPRIVED builds get ownership of files in kern sets wrong
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 01 11:58:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ben Harris
>Release:        2002-04-01
>Organization:
>Environment:
Debian GNU/Linux 2.2
>Description:
When building a release with UNPRIVED defined, most of the sets get the
correct ownerships on the files (through METALOG magic), but this doesn't
apply to the kern-*.tgz sets, which are built by etc/Makefile:

ixion:/u1/ben/netbsd/release.shark/binary/sets$ tar ztvf base.tgz | head
drwxr-xr-x root/wheel        0 2002-04-01 20:15:02 .
drwxr-xr-x root/wheel        0 2002-04-01 19:15:07 ./altroot
drwxr-xr-x root/wheel        0 2002-04-01 20:12:55 ./bin
-r-xr-xr-x root/wheel    73044 2002-04-01 20:12:45 ./bin/[
-r-xr-xr-x root/wheel    91460 2002-04-01 20:12:41 ./bin/cat
-r-xr-xr-x root/wheel    94452 2002-04-01 20:12:41 ./bin/chio
-r-xr-xr-x root/wheel   106172 2002-04-01 20:12:41 ./bin/chmod
-r-xr-xr-x root/wheel   108876 2002-04-01 20:12:42 ./bin/cp
-r-xr-xr-x root/wheel   463620 2002-04-01 20:12:42 ./bin/csh
-r-xr-xr-x root/wheel   111392 2002-04-01 20:12:42 ./bin/date
ixion:/u1/ben/netbsd/release.shark/binary/sets$ tar ztvf kern-GENERIC.tgz
-rwxr-xr-x ben/ben     1731508 2002-04-01 20:17:45 netbsd
-rwxr-xr-x ben/ben     1519626 2002-04-01 20:17:45 netbsd.aout

>How-To-Repeat:
ixion:/u1/ben/netbsd/src$ NO_DBSYM=1 ./build.sh -m shark -a arm -D /u1/ben/netbsd/dest.shark -O /u1/ben/netbsd/obj.shark -R /u1/ben/netbsd/release.shark -T /u1/ben/netbsd/tools -U

Adapt as necessary for your host system.  The -U is the important bit.

>Fix:
It ought to be possible to generate a specfile on the fly in etc/Makefile,
but this gets complex, especially if you want to avoid doing so in the
non-UNPRIVED case.


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