Subject: problems with sysbuild build-x-release
To: None <netbsd-help@netbsd.org>
From: Karl Hammerschmidt <stuffynose@earthlink.net>
List: netbsd-help
Date: 03/13/2004 11:56:28
I had no problem building kernels or sets, but my x-release went like 
this:

karlsbox# sysbuild -s build-x-release
sysbuild: downgrading privileges to `sysbuild'
Cleaning /var/sysbuild/obj contents: done.
Cleaning /var/sysbuild/root contents: done.
Cleaning /var/sysbuild/tools contents: done.
Logging to /tmp/sysbuild.736a (will NOT be removed later)
Building tools (toolchain): done.
Logging to /tmp/sysbuild.736a (will NOT be removed later)
Mounting /usr/xsrc below /var/sysbuild/obj: done.
Building full X11R6 release: done.
chmod: /var/sysbuild/NetBSD-1.6/i386/binary/sets/x*.tgz: No such file 
or directory
chown: /var/sysbuild/NetBSD-1.6/i386/binary/sets/*: No such file or 
directory
Unmounting /var/sysbuild/obj: done.

chown and chmod had trouble because the sets actually ended up in
/var/sysbuild/NetBSD-1.6/i386/i386/binary/sets. If I didn't set 
$MACHINE in
/home/sysbuild/default.conf, I would get the following complaints:

chmod: /var/sysbuild/NetBSD-1.6//binary/sets/x*.tgz: No such file or 
directory
chown: /var/sysbuild/NetBSD-1.6//binary/sets/*: No such file or 
directory

I also ended up with permissions set to sysbuild:wobj on all the files 
in the archives.

I have no idea what the issue is with the permissions, but I noticed 
two things:

1: sysbuild sets $RELEASEDIR to $RELEASEDIR/$MACHINE when it calls 
nbmake

2: /usr/xsrc/Makefile installs to $RELEASEDIR/$MACHINE.

So my question is:

	If RELEASEDIR=$RELEASEDIR/$MACHINE when nbmake starts

		and...

	nbmake install to $RELEASEDIR/$MACHINE...

		isn't it really installing to ($RELEASEDIR/$MACHINE)/$MACHINE?

If so, it would explain the location of the archives (the "i386/i386" 
part).

Is there anything else I should look at?

Also, does anyone have ideas about the permissions?

Thanks!

- Karl Hammerschmidt