Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/BUILDING,v rcsdiff: /ftp/cvs/cvsroot/src/BUILDING,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.26 retrieving revision 1.28 diff -u -p -r1.26 -r1.28 --- src/BUILDING 2003/01/29 22:50:08 1.26 +++ src/BUILDING 2003/02/02 12:37:41 1.28 @@ -67,8 +67,8 @@ FILES distrib/, etc/ Sources for items used when making a full release snap- - shot, such as files installed in /etc on the destination - system, boot media, and release notes. + shot, such as files installed in DESTDIR/etc on the desti- + nation system, boot media, and release notes. regress/ Regression test harness. Can be cross-compiled, but only run natively. @@ -151,8 +151,8 @@ CONFIGURATION Default: ``yes'' MKDOC Can be set to ``yes'' or ``no''. Indicates whether system - documentation destined for /usr/share/doc will be installed - during a build. + documentation destined for DESTDIR/usr/share/doc will be in- + stalled during a build. Default: ``yes'' @@ -176,7 +176,7 @@ CONFIGURATION MKLINT Can be set to ``yes'' or ``no''. Indicates whether lint(1) will be run against portions of the NetBSD source code during the build, and whether lint libraries will be installed into - /usr/libdata/lint. + DESTDIR/usr/libdata/lint. Default: ``yes'' @@ -222,10 +222,10 @@ CONFIGURATION code. MKSHARE Can be set to ``yes'' or ``no''. Indicates whether files - destined to reside in /usr/share will be built and installed - during a build. If set to ``no'', then all of MKCATPAGES, - MKDOC, MKINFO, MKMAN, and MKNLS will be set to ``no'' uncon- - ditionally. + destined to reside in DESTDIR/usr/share will be built and in- + stalled during a build. If set to ``no'', then all of + MKCATPAGES, MKDOC, MKINFO, MKMAN, and MKNLS will be set to + ``no'' unconditionally. Default: ``yes'' @@ -329,7 +329,8 @@ CONFIGURATION Default: Unset. UPDATE If set, then in addition to the effects described for - UPDATE above, this implies the effects of NOCLEANDIR. + UPDATE above, this implies the effects of NOCLEANDIR + (i.e., ``make cleandir'' is avoided). BUILDING "make" command line options @@ -388,9 +389,9 @@ BUILDING fore any system libraries or programs can be built. install Install programs, libraries, and documentation into DESTDIR. - Few files will be installed to /dev, /etc, /root or /var in - order to prevent user supplied configuration data from being - overwritten. + Few files will be installed to DESTDIR/dev, DESTDIR/etc, + DESTDIR/root or DESTDIR/var in order to prevent user supplied + configuration data from being overwritten. lint Run lint(1) against the C source code, where appropriate, and generate system-installed lint libraries. @@ -410,8 +411,8 @@ BUILDING the proper order. distribution Do a ``make build'', and then install a full distribution - into DESTDIR, including files in /dev, /etc, /root and - /var. + into DESTDIR, including files in DESTDIR/dev, DESTDIR/etc, + DESTDIR/root and DESTDIR/var. buildworld As per ``make distribution'', except that it ensures that DESTDIR is not the root directory. @@ -572,24 +573,29 @@ BUILDING with an absolute path. EXAMPLES - ./build.sh tools kernel=GENERIC - Build a new toolchain, and use the new toolchain to configure - and build a new GENERIC kernel. - - ./build.sh -U -D /path/to/DESTDIR distribution - Using unprivileged mode, build a complete distribution in - /path/to/DESTDIR. - - # ./build.sh -U -D /path/to/DESTDIR installworld=/ - As root, install the distribution that was built with unprivi- - leged mode from /path/to/DESTDIR to /. (Even though this is - run as root, -U is required so that the permissions stored in - /path/to/DESTDIR/METALOG are correctly applied to the files as - they're copied to /). - - ./build.sh -U -D /path/to/DESTDIR -R /path/to/RELEASE release - Using unprivileged mode, build a complete release in - /path/to/dir/RELEASE. + 1. ./build.sh tools kernel=GENERIC + + Build a new toolchain, and use the new toolchain to configure and + build a new GENERIC kernel. + + 2. ./build.sh -U -D /path/to/destdir distribution + + Using unprivileged mode, build a complete distribution in + /path/to/destdir. + + 3. # ./build.sh -U -D /path/to/destdir installworld=/ + + As root, install the distribution that was built by example 2 into + /path/to/destdir to /. Even though this is run as root, -U is re- + quired so that the permissions stored in /path/to/destdir/METALOG + are correctly applied to the files as they're copied to /. + + 4. ./build.sh -U -u -D /path/to/destdir -R /path/to/releasedir release + + Using unprivileged mode, build a complete release in + /path/to/dir/releasedir. UPDATE (-u) is set to prevent the ``make + cleandir'', so that if this is run after example 2, it doesn't need + to redo that portion of the release build. OBSOLETE VARIABLES NBUILDJOBS Use the make(1) option -j, instead. @@ -608,4 +614,4 @@ HISTORY BUGS A few platforms are not yet using this build system. -NetBSD January 30, 2003 10 +NetBSD February 2, 2003 10