Subject: toolchain/16963: share/zoneinfo/Makefile does unlocked METALOG writes
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 05/22/2002 16:07:37
>Number: 16963
>Category: toolchain
>Synopsis: share/zoneinfo/Makefile does unlocked METALOG writes
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 22 08:08:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Ben Harris
>Release: 2002-05-22
>Organization:
>Environment:
Cross-compiling from Debian GNU/Linux 2.2.
>Description:
The "afterinstall" rule in share/zoneinfo/Makefile writes directly to the
METALOG, and does so without any kind of locking, so its output can get
tangled up with other output, like this:
./u1/ben/netbsd/dest.acorn32/usr/share/zoneinfo/Antarctica/Mawson ty./u1/ben/netbsd/dest.acorn32/usr/share/sushi/procs/startallprocs/script type=file mode=0555 uname=root gname=wheel
./u1/ben/netbsd/dest.acorn32/usr/share/sushi/procs/startallprocs/script1 type=file mode=0555 uname=root gname=wheel
./u1/ben/netbsd/dest.acorn32/usr/share/sushi/procs/startallprocs/form type=file mode=0444 uname=root gname=wheel
./u1/ben/netbsd/dest.acorn32/usr/share/sushi/procs/startallprocs/help type=file mode=0444 uname=root gname=wheel
pe=file mode=0444 uname=root gname=wheel
./u1/ben/netbsd/dest.acorn32/usr/share/zoneinfo/Antarctica/DumontDUrville type=file mode=0444 uname=root gname=wheel
>How-To-Repeat:
sh build.sh \
-j 2 -U -m $MACHINE \
-T /u1/ben/netbsd/tools \
-O /u1/ben/netbsd/obj.$MACHINE \
-D /u1/ben/netbsd/dest.$MACHINE \
-R /u1/ben/netbsd/release.$MACHINE \
2>&1 | gzip -c > /u1/ben/netbsd/logs/build.log.$MACHINE.gz
Then inspect the metalog.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: