Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 06/12/2005 19:46:17
Module Name:	src
Committed By:	dyoung
Date:		Sun Jun 12 19:46:17 UTC 2005

Modified Files:
	src/include: util.h
	src/lib/libc/gen: disklabel.c
	src/sys/arch/acorn26/include: disklabel.h
	src/sys/arch/acorn32/include: disklabel.h
	src/sys/arch/algor/include: disklabel.h
	src/sys/arch/alpha/include: disklabel.h
	src/sys/arch/amd64/include: disklabel.h
	src/sys/arch/arc/include: disklabel.h
	src/sys/arch/arm/include: disklabel.h
	src/sys/arch/bebox/include: disklabel.h
	src/sys/arch/cats/include: disklabel.h
	src/sys/arch/cobalt/include: disklabel.h
	src/sys/arch/dreamcast/include: disklabel.h
	src/sys/arch/evbarm/include: disklabel.h
	src/sys/arch/evbmips/include: disklabel.h
	src/sys/arch/evbppc/include: disklabel.h
	src/sys/arch/evbsh3/include: disklabel.h
	src/sys/arch/evbsh5/include: disklabel.h
	src/sys/arch/hp700/include: disklabel.h
	src/sys/arch/hpcarm/include: disklabel.h
	src/sys/arch/hpcmips/include: disklabel.h
	src/sys/arch/hpcsh/include: disklabel.h
	src/sys/arch/i386/include: disklabel.h
	src/sys/arch/ibmnws/include: disklabel.h
	src/sys/arch/iyonix/include: disklabel.h
	src/sys/arch/mmeye/include: disklabel.h
	src/sys/arch/mvmeppc/include: disklabel.h
	src/sys/arch/netwinder/include: disklabel.h
	src/sys/arch/next68k/include: disklabel.h
	src/sys/arch/playstation2/include: disklabel.h
	src/sys/arch/pmppc/include: disklabel.h
	src/sys/arch/prep/include: disklabel.h
	src/sys/arch/sandpoint/include: disklabel.h
	src/sys/arch/sbmips/include: disklabel.h
	src/sys/arch/sgimips/include: disklabel.h
	src/sys/arch/sh3/include: disklabel.h
	src/sys/arch/sh5/include: disklabel.h
	src/sys/arch/shark/include: disklabel.h
	src/sys/arch/sparc64/include: disklabel.h
	src/sys/arch/sun2/include: disklabel.h
	src/sys/arch/x68k/include: disklabel.h
	src/sys/arch/x86/include: bootinfo.h
	src/sys/sys: disklabel.h
	src/tools: Makefile
Added Files:
	src/tools: Makefile.disklabel
	src/tools/disklabel: Makefile
	src/tools/fdisk: Makefile

Log Message:
Make disklabel(8) and fdisk(8) into "host tools " last step:  build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.


To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 src/include/util.h
cvs rdiff -r1.31 -r1.32 src/lib/libc/gen/disklabel.c
cvs rdiff -r1.1 -r1.2 src/sys/arch/acorn26/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/acorn32/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/algor/include/disklabel.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/alpha/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/amd64/include/disklabel.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/arc/include/disklabel.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/arm/include/disklabel.h
cvs rdiff -r1.6 -r1.7 src/sys/arch/bebox/include/disklabel.h
cvs rdiff -r1.3 -r1.4 src/sys/arch/cats/include/disklabel.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/cobalt/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/dreamcast/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/evbarm/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/evbmips/include/disklabel.h
cvs rdiff -r1.3 -r1.4 src/sys/arch/evbppc/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/evbsh3/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/evbsh5/include/disklabel.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/hp700/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/hpcarm/include/disklabel.h
cvs rdiff -r1.6 -r1.7 src/sys/arch/hpcmips/include/disklabel.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/hpcsh/include/disklabel.h
cvs rdiff -r1.12 -r1.13 src/sys/arch/i386/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/ibmnws/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/iyonix/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/mmeye/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/mvmeppc/include/disklabel.h
cvs rdiff -r1.3 -r1.4 src/sys/arch/netwinder/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/next68k/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/playstation2/include/disklabel.h
cvs rdiff -r1.3 -r1.4 src/sys/arch/pmppc/include/disklabel.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/prep/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/sandpoint/include/disklabel.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/sbmips/include/disklabel.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/sgimips/include/disklabel.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/sh3/include/disklabel.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/sh5/include/disklabel.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/shark/include/disklabel.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/sparc64/include/disklabel.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/sun2/include/disklabel.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/x68k/include/disklabel.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/x86/include/bootinfo.h
cvs rdiff -r1.90 -r1.91 src/sys/sys/disklabel.h
cvs rdiff -r1.89 -r1.90 src/tools/Makefile
cvs rdiff -r0 -r1.1 src/tools/Makefile.disklabel
cvs rdiff -r0 -r1.1 src/tools/disklabel/Makefile
cvs rdiff -r0 -r1.1 src/tools/fdisk/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.