Subject: xsrc/24591: xsrc make release into empty destdir fails
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <mrauch@netbsd.org>
List: netbsd-bugs
Date: 02/28/2004 12:34:26
>Number:         24591
>Category:       xsrc
>Synopsis:       xsrc make release into empty destdir fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 28 11:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Rauch
>Release:        NetBSD 1.6ZI
>Organization:
>Environment:
System: NetBSD zonk 1.6ZI NetBSD 1.6ZI (ZONK) #0: Sun Feb 1 12:47:51 CET 2004 root@zonk:/usr/src/src/sys/arch/i386/compile/ZONK i386
Architecture: i386
Machine: i386
xsrc (HEAD) updated Feb 28, about 10:00 UTC
>Description:
	When trying to do a make release, it fails with
----- snip -----
[...]
cd /usr/src/src/distrib/sets &&  sh ./maketars -x -d /usr/src/netbsd/xdestdir -N /usr/src/src/etc -t /usr/src/netbsd/xreleasedir/i386/binary/sets
cp: /usr/src/netbsd/xdestdir/etc/mtree/set.xbase4: No such file or directory
cp: /usr/src/netbsd/xdestdir/etc/mtree/set.xcomp4: No such file or directory
cp: /usr/src/netbsd/xdestdir/etc/mtree/set.xcontrib4: No such file or directory
cp: /usr/src/netbsd/xdestdir/etc/mtree/set.xfont4: No such file or directory
cp: /usr/src/netbsd/xdestdir/etc/mtree/set.xmisc4: No such file or directory
cp: /usr/src/netbsd/xdestdir/etc/mtree/set.xserver4: No such file or directory
Creating xbase4.tgz
./maketars: cannot open /usr/src/netbsd/xdestdir/etc/mtree/set.xbase4: no such file
Creating xcomp4.tgz
./maketars: cannot open /usr/src/netbsd/xdestdir/etc/mtree/set.xcomp4: no such file
Creating xcontrib4.tgz
./maketars: cannot open /usr/src/netbsd/xdestdir/etc/mtree/set.xcontrib4: no such file
Creating xfont4.tgz
./maketars: cannot open /usr/src/netbsd/xdestdir/etc/mtree/set.xfont4: no such file
Creating xmisc4.tgz
./maketars: cannot open /usr/src/netbsd/xdestdir/etc/mtree/set.xmisc4: no such file
Creating xserver4.tgz
./maketars: cannot open /usr/src/netbsd/xdestdir/etc/mtree/set.xserver4: no such file
*** Error code 12

Stop.
make: stopped in /usr/src/xsrc
----- snip -----
The reason for the failure of cp is that the directory
/usr/src/netbsd/xdestdir/etc/mtree does not exist. After creating this
directory manually and restarting make, it finishes without further errors.

>How-To-Repeat:
	mkdir -p /usr/src/netbsd/xdestdir      #(non-existent before)
	mkdir -p /usr/src/netbsd/xreleasedir   #(non-existent before)
	export DESTDIR=/usr/src/netbsd/xdestdir
	export RELEASEDIR=/usr/src/netbsd/xreleasedir
	export NETBSDSRCDIR=/usr/src/src
	cd /usr/src/xsrc #(that's where I've checked out xsrc)
	make release
>Fix:
	n/a
>Release-Note:
>Audit-Trail:
>Unformatted: