Subject: Redundant reference to $Machine in sysutils/sysbuild?
To: None <tech-pkg@netbsd.org>
From: Karl Hammerschmidt <stuffynose@earthlink.net>
List: tech-pkg
Date: 03/11/2004 09:29:39
I had some trouble building an X release with sysbuild
Here's the output:
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.
Unmounting /var/sysbuild/obj: 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
The release was actually in
/var/sysbuild/NetBSD-1.6/i386/i386/binary/sets
I'm not very good with this kind of thing, but I think I might have
found out why:
lines 413 - 414 in sysutils/sysbuild/files/sysbuild.sh:
( cd $BUILDDIR/obj && \
BSDSRCDIR=$SRCDIR NETBSDSRCDIR=$SRCDIR
RELEASEDIR=$RELEASEDIR/$MACHINE $BUILDDIR/tools/bin/nbmake-`uname -m`
DESTDIR=$BUILDDIR/root release >> $_log 2>&1 )
$MACHINE is appended to $RELEASEDIR before sysbuild calls nbmake-'uname
-m'
($XSRCDIR is mounted union under $BUILDDIR/obj, so we're in /usr/xsrc,
correct?)
line 139 in /usr/xsrc/Makefile:
${INSTALL} -d -m 755 -o root -g wheel
${RELEASEDIR}/${MACHINE}/binary/sets
$MACHINE is appended here too.
I'm not very good with this stuff, but should RELESEDIR=$RELEASEDIR
instead of
$RELEASEDIR/$MACHINE?
I couldn't find anything else.
- Karl Hammerschmidt